Interface IAspect<T>
Base contract for a strongly-typed aspect.
public interface IAspect<T> : IAspect
Type Parameters
T
The compile-time type of object this aspect can wrap (e.g.
Entity
,Equipment
, plainCharacter
DTO, …).
- Extension Methods
Properties
Target
The wrapped object this aspect operates on.
T Target { get; }
Property Value
- T
Methods
Qualifies(T)
Returns true
if entity
satisfies the structural
and semantic requirements of this aspect (components present, tags set,
valid state, etc.).
bool Qualifies(T entity)
Parameters
entity
T