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
IsValid
Indicates whether this ticket identifies an allocated occupant registration.
public bool IsValid { get; }
Property Value
Slot
The O(1) lookup slot within the voxel's occupant bucket.
public int Slot { get; }
Property Value
Methods
Equals(OccupantTicket)
public bool Equals(OccupantTicket other)
Parameters
otherOccupantTicket
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator ==(OccupantTicket, OccupantTicket)
Compares two occupant tickets for equality.
public static bool operator ==(OccupantTicket left, OccupantTicket right)
Parameters
leftOccupantTicketrightOccupantTicket
Returns
operator !=(OccupantTicket, OccupantTicket)
Compares two occupant tickets for inequality.
public static bool operator !=(OccupantTicket left, OccupantTicket right)
Parameters
leftOccupantTicketrightOccupantTicket