Skip to main content
Version: 0.4.1

Struct ArchetypeId

Namespace: ReadyM.Api.Idents
Assembly: ReadyM.Api.dll

Represents a unique identifier for an archetype in the ECS. Entities of a given archetype have a fixed set of components, never changed after creation.

public struct ArchetypeId : IEquatable<ArchetypeId>, INetSerializable

Implements​

IEquatable<ArchetypeId>, INetSerializable

Inherited Members​

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors​

ArchetypeId(byte)​

Represents a unique identifier for an archetype in the ECS. Entities of a given archetype have a fixed set of components, never changed after creation.

public ArchetypeId(byte id)

Parameters​

id byte

Properties​

None​

public static ArchetypeId None { get; }

Property Value​

ArchetypeId

Methods​

Deserialize(NetDataReader)​

public void Deserialize(NetDataReader reader)

Parameters​

reader NetDataReader

Equals(ArchetypeId)​

public bool Equals(ArchetypeId other)

Parameters​

other ArchetypeId

Returns​

bool

Equals(object?)​

public override bool Equals(object? obj)

Parameters​

obj object?

Returns​

bool

GetHashCode()​

public override int GetHashCode()

Returns​

int

Serialize(NetDataWriter)​

public void Serialize(NetDataWriter writer)

Parameters​

writer NetDataWriter

ToString()​

public override string ToString()

Returns​

string

Operators​

operator ==(ArchetypeId, ArchetypeId)​

public static bool operator ==(ArchetypeId left, ArchetypeId right)

Parameters​

left ArchetypeId

right ArchetypeId

Returns​

bool

operator !=(ArchetypeId, ArchetypeId)​

public static bool operator !=(ArchetypeId left, ArchetypeId right)

Parameters​

left ArchetypeId

right ArchetypeId

Returns​

bool

  • Constructors
    • ArchetypeId(byte)
  • Properties
    • None
  • Methods
    • Deserialize(NetDataReader)
    • Equals(ArchetypeId)
    • Equals(object?)
    • GetHashCode()
    • Serialize(NetDataWriter)
    • ToString()
  • Operators
    • operator ==(ArchetypeId, ArchetypeId)
    • operator !=(ArchetypeId, ArchetypeId)