Struct EntitySharedReference
Assembly: LiteEntitySystem.dll
Syntax
public readonly struct EntitySharedReference : IEquatable<EntitySharedReference>
Constructors
EntitySharedReference(EntityLogic)
Declaration
public EntitySharedReference(EntityLogic entity)
Parameters
EntitySharedReference(ushort, byte)
Declaration
public EntitySharedReference(ushort id, byte version)
Parameters
Fields
Empty
Declaration
public static readonly EntitySharedReference Empty
Field Value
Id
Declaration
public readonly ushort Id
Field Value
Version
Declaration
public readonly byte Version
Field Value
Properties
IsInvalid
Declaration
public bool IsInvalid { get; }
Property Value
IsLocal
Declaration
public bool IsLocal { get; }
Property Value
IsValid
Declaration
public bool IsValid { get; }
Property Value
Methods
Equals(EntitySharedReference)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(EntitySharedReference other)
Parameters
Returns
Type |
Description |
bool |
true if the current object is equal to the other parameter; otherwise, false.
|
Equals(object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current instance.
|
Returns
Type |
Description |
bool |
true if obj and this instance are the same type and represent the same value; otherwise, false.
|
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A 32-bit signed integer that is the hash code for this instance.
|
Overrides
ToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
The fully qualified type name.
|
Overrides
Operators
operator ==(EntitySharedReference, EntitySharedReference)
Declaration
public static bool operator ==(EntitySharedReference obj1, EntitySharedReference obj2)
Parameters
Returns
implicit operator EntitySharedReference(EntityLogic)
Declaration
public static implicit operator EntitySharedReference(EntityLogic entity)
Parameters
Returns
operator !=(EntitySharedReference, EntitySharedReference)
Declaration
public static bool operator !=(EntitySharedReference obj1, EntitySharedReference obj2)
Parameters
Returns
Implements