Struct PhotonId
[MessagePackObject(false)]
public struct PhotonId : IEquatable<PhotonId>
- Implements
Fields
MaxPartialStringLength
public const int MaxPartialStringLength = 8
Field Value
MaxStringLength
public const int MaxStringLength = 40
Field Value
NonceNullString
public static readonly string NonceNullString
Field Value
None
public static PhotonId None
Field Value
NullString
public static readonly string NullString
Field Value
Properties
Nonce
[Key(1)]
public uint Nonce { readonly get; set; }
Property Value
RayId
[Key(0)]
public RayId RayId { readonly get; set; }
Property Value
Methods
BuildString(out string)
public string BuildString(out string rayId)
Parameters
rayId
string
Returns
Equals(PhotonId)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PhotonId other)
Parameters
other
PhotonIdAn object to compare with this object.
Returns
Equals(ref PhotonId)
public bool Equals(ref PhotonId other)
Parameters
other
PhotonId
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
Generate()
public static PhotonId Generate()
Returns
Generate(RayId)
public static PhotonId Generate(RayId rayId)
Parameters
rayId
RayId
Returns
Generate(ref RayId)
public static PhotonId Generate(ref RayId rayId)
Parameters
rayId
RayId
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
IsValid()
public bool IsValid()
Returns
ToPartialString()
public string ToPartialString()
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
ToTraceParentHeader()
public string ToTraceParentHeader()
Returns
Operators
operator ==(PhotonId, PhotonId)
public static bool operator ==(PhotonId left, PhotonId right)
Parameters
Returns
operator !=(PhotonId, PhotonId)
public static bool operator !=(PhotonId left, PhotonId right)