Struct SelfUpdateReturnInfo
Returns a struct which contains the information about the update of a plugin.
public struct SelfUpdateReturnInfo : IDisposable
- Implements
- Inherited Members
- Extension Methods
Constructors
SelfUpdateReturnInfo(SelfUpdateReturnCode)
public SelfUpdateReturnInfo(SelfUpdateReturnCode returnCode)
Parameters
returnCodeSelfUpdateReturnCode
Properties
Author
Gets the author name of the upcoming plugin release.
public readonly string? Author { get; }
Property Value
CompiledDate
Gets the compilation date of the upcoming plugin release.
public readonly DateTimeOffset? CompiledDate { get; }
Property Value
CreationDate
Gets the creation date of the upcoming plugin release.
public readonly DateTimeOffset? CreationDate { get; }
Property Value
Description
Gets the description of the upcoming plugin release.
public readonly string? Description { get; }
Property Value
Name
Gets the name of the upcoming plugin release.
public readonly string? Name { get; }
Property Value
PluginVersion
Gets the version of the upcoming plugin release.
public readonly GameVersion? PluginVersion { get; }
Property Value
ReturnCode
Gets the return code of the self-update operation.
public readonly SelfUpdateReturnCode ReturnCode { get; }
Property Value
StandardVersion
Gets the interface standard version of the upcoming plugin release.
public readonly GameVersion? StandardVersion { get; }
Property Value
Methods
CreateToNativeMemory(SelfUpdateReturnCode)
Create a struct of this SelfUpdateReturnInfo instance in a native memory but only providing the return code of SelfUpdateReturnCode.
public static nint CreateToNativeMemory(SelfUpdateReturnCode returnCode)
Parameters
returnCodeSelfUpdateReturnCodeThe return code of the self-update operation.
Returns
- nint
A native pointer to the SelfUpdateReturnInfo struct.
CreateToNativeMemory(SelfUpdateReturnCode, string?, string?, string?, GameVersion, GameVersion, DateTimeOffset, DateTimeOffset)
Create a struct of this SelfUpdateReturnInfo instance in a native memory.
public static nint CreateToNativeMemory(SelfUpdateReturnCode returnCode, string? name, string? author, string? description, GameVersion pluginVersion, GameVersion standardVersion, DateTimeOffset creationDate, DateTimeOffset compiledDate)
Parameters
returnCodeSelfUpdateReturnCodeThe return code of the self-update operation.
namestringName of the upcoming plugin release provided by
manifest.jsonauthorstringThe author name of the upcoming plugin release provided by
manifest.jsondescriptionstringThe description of the upcoming plugin release provided by
manifest.jsonpluginVersionGameVersionThe version of the upcoming plugin release provided by
manifest.jsonstandardVersionGameVersionThe interface standard version of the upcoming plugin release provided by
manifest.jsoncreationDateDateTimeOffsetThe creation date of the upcoming plugin release provided by
manifest.jsoncompiledDateDateTimeOffsetThe compilation date of the upcoming plugin release provided by
manifest.json
Returns
- nint
A native pointer to the SelfUpdateReturnInfo struct.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()