You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 23:16:20 +00:00
🆙 Stage 2 reconnect
This commit is contained in:
@@ -9,6 +9,8 @@ export class RoomSession implements IRoomSession
|
||||
|
||||
private _roomId: number = 0;
|
||||
private _password: string = null;
|
||||
private _spawnX: number = -1;
|
||||
private _spawnY: number = -1;
|
||||
private _state: string = RoomSessionEvent.CREATED;
|
||||
private _tradeMode: number = RoomTradingLevelEnum.NO_TRADING;
|
||||
private _doorMode: number = 0;
|
||||
@@ -57,7 +59,7 @@ export class RoomSession implements IRoomSession
|
||||
{
|
||||
if(!GetCommunication().connection) return false;
|
||||
|
||||
GetCommunication().connection.send(new RoomEnterComposer(this._roomId, this._password));
|
||||
GetCommunication().connection.send(new RoomEnterComposer(this._roomId, this._password, this._spawnX, this._spawnY));
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -326,6 +328,26 @@ export class RoomSession implements IRoomSession
|
||||
this._password = password;
|
||||
}
|
||||
|
||||
public get spawnX(): number
|
||||
{
|
||||
return this._spawnX;
|
||||
}
|
||||
|
||||
public set spawnX(x: number)
|
||||
{
|
||||
this._spawnX = x;
|
||||
}
|
||||
|
||||
public get spawnY(): number
|
||||
{
|
||||
return this._spawnY;
|
||||
}
|
||||
|
||||
public set spawnY(y: number)
|
||||
{
|
||||
this._spawnY = y;
|
||||
}
|
||||
|
||||
public get state(): string
|
||||
{
|
||||
return this._state;
|
||||
|
||||
Reference in New Issue
Block a user