Class EquipmentAspect
Aspect for equipment entities in the game.
public class EquipmentAspect : BaseAspect<Equipment>, IAspect<Equipment>, IAspect
- Inheritance
-
BaseAspect<Equipment>EquipmentAspect
- Implements
-
IAspect<Equipment>
- Inherited Members
- Extension Methods
Constructors
EquipmentAspect(Equipment, bool)
Initializes a new instance of the BaseAspect<T> class with the specified target object.
public EquipmentAspect(Equipment equipment, bool strict = true)
Parameters
equipment
Equipmentstrict
boolIf true, throws an exception if the target does not qualify for the aspect.
EquipmentAspect(BaseAspect<Equipment>, bool)
Initializes a new instance of the BaseAspect<T> class with another aspect as the base.
public EquipmentAspect(BaseAspect<Equipment> aspect, bool strict = true)
Parameters
aspect
BaseAspect<Equipment>The aspect to base this instance on.
strict
boolIf true, throws an exception if the target does not qualify for the aspect.
Properties
ArmorLevel
public float ArmorLevel { get; }
Property Value
Chest
public ItemAspect? Chest { get; }
Property Value
Cloak
public ItemAspect? Cloak { get; }
Property Value
Footgear
public ItemAspect? Footgear { get; }
Property Value
Gloves
public ItemAspect? Gloves { get; }
Property Value
Headgear
public ItemAspect? Headgear { get; }
Property Value
IsEquipment
Indicates whether this aspect is an equipment aspect.
public override bool IsEquipment { get; }
Property Value
Jewelry
public ItemAspect? Jewelry { get; }
Property Value
Leg
public ItemAspect? Leg { get; }
Property Value
Level
public float Level { get; }
Property Value
SpellLevel
public float SpellLevel { get; }
Property Value
Weapon
public ItemAspect? Weapon { get; }
Property Value
WeaponLevel
public float WeaponLevel { get; }
Property Value
Methods
Is(Equipment)
public static bool Is(Equipment equipment)
Parameters
equipment
Equipment
Returns
Qualifies(Equipment)
Determines if the target object qualifies for this aspect.
public override bool Qualifies(Equipment equipment)
Parameters
equipment
Equipment