2024-03-19 21:53:17 -04:00
|
|
|
import { IObjectData } from '@nitrots/api';
|
|
|
|
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
2021-03-16 22:02:09 -04:00
|
|
|
|
|
|
|
export class ObjectDataUpdateMessage extends RoomObjectUpdateMessage
|
|
|
|
{
|
|
|
|
private _state: number;
|
|
|
|
private _data: IObjectData;
|
|
|
|
private _extra: number;
|
|
|
|
|
2022-03-23 15:09:32 -04:00
|
|
|
constructor(state: number, data: IObjectData, extra: number = null)
|
2021-03-16 22:02:09 -04:00
|
|
|
{
|
|
|
|
super(null, null);
|
|
|
|
|
|
|
|
this._state = state;
|
2022-03-02 19:21:30 -05:00
|
|
|
this._data = data;
|
2021-03-16 22:02:09 -04:00
|
|
|
this._extra = extra;
|
|
|
|
}
|
|
|
|
|
|
|
|
public get state(): number
|
|
|
|
{
|
|
|
|
return this._state;
|
|
|
|
}
|
|
|
|
|
|
|
|
public get data(): IObjectData
|
|
|
|
{
|
|
|
|
return this._data;
|
|
|
|
}
|
|
|
|
|
|
|
|
public get extra(): number
|
|
|
|
{
|
|
|
|
return this._extra;
|
|
|
|
}
|
2022-03-23 15:09:32 -04:00
|
|
|
}
|