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
Move to Renderer V2
This commit is contained in:
@@ -0,0 +1,95 @@
|
||||
import { IObjectData, ISelectedRoomObjectData, IVector3D } from '@nitrots/api';
|
||||
import { Vector3d } from '@nitrots/utils';
|
||||
|
||||
export class SelectedRoomObjectData implements ISelectedRoomObjectData
|
||||
{
|
||||
private _id: number = 0;
|
||||
private _category: number = 0;
|
||||
private _operation: string = '';
|
||||
private _loc: IVector3D = null;
|
||||
private _dir: IVector3D = null;
|
||||
private _typeId: number = 0;
|
||||
private _instanceData: string = null;
|
||||
private _stuffData: IObjectData = null;
|
||||
private _state: number = -1;
|
||||
private _animFrame: number = -1;
|
||||
private _posture: string = null;
|
||||
|
||||
constructor(id: number, category: number, operation: string, location: IVector3D, direction: IVector3D, typeId: number = 0, instanceData: string = null, stuffData: IObjectData = null, state: number = -1, frameNumber: number = -1, posture: string = null)
|
||||
{
|
||||
this._id = id;
|
||||
this._category = category;
|
||||
this._operation = operation;
|
||||
this._loc = new Vector3d();
|
||||
this._loc.assign(location);
|
||||
this._dir = new Vector3d();
|
||||
this._dir.assign(direction);
|
||||
this._typeId = typeId;
|
||||
this._instanceData = instanceData;
|
||||
this._stuffData = stuffData;
|
||||
this._state = state;
|
||||
this._animFrame = frameNumber;
|
||||
this._posture = posture;
|
||||
}
|
||||
|
||||
public get id(): number
|
||||
{
|
||||
return this._id;
|
||||
}
|
||||
|
||||
public get category(): number
|
||||
{
|
||||
return this._category;
|
||||
}
|
||||
|
||||
public get operation(): string
|
||||
{
|
||||
return this._operation;
|
||||
}
|
||||
|
||||
public get loc(): IVector3D
|
||||
{
|
||||
return this._loc;
|
||||
}
|
||||
|
||||
public get dir(): IVector3D
|
||||
{
|
||||
return this._dir;
|
||||
}
|
||||
|
||||
public get typeId(): number
|
||||
{
|
||||
return this._typeId;
|
||||
}
|
||||
|
||||
public get instanceData(): string
|
||||
{
|
||||
return this._instanceData;
|
||||
}
|
||||
|
||||
public get stuffData(): IObjectData
|
||||
{
|
||||
return this._stuffData;
|
||||
}
|
||||
|
||||
public get state(): number
|
||||
{
|
||||
return this._state;
|
||||
}
|
||||
|
||||
public get animFrame(): number
|
||||
{
|
||||
return this._animFrame;
|
||||
}
|
||||
|
||||
public get posture(): string
|
||||
{
|
||||
return this._posture;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
this._loc = null;
|
||||
this._dir = null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user