OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Interface ICommandDataStore

Namespace: OpenMod.Core.Commands
Assembly: OpenMod.Core.dll
Syntax
public interface ICommandDataStore

Methods

| Improve this Doc View Source

GetCommandDataAsync<T>(String, String)

Declaration
Task<T> GetCommandDataAsync<T>(string commandId, string key)
Parameters
Type Name Description
System.String commandId
System.String key
Returns
Type Description
Task<T>
Type Parameters
Name Description
T
| Improve this Doc View Source

GetRegisteredCommandAsync(String)

Declaration
Task<RegisteredCommandData> GetRegisteredCommandAsync(string commandId)
Parameters
Type Name Description
System.String commandId
Returns
Type Description
Task<RegisteredCommandData>
| Improve this Doc View Source

GetRegisteredCommandsAsync()

Declaration
Task<RegisteredCommandsData> GetRegisteredCommandsAsync()
Returns
Type Description
Task<RegisteredCommandsData>
| Improve this Doc View Source

SetCommandDataAsync(RegisteredCommandData)

Declaration
Task SetCommandDataAsync(RegisteredCommandData data)
Parameters
Type Name Description
RegisteredCommandData data
Returns
Type Description
Task
| Improve this Doc View Source

SetCommandDataAsync<T>(String, String, T)

Declaration
Task SetCommandDataAsync<T>(string commandId, string key, T value)
Parameters
Type Name Description
System.String commandId
System.String key
T value
Returns
Type Description
Task
Type Parameters
Name Description
T
| Improve this Doc View Source

SetRegisteredCommandsAsync(RegisteredCommandsData)

Declaration
Task SetRegisteredCommandsAsync(RegisteredCommandsData data)
Parameters
Type Name Description
RegisteredCommandsData data
Returns
Type Description
Task

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)