ScriptID
ScriptId Struct
Encapsulates an Script Id.
Syntax
Member Details
AllScripts Field
The invalid id script.
Syntaxpublic static readonly ScriptId AllScripts
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
CompareTo Method
Compares another instance to this scriptId.
SyntaxParameters
other
The scriptId to compare with this instance.
Returns
Returns -1 if this scriptId comes before the specified instance, 1 if this script id comes after the specified instance, 0 otherwise.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
CompareTo Method
Compares another instance to this scriptId.
SyntaxParameters
other
The scriptId to compare with this instance.
Returns
Returns -1 if this scriptId comes before the specified instance, 1 if this script id comes after the specified instance, 0 otherwise. Returns 2 if the object is not a scriptId.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Equals Method
Value comparison for ScriptId.
SyntaxParameters
obj
The script to compare.
Returns
true if the argument is an ScriptId and has the same value.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
GetHashCode Method
Retrieves the hash code for this instance.
Syntaxpublic override int GetHashCode ()
Returns
The hash code for this instance.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Invalid Field
The invalid id script.
Syntaxpublic static readonly ScriptId Invalid
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
IsValid Property
Gets the valid state for this ScriptId.
Syntaxpublic bool IsValid { get; }
Value
True if this id is a valid ScriptId.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
op_Equality Method
ScriptId equality operator.
SyntaxParameters
a
First ScriptId to compare.
b
Second ScriptId to compare.
Returns
true if the ScriptIds have the same value.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Conversion Method
Convert a ScriptId to a uint.
Syntaxpublic static implicit operator uint (ScriptId id)
Parameters
id
The Script id to convert.
Returns
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
op_Inequality Method
ScriptId inequality operator.
SyntaxParameters
a
First ScriptId to compare.
b
Second ScriptId to compare.
Returns
true if the ScriptIds have a different value.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
ToString Method
Converts the id to a hexadecimal string representation.
Syntaxpublic override string ToString ()
Returns
The hexadecimal string representation.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Last updated