MultiPlanarProcess

Create a multi player game in a Planar

Constructor

new MultiPlanarProcess(socketIOWrapper, extent, assetManager, inputManager, options)

Parameters:
NameTypeDescription
socketIOWrapperSocketIOWrapper

socket to communicate with gamesocketservice

extentitowns.Extent

extent of the itowns view

assetManagerAssetManager

assetManager of the game AssetManager

inputManagerInputManager

input manager of the game InputManager

optionsobject

multi player game planar options

Properties
NameTypeAttributesDescription
frame3DPlanarOptionsPlanarOption

options frame3Dplanar PlanarOption

externalGameScriptClassObject.<string, ExternalScriptBase><optional>

custom external scripts class of your object3D

interpolatorDelaynumber<optional>

delay between state computed in game process and the ones in external context

computeBandWidthboolean

compute bandwidth of the interpolator or not

Classes

MultiPlanarProcess

Members

extent :itowns.Extent

buffer to rebuild a frame3Dplanar on demand

Type:
  • itowns.Extent

externalGameContext :ExternalContext

render audio external script context

Type:
  • ExternalContext

frame3DPlanar :Planar

game view

Type:
  • Planar

frame3DPlanarOptions :PlanarOption

buffer to rebuild a frame3Dplanar on demand

Type:
  • PlanarOption

inputManager :InputManager

interpolator :StateInterpolator

interpolator to smooth comminucation between the two process

Type:
  • StateInterpolator

socketIOWrapper :SocketIOWrapper

websocket communication

Methods

start(readyForGameSocketServiceParams)

Start game communication with server

Parameters:
NameTypeDescription
readyForGameSocketServiceParamsobject

object serialize then send when game is ready to SocketService

Properties
NameTypeDescription
entryGameObject3DUUIDstring

uuid of the game object3D to connect with SocketService

userDataobject

other information to emit to SocketService