Class HumanRole
Defines a role that represents a human class.
public class HumanRole : FpcRole, IWrapper<PlayerRoleBase>, IVoiceRole
- Inheritance
-
HumanRole
- Implements
-
IWrapper<PlayerRoleBase>
- Inherited Members
- Extension Methods
Properties
Base
Gets the game PlayerRoles.HumanRole.
public HumanRole Base { get; }
Property Value
- HumanRole
Type
Gets the PlayerRoles.RoleTypeId of this Player.
public override RoleTypeId Type { get; }
Property Value
- RoleTypeId
UnitName
Gets the player's unit name.
public string UnitName { get; }
Property Value
UnitNameId
Gets or sets the UnitNameId.
public byte UnitNameId { get; set; }
Property Value
UsesUnitNames
Gets a value indicating whether the HumanRole uses unit names or not.
public bool UsesUnitNames { get; }
Property Value
Methods
GetArmorEfficacy(HitboxType)
Gets the HumanRole armor efficacy based on a specific HitboxType and the armor the Owner is wearing.
public int GetArmorEfficacy(HitboxType hitbox)
Parameters
hitbox
HitboxTypeThe HitboxType.
Returns
- int
The armor efficacy.