Table of Contents

Class VBloodAspect

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

Constructors

VBloodAspect(EntityAspect, bool)

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

public VBloodAspect(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.

VBloodAspect(Entity, bool)

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

public VBloodAspect(Entity entity, bool strict = true)

Parameters

entity Entity
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.

Properties

PrefabEnum

Gets the VBlood type of this entity.

public VBlood PrefabEnum { get; }

Property Value

VBlood

Queries

public static VBloodQueries Queries { get; }

Property Value

VBloodQueries

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.