Player

Namespace: SharpPluginLoader.Core.Entities

public class Player : Entity

Inheritance ObjectNativeWrapperMtObjectModelEntityPlayer

Properties

SingletonInstance

The sPlayer singleton instance

public static nint SingletonInstance { get; }

Property Value

IntPtr

MainPlayer

The main player

public static Player MainPlayer { get; }

Property Value

Player

CurrentWeapon

The currently equipped weapon

public Weapon CurrentWeapon { get; }

Property Value

Weapon

CurrentWeaponType

The currently equipped weapon type

public WeaponType CurrentWeaponType { get; }

Property Value

WeaponType

CollisionComponent

Gets the entity's collision component

public CollisionComponent CollisionComponent { get; }

Property Value

CollisionComponent

ActionController

The entity's action controller

public ActionController ActionController { get; }

Property Value

ActionController

Position

The position of the model

public MtVector3& Position { get; }

Property Value

MtVector3&

Size

The size of the model

public MtVector3& Size { get; }

Property Value

MtVector3&

CollisionPosition

The position of the model's collision box

public MtVector3& CollisionPosition { get; }

Property Value

MtVector3&

Rotation

The rotation of the model

public MtQuaternion& Rotation { get; }

Property Value

MtQuaternion&

Forward

The model's forward vector

public MtVector3 Forward { get; }

Property Value

MtVector3

AnimationFrame

The current frame of the model's current animation

public float AnimationFrame { get; set; }

Property Value

Single

MaxAnimationFrame

The frame count of the model's current animation

public float MaxAnimationFrame { get; set; }

Property Value

Single

AnimationSpeed

The speed of the model's current animation. Note, this value gets set every frame.

public float AnimationSpeed { get; set; }

Property Value

Single

CurrentAnimation

Gets the current animation of the model

public AnimationId& CurrentAnimation { get; }

Property Value

AnimationId&

AnimationLayer

The model's animation component

public AnimationLayerComponent AnimationLayer { get; }

Property Value

AnimationLayerComponent

MotionLists

The model's motion lists.

public IEnumerable<MotionList> MotionLists { get; }

Property Value

IEnumerable<MotionList>

Instance

The native pointer.

public nint Instance { get; set; }

Property Value

IntPtr

Constructors

Player(IntPtr)

public Player(nint instance)

Parameters

instance IntPtr

Player()

public Player()

Methods

CreateShell(UInt32, MtVector3, Nullable<MtVector3>)

public void CreateShell(uint index, MtVector3 target, Nullable<MtVector3> origin)

Parameters

index UInt32

target MtVector3

origin Nullable<MtVector3>

CreateShell(ShellParamList, UInt32, MtVector3, Nullable<MtVector3>)

public void CreateShell(ShellParamList shll, uint index, MtVector3 target, Nullable<MtVector3> origin)

Parameters

shll ShellParamList

index UInt32

target MtVector3

origin Nullable<MtVector3>

CreateShell(ShellParam, MtVector3, Nullable<MtVector3>)

public void CreateShell(ShellParam shell, MtVector3 target, Nullable<MtVector3> origin)

Parameters

shell ShellParam

target MtVector3

origin Nullable<MtVector3>

RegisterMbd(Resource, UInt32)

public void RegisterMbd(Resource mbd, uint index)

Parameters

mbd Resource

index UInt32