Table of Contents

Struct ComponentID

Namespace
Frent.Core
Assembly
Frent.dll

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

Type

Methods

Equals(ComponentID)

Checks if this ComponentID instance represents the same ID as other.

public bool Equals(ComponentID other)

Parameters

other ComponentID

The ComponentID to compare against.

Returns

bool

true if they represent the same ID, false otherwise.

Equals(object?)

Checks if this ComponentID instance represents the same ID as obj.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare against.

Returns

bool

true if they represent the same ID, false otherwise.

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

left ComponentID

The first ComponentID.

right ComponentID

The second ComponentID.

Returns

bool

true if they represent the same ID, false otherwise.

operator !=(ComponentID, ComponentID)

Checks if two ComponentID instances represent different IDs.

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

Parameters

left ComponentID

The first ComponentID.

right ComponentID

The second ComponentID.

Returns

bool

true if they represent different IDs, false otherwise.