Constructor

new (maxPlayers:Int, address:String, port:Int)

Variables

Methods

addController (controller:Controller):Void

addEntity (entity:Entity):Void

receive (bytes:Bytes, ?client:Client):Void

sendControllerUpdate (id:Int, bytes:Bytes):Void

sendToServer (bytes:Bytes):Void

update ():Void

waitForStart (callback:Void ‑> Void, refuseCallback:Void ‑> Void, errorCallback:Void ‑> Void, closeCallback:Void ‑> Void, resCallback:Void ‑> Void):Void

Static variables

staticinline read onlyCONTROLLER_UPDATES:Int = 2

staticinline read onlyENTITY_UPDATES:Int = 1

staticinline read onlyPING:Int = 4

staticinline read onlyPLAYER_UPDATES:Int = 6

staticinline read onlyREMOTE_CALL:Int = 3

staticinline read onlyRPC_ALL:Int = 1

staticinline read onlyRPC_SERVER:Int = 0

staticinline read onlySESSION_ERROR:Int = 5

staticinline read onlySTART:Int = 0

Static methods

staticthe ():Session