Class ReadyObjectExtensions
Namespace: WukongMp.Sdk.Entities
Assembly: WukongMp.Sdk.dll
public static class ReadyObjectExtensions
Inheritance
object ← ReadyObjectExtensions
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Methods
SetLocationRotation<TSelf>(TSelf, Vector3, Vector3)
public static void SetLocationRotation<TSelf>(this TSelf obj, Vector3 location, Vector3 rotation) where TSelf : struct, IReadyEntity<TSelf>, IReadyConvertable<TSelf, ReadyObject>
Parameters
obj TSelf
location Vector3
rotation Vector3
Type Parameters
TSelf
get_AreaId<TSelf>(TSelf)
public static AreaId? get_AreaId<TSelf>(TSelf obj) where TSelf : struct, IReadyEntity<TSelf>, IReadyConvertable<TSelf, ReadyObject>
Parameters
obj TSelf
Returns
Type Parameters
TSelf
get_Location<TSelf>(TSelf)
public static Vector3 get_Location<TSelf>(TSelf obj) where TSelf : struct, IReadyEntity<TSelf>, IReadyConvertable<TSelf, ReadyObject>
Parameters
obj TSelf
Returns
Type Parameters
TSelf
get_Owner<TSelf>(TSelf)
Gets the owner of the entity. This is usually the player that spawned the entity, or a player that was handled the ownership after the original owner disconnected.
public static PlayerId get_Owner<TSelf>(TSelf obj) where TSelf : struct, IReadyEntity<TSelf>, IReadyConvertable<TSelf, ReadyObject>
Parameters
obj TSelf
Returns
Type Parameters
TSelf
Exceptions
get_Rotation<TSelf>(TSelf)
public static Vector3 get_Rotation<TSelf>(TSelf obj) where TSelf : struct, IReadyEntity<TSelf>, IReadyConvertable<TSelf, ReadyObject>
Parameters
obj TSelf
Returns
Type Parameters
TSelf
set_Location<TSelf>(TSelf, Vector3)
public static void set_Location<TSelf>(TSelf obj, Vector3 value) where TSelf : struct, IReadyEntity<TSelf>, IReadyConvertable<TSelf, ReadyObject>
Parameters
obj TSelf
value Vector3
Type Parameters
TSelf
set_Rotation<TSelf>(TSelf, Vector3)
public static void set_Rotation<TSelf>(TSelf obj, Vector3 value) where TSelf : struct, IReadyEntity<TSelf>, IReadyConvertable<TSelf, ReadyObject>
Parameters
obj TSelf
value Vector3
Type Parameters
TSelf