Table of Contents

Class CastleHeartSystem

Namespace
RisingV.Core.Systems
Assembly
RisingV.Core.CastleEngine.dll

System for locating CastleHeart entities in the world.

public class CastleHeartSystem : System, ISystem, IManageableLifecycle<SystemManager>, IManageableLifecycle, IReloadable, IManageable<SystemManager>, IManageable
Inheritance
CastleHeartSystem
Implements
Inherited Members
Extension Methods

Constructors

CastleHeartSystem()

Default constructor.

public CastleHeartSystem()

Fields

CastleHeartQuery

Lazily initialized query for all CastleHeart + Team components.

public static readonly LazyRetry<EntityQuery> CastleHeartQuery

Field Value

LazyRetry<EntityQuery>

Methods

TryGetById(NetworkId, out Entity)

Attempts to find the castle entity matching the given castleId.

public static bool TryGetById(NetworkId castleId, out Entity castle)

Parameters

castleId NetworkId
castle Entity

Returns

bool

TryGetByOwnerUser(User, out Entity)

Attempts to find a castle entity owned by the specified user.

public static bool TryGetByOwnerUser(User user, out Entity castle)

Parameters

user User

User whose castle to find.

castle Entity

Output entity if found; otherwise Unity.Entities.Entity.Null.

Returns

bool

True if an owned castle entity is found.