Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NetworkUniverseComponent

A network that can be used with AvComposedComponent. The arguments below are for the provided callback function.

param

An object, opaque to the room itself, that allows the network universe to communicate with its remote peers.

param

If this argument is true, the room must deliver the message to every remote universe or that universe will be out of synch with the network universe.

Hierarchy

  • NetworkUniverseComponent

Implements

Index

Constructors

constructor

  • new NetworkUniverseComponent(networkEventCallback: (event: object, reliable: boolean) => void): NetworkUniverseComponent

Properties

Static nextRemoteGadgetId

nextRemoteGadgetId: number = 1

Accessors

initInfo

  • get initInfo(): object
  • The initialization info packet that the room needs to communicate to any remote universe it is starting up.

    Returns object

receives

  • get receives(): { iface: string; processor: onNetworkInterface }[]

wantsTransforms

  • get wantsTransforms(): boolean

Methods

onUpdate

  • onUpdate(callback: () => void): void

remoteEvent

  • remoteEvent(event: object): void

render

  • render(): Element

Generated using TypeDoc