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
Methods
Deserialize(NetDataReader)
public void Deserialize(NetDataReader reader)
Parameters
reader NetDataReader
Equals(ArchetypeId)
public bool Equals(ArchetypeId other)
Parameters
other ArchetypeId
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj object?
Returns
GetHashCode()
public override int GetHashCode()
Returns
Serialize(NetDataWriter)
public void Serialize(NetDataWriter writer)
Parameters
writer NetDataWriter
ToString()
public override string ToString()
Returns
Operators
operator ==(ArchetypeId, ArchetypeId)
public static bool operator ==(ArchetypeId left, ArchetypeId right)
Parameters
left ArchetypeId
right ArchetypeId
Returns
operator !=(ArchetypeId, ArchetypeId)
public static bool operator !=(ArchetypeId left, ArchetypeId right)
Parameters
left ArchetypeId
right ArchetypeId