Table of Contents

Class GatherableAspect

Namespace
RisingV.Core.Aspects
Assembly
RisingV.Core.dll

Aspect of an entity that can be gathered, such as resources or materials.

public class GatherableAspect : EntityAspect, IAspect<Entity>, IAspect
Inheritance
BaseAspect<Entity>
GatherableAspect
Implements
IAspect<Entity>
Inherited Members
Extension Methods

Constructors

GatherableAspect(EntityAspect, bool)

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

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

GatherableAspect(Entity, bool)

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

public GatherableAspect(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

IsExplosives

public bool IsExplosives { get; }

Property Value

bool

IsHorseMount

public bool IsHorseMount { get; }

Property Value

bool

IsInvulnerable

public bool IsInvulnerable { get; }

Property Value

bool

IsLightArmor

public bool IsLightArmor { get; }

Property Value

bool

IsMagic

public bool IsMagic { get; }

Property Value

bool

IsMassiveResource

public bool IsMassiveResource { get; }

Property Value

bool

IsMineral

public bool IsMineral { get; }

Property Value

bool

IsMonsterGate

public bool IsMonsterGate { get; }

Property Value

bool

IsVBlood

public bool IsVBlood { get; }

Property Value

bool

IsVegetation

public bool IsVegetation { get; }

Property Value

bool

IsWood

public bool IsWood { get; }

Property Value

bool

Queries

public static GatherableQueries Queries { get; }

Property Value

GatherableQueries

ResourceLevel

public int? ResourceLevel { get; }

Property Value

int?

YieldResourcesOnDamageTaken

public YieldResourcesOnDamageTaken? YieldResourcesOnDamageTaken { get; }

Property Value

YieldResourcesOnDamageTaken?

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.