Struct CellId
Namespace: ReadyM.Api.Idents
Assembly: ReadyM.Api.dll
Identifies a cell within an area. CellId has to be unique within its parent area (identified by AreaId). The main difference between a cell and an area is that a player can be only in one area at once, but can have many cells active within that area.
public struct CellId : INetSerializable, IEquatable<CellId>
Implements
INetSerializable, IEquatable<CellId>
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
CellId(NativeString256)
public CellId(NativeString256 id)
Parameters
CellId(string)
public CellId(string id)
Parameters
id string
CellId(int)
public CellId(int id)
Parameters
id int
Properties
Invalid
public static CellId Invalid { get; }
Property Value
Methods
Deserialize(NetDataReader)
public void Deserialize(NetDataReader reader)
Parameters
reader NetDataReader
Equals(CellId)
public bool Equals(CellId other)
Parameters
other CellId
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
TextDeserialize(ref Utf8JsonReader, JsonSerializerOptions)
public static CellId TextDeserialize(ref Utf8JsonReader reader, JsonSerializerOptions options)
Parameters
reader Utf8JsonReader
options JsonSerializerOptions
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(CellId, CellId)
public static bool operator ==(CellId left, CellId right)
Parameters
left CellId
right CellId
Returns
operator !=(CellId, CellId)
public static bool operator !=(CellId left, CellId right)
Parameters
left CellId
right CellId