Struct ScriptId
- Namespace
- LunyScript /
- Assembly
- LunyScript.dll
Unique identifier for a LunyScript definition (type). Sequential integers for deterministic ordering and debugging.
public readonly struct ScriptId : IEquatable<ScriptId>, IComparable<ScriptId>
Expand Details ...
- Implements
Fields
Value
public readonly Int32 Value
Field Value
Methods
CompareTo(ScriptId)
public Int32 CompareTo(ScriptId other)
Parameters
| Type | Name | Description |
|---|---|---|
other |
Returns
Equals(ScriptId)
public Boolean Equals(ScriptId other)
Parameters
| Type | Name | Description |
|---|---|---|
other |
Returns
- Boolean
Equals(Object)
public override Boolean Equals(Object obj)
Parameters
| Type | Name | Description |
|---|---|---|
obj |
Returns
- Boolean
Generate()
Generates a new unique ScriptID.
public static ScriptId Generate()
Returns
GetHashCode()
public override Int32 GetHashCode()
Returns
ToString()
public override String ToString()
Returns
- String
Operators
operator ==(ScriptId, ScriptId)
public static Boolean operator ==(ScriptId left, ScriptId right)
Parameters
| Type | Name | Description |
|---|
Returns
- Boolean
operator !=(ScriptId, ScriptId)
public static Boolean operator !=(ScriptId left, ScriptId right)
Parameters
| Type | Name | Description |
|---|
Returns
- Boolean