@: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
staticthe():Session
new(maxPlayers:Int, address:String, port:Int)
@:value(0)currentPlayers:Int = 0
maxPlayers:Int
read onlyme:Client
network:Network
@:value(1)ping:Float = 1
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