Static variables

@:value(2)staticinlineread onlyCONTROLLER_UPDATES:Int = 2

@:value(1)staticinlineread onlyENTITY_UPDATES:Int = 1

@:value(4)staticinlineread onlyPING:Int = 4

@:value(6)staticinlineread onlyPLAYER_UPDATES:Int = 6

@:value(3)staticinlineread onlyREMOTE_CALL:Int = 3

@:value(1)staticinlineread onlyRPC_ALL:Int = 1

@:value(0)staticinlineread onlyRPC_SERVER:Int = 0

@:value(5)staticinlineread onlySESSION_ERROR:Int = 5

@:value(0)staticinlineread onlySTART:Int = 0

Static methods

staticthe():Session

Constructor

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

Variables

@:value(0)currentPlayers:Int = 0

read onlyme:Client

@:value(1)ping:Float = 1

Methods

addController(controller:Controller):Void

addEntity(entity:Entity):Void

@:value({ client : null })receive(bytes:Bytes, ?client:Client):Void

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

sendToServer(bytes:Bytes):Void

update():Void

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