Table of Contents

Class StructureAspect

Namespace
RisingV.Core.Aspects
Assembly
RisingV.Core.dll
public class StructureAspect : EntityAspect, IAspect<Entity>, IAspect
Inheritance
BaseAspect<Entity>
StructureAspect
Implements
IAspect<Entity>
Inherited Members
Extension Methods

Constructors

StructureAspect(EntityAspect, bool)

Initializes a new instance of the EntityAspect class with another aspect.

public StructureAspect(EntityAspect aspect, bool strict = true)

Parameters

aspect EntityAspect

The aspect to copy from.

strict bool

If true, the aspect will throw an exception if the entity is null.

Exceptions

ArgumentNullException

Thrown when the entity of the aspect is null.

StructureAspect(Entity, bool)

Initializes a new instance of the EntityAspect class with the specified entity.

public StructureAspect(Entity entity, bool strict = true)

Parameters

entity Entity

The entity to associate with this aspect.

strict bool

If true, the aspect will throw an exception if the entity is null.

Exceptions

ArgumentNullException

Thrown when the entity is null.

Properties

Queries

public static StructureQueries Queries { get; }

Property Value

StructureQueries

StructureCategory

public StructureCategory? StructureCategory { get; }

Property Value

StructureCategory?

Methods

Is(Entity)

public static bool Is(Entity entity)

Parameters

entity Entity

Returns

bool

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.