Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / components / NetworkedPropsComponent

Class: NetworkedPropsComponent ​

Defined in: components/Network.ts:75

Named values shared with everyone: a health bar, a score. Only the entity's owner can change them, with this.network.setProp(). values holds the starting values, and a Behaviour hears changes in onNetworkProp.

Extends ​

Constructors ​

Constructor ​

ts
new NetworkedPropsComponent(values?): NetworkedPropsComponent;

Defined in: components/Network.ts:78

Parameters ​

ParameterType
valuesRecord<string, NetValue>

Returns ​

NetworkedPropsComponent

Overrides ​

Component.constructor

Properties ​

PropertyTypeDefined in
valuesRecord<string, NetValue>components/Network.ts:76