Struct LunyObjectId
Unique identifier for an engine object/node in a LunyScript context. Separate from engine's native GetInstanceID() for cross-engine compatibility. Sequential integers for deterministic ordering and debugging.
public readonly struct LunyObjectId : IEquatable<LunyObjectId>, IComparable<LunyObjectId>
Expand Details ...
- Implements
Fields
Value
public readonly Int32 Value
Field Value
Methods
CompareTo(LunyObjectId)
public Int32 CompareTo(LunyObjectId other)
Parameters
| Type | Name | Description |
|---|---|---|
other |
Returns
Equals(LunyObjectId)
public Boolean Equals(LunyObjectId 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 ObjectID.
public static LunyObjectId Generate()
Returns
GetHashCode()
public override Int32 GetHashCode()
Returns
ToString()
public override String ToString()
Returns
- String
Operators
operator ==(LunyObjectId, LunyObjectId)
public static Boolean operator ==(LunyObjectId left, LunyObjectId right)
Parameters
| Type | Name | Description |
|---|---|---|
left |
||
right |
Returns
- Boolean
operator !=(LunyObjectId, LunyObjectId)
public static Boolean operator !=(LunyObjectId left, LunyObjectId right)
Parameters
| Type | Name | Description |
|---|---|---|
left |
||
right |
Returns
- Boolean