Table of Contents

Struct OccupantTicket

Namespace
GridForge
Assembly
GridForge.dll

Identifies one occupant registration in a scan-cell bucket.

public readonly struct OccupantTicket : IEquatable<OccupantTicket>
Implements
Inherited Members

Properties

Generation

The process-unique generation assigned to this registration lifetime.

public long Generation { get; }

Property Value

long

IsValid

Indicates whether this ticket identifies an allocated occupant registration.

public bool IsValid { get; }

Property Value

bool

Slot

The O(1) lookup slot within the voxel's occupant bucket.

public int Slot { get; }

Property Value

int

Methods

Equals(OccupantTicket)

public bool Equals(OccupantTicket other)

Parameters

other OccupantTicket

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(OccupantTicket, OccupantTicket)

Compares two occupant tickets for equality.

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

Parameters

left OccupantTicket
right OccupantTicket

Returns

bool

operator !=(OccupantTicket, OccupantTicket)

Compares two occupant tickets for inequality.

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

Parameters

left OccupantTicket
right OccupantTicket

Returns

bool