Struct ComponentID
A lightweight struct that represents a component type. Used for fast lookups.
public readonly struct ComponentID : IEquatable<ComponentID>
- Implements
- Inherited Members
Properties
Type
The type of component this ComponentID represents.
public Type Type { get; }
Property Value
Methods
Equals(ComponentID)
Checks if this ComponentID instance represents the same ID as other.
public bool Equals(ComponentID other)
Parameters
otherComponentIDThe ComponentID to compare against.
Returns
Equals(object?)
Checks if this ComponentID instance represents the same ID as obj.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare against.
Returns
GetHashCode()
Gets the hash code for this ComponentID.
public override int GetHashCode()
Returns
- int
An integer hash code representing this ComponentID.
Operators
operator ==(ComponentID, ComponentID)
Checks if two ComponentID instances represent the same ID.
public static bool operator ==(ComponentID left, ComponentID right)
Parameters
leftComponentIDThe first ComponentID.
rightComponentIDThe second ComponentID.
Returns
operator !=(ComponentID, ComponentID)
Checks if two ComponentID instances represent different IDs.
public static bool operator !=(ComponentID left, ComponentID right)
Parameters
leftComponentIDThe first ComponentID.
rightComponentIDThe second ComponentID.