Struct PlayerClass
Defines player spawn class information.
public readonly struct PlayerClass
- Inherited Members
Constructors
PlayerClass(int, int, Vector3, float, WeaponSlots)
Initializes a new instance of the PlayerClass struct.
public PlayerClass(int team, int skin, Vector3 spawn, float angle, WeaponSlots weapons)
Parameters
teamintThe team ID.
skinintThe skin model ID.
spawnVector3The spawn position.
anglefloatThe spawn angle in degrees.
weaponsWeaponSlotsThe weapon slots for the class.
Fields
Angle
The spawn angle (rotation) for this class.
public readonly float Angle
Field Value
Skin
The skin model ID for this class.
public readonly int Skin
Field Value
Spawn
The spawn position for this class.
public readonly Vector3 Spawn
Field Value
Team
The team ID for this class.
public readonly int Team
Field Value
Weapons
The weapon slots assigned to this class.
public readonly WeaponSlots Weapons