Class MinionAspect
Aspect of an entity that represents a minion in the game.
public class MinionAspect : UnitAspect, IAspect<Entity>, IAspect
- Inheritance
-
BaseAspect<Entity>MinionAspect
- Implements
-
IAspect<Entity>
- Inherited Members
- Extension Methods
Constructors
MinionAspect(EntityAspect, bool)
Initializes a new instance of the EntityAspect class with another aspect.
public MinionAspect(EntityAspect aspect, bool strict = true)
Parameters
aspect
EntityAspectThe aspect to copy from.
strict
boolIf true, the aspect will throw an exception if the entity is null.
Exceptions
- ArgumentNullException
Thrown when the entity of the aspect is null.
MinionAspect(Entity, bool)
Initializes a new instance of the EntityAspect class with the specified entity.
public MinionAspect(Entity entity, bool strict = true)
Parameters
entity
EntityThe entity to associate with this aspect.
strict
boolIf true, the aspect will throw an exception if the entity is null.
Exceptions
- ArgumentNullException
Thrown when the entity is null.
Properties
Minion
public Minion? Minion { get; }
Property Value
- Minion?
Queries
public static MinionQueries Queries { get; }
Property Value
Methods
Is(Entity)
public static bool Is(Entity entity)
Parameters
entity
Entity
Returns
Qualifies(Entity)
Checks if the entity qualifies for this aspect.
public override bool Qualifies(Entity entity)
Parameters
entity
Entity
Returns
- bool
Returns true if the entity qualifies, otherwise false.