Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RemoteUniverseComponent

Hierarchy

  • RemoteUniverseComponent

Implements

Index

Constructors

constructor

  • new RemoteUniverseComponent(initInfo: object, onRemoteEvent: (event: object, reliable: boolean) => void): RemoteUniverseComponent
  • Parameters

    • initInfo: object

      The initialization info packet provided by the NetworkUniverse that this remote universe is connected to.

    • onRemoteEvent: (event: object, reliable: boolean) => void

      This callback is called when the room should convey the supplied event to the network universe and call remoteEvent() on that object.

      event The opaque event object to send reliable If this is true, the event must be delivered or the gadgets may get out of synch with each other. If this is false, the room should make its best effort to deliver the event, but the system will recover if the event is discarded.

        • (event: object, reliable: boolean): void
        • Parameters

          • event: object
          • reliable: boolean

          Returns void

    Returns RemoteUniverseComponent

Accessors

receives

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

wantsTransforms

  • get wantsTransforms(): boolean

Methods

findOrAddItemInfo

  • findOrAddItemInfo(gadgetInfo: RemoteGadgetInfo, itemId: string): RemoteItemInfo

networkEvent

  • networkEvent(event: object): void

onUpdate

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

render

  • render(): Element

setEntityEpa

  • setEntityEpa(epa: EndpointAddr): void

Generated using TypeDoc