@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 ​
| Parameter | Type |
|---|---|
values | Record<string, NetValue> |
Returns ​
NetworkedPropsComponent
Overrides ​
Properties ​
| Property | Type | Defined in |
|---|---|---|
values | Record<string, NetValue> | components/Network.ts:76 |

