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