EntityId Structure |
Namespace: SampSharp.Entities
public struct EntityId
The EntityId type exposes the following members.
Name | Description | |
---|---|---|
Handle |
Gets the handle of the entity identifier.
| |
IsEmpty |
Gets a value indicating whether this handle is empty.
| |
IsInvalidHandle |
Gets a value indicating whether this handle is invalid.
| |
Type |
Gets the identifier which uniquely identifies the type of the entity identifier.
|
Name | Description | |
---|---|---|
Equals(Object) |
Determines whether the specified Object, is equal to this value.
(Overrides ValueTypeEquals(Object).) | |
Equals(EntityId) |
Determines whether the specified other value, is equal to this value.
| |
GetHashCode |
Returns a hash code for this value.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString.) |
Name | Description | |
---|---|---|
Equality |
Implements the operator ==.
| |
False |
Implements the operator false. Returns true if the specified value is of the default empty
type or has an invalid handle.
| |
(Component to EntityId) |
Performs an implicit conversion from Component to EntityId. Returns the entity of the component.
| |
(EntityId to Int32) |
Performs an implicit conversion from EntityId to Int32. Returns the handle of this value.
| |
(EntityId to Boolean) |
Performs an implicit conversion from EntityId to Boolean. Returns true if the
specified value is not of the default empty type and does not have an invalid handle.
| |
Inequality |
Implements the operator !=.
| |
LogicalNot |
Implements the operator !. Returns true if the specified value is of the default empty type or has an invalid handle.
| |
True |
Implements the operator true. Returns true if the specified value is not of the default
empty type and does not have an invalid handle.
|
Name | Description | |
---|---|---|
HandleOrDefault |
Returns the handle of the entity or the specified default value if the entity is empty.
(Defined by EntityExtensions.) | |
IsOfAnyType |
Returns a value indicating whether the entity identifier of the specified entity is of any of the
specified types.
(Defined by EntityExtensions.) | |
IsOfType |
Returns a value indicating whether the entity identifier of the specified entity is of the
specified type.
(Defined by EntityExtensions.) |