Table of Contents

Struct LunyObjectId

Namespace
Luny.Engine.Bridge
/
Assembly
Luny.dll

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

Int32

Methods

CompareTo(LunyObjectId)

public Int32 CompareTo(LunyObjectId other)

Parameters

Type Name Description
LunyObjectId
other

Returns

Int32

Equals(LunyObjectId)

public Boolean Equals(LunyObjectId other)

Parameters

Type Name Description
LunyObjectId
other

Returns

Boolean

Equals(Object)

public override Boolean Equals(Object obj)

Parameters

Type Name Description
Object
obj

Returns

Boolean

Generate()

Generates a new unique ObjectID.

public static LunyObjectId Generate()

Returns

LunyObjectId

GetHashCode()

public override Int32 GetHashCode()

Returns

Int32

ToString()

public override String ToString()

Returns

String

Operators

operator ==(LunyObjectId, LunyObjectId)

public static Boolean operator ==(LunyObjectId left, LunyObjectId right)

Parameters

Type Name Description
LunyObjectId
left
LunyObjectId
right

Returns

Boolean

operator !=(LunyObjectId, LunyObjectId)

public static Boolean operator !=(LunyObjectId left, LunyObjectId right)

Parameters

Type Name Description
LunyObjectId
left
LunyObjectId
right

Returns

Boolean