Table of Contents

Class NetworkAspect

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

Aspect of an entity that has network-related components.

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

Constructors

NetworkAspect(EntityAspect, bool)

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

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

NetworkAspect(Entity, bool)

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

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

FrameChanged

public FrameChanged? FrameChanged { get; }

Property Value

FrameChanged?

NetworkId

Gets the network ID of the entity, which is used for network communication.

public override NetworkId NetworkId { get; }

Property Value

NetworkId

NetworkSnapshot

public NetworkSnapshot? NetworkSnapshot { get; }

Property Value

NetworkSnapshot?

NetworkedTimeout

public NetworkedTimeout? NetworkedTimeout { get; }

Property Value

NetworkedTimeout?

Queries

public static NetworkQueries Queries { get; }

Property Value

NetworkQueries

UpToDateUserBitMask

public UpToDateUserBitMask? UpToDateUserBitMask { get; }

Property Value

UpToDateUserBitMask?

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.