Skip to main content
Version: 0.4.1

Struct ReadyObject

Namespace: WukongMp.Sdk.Entities
Assembly: WukongMp.Sdk.dll

public readonly struct ReadyObject : IReadyEntity<ReadyObject>

Implements

IReadyEntity<ReadyObject>

Inherited Members

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Extension Methods

ReadyObjectExtensions.SetLocationRotation<ReadyObject>(ReadyObject, Vector3, Vector3)

Properties

IsNull

Whether the entity behind this handle no longer exists.

public bool IsNull { get; }

Property Value

bool

Methods

Get<T>()

Reads a component, throwing if the entity is gone.

public ref T Get<T>() where T : struct, IComponent

Returns

T

Type Parameters

T

TryGet<T>(out T)

Reads a copy of a component, or returns false when the entity is gone or does not carry it.

public bool TryGet<T>(out T value) where T : struct, IComponent

Parameters

value T

Returns

bool

Type Parameters

T