Table of Contents

Struct EntityId

Namespace
SampSharp.Entities
Assembly
SampSharp.OpenMp.Entities.dll

Represents an identifier of an entity.

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

Fields

Empty

An empty entity identifier.

public static readonly EntityId Empty

Field Value

EntityId

Properties

IsEmpty

Gets a value indicating whether this handle is empty.

public bool IsEmpty { get; }

Property Value

bool

Methods

Equals(EntityId)

public bool Equals(EntityId other)

Parameters

other EntityId

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

NewEntityId()

Creates a fresh entity handle backed by a new Guid.

public static EntityId NewEntityId()

Returns

EntityId

ToString()

public override string ToString()

Returns

string

Operators

operator ==(EntityId, EntityId)

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

Parameters

left EntityId
right EntityId

Returns

bool

operator false(EntityId)

Implements the operator false.

public static bool operator false(EntityId value)

Parameters

value EntityId

Returns

bool

implicit operator EntityId(Component)

Performs an implicit conversion from Component to EntityId. Returns the entity of the component.

public static implicit operator EntityId(Component component)

Parameters

component Component

Returns

EntityId

implicit operator bool(EntityId)

Performs an implicit conversion from EntityId to bool. Returns true if the specified value is not empty.

public static implicit operator bool(EntityId value)

Parameters

value EntityId

Returns

bool

operator !=(EntityId, EntityId)

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

Parameters

left EntityId
right EntityId

Returns

bool

operator !(EntityId)

Implements the operator !.

public static bool operator !(EntityId value)

Parameters

value EntityId

Returns

bool

operator true(EntityId)

Implements the operator true.

public static bool operator true(EntityId value)

Parameters

value EntityId

Returns

bool