Table of Contents

Class ReplicatedAttribute

Namespace
Typhon.Protocol
Assembly
Typhon.Protocol.dll

Opts an archetype into replication by attributes (11 § 5.4): its components' ReplicateAttribute, OnEnterAttribute, OwnerAttribute, FractionAttribute and HeadingAttribute fields, and its MotionAttribute or PositionAttribute component, become its projection. Without it no attribute of its components replicates it — a component shared with another archetype does not replicate that one silently. A builder subs.Archetype<T>(…) call replaces the attributes entirely.

[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public sealed class ReplicatedAttribute : Attribute
Inheritance
ReplicatedAttribute
Inherited Members

Constructors

ReplicatedAttribute()

public ReplicatedAttribute()

Properties

Static

Whether the archetype is static — sent once on enter, never updated (subs.Static<T>).

public bool Static { get; set; }

Property Value

bool