You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 23:46:19 +00:00
Move to Renderer V2
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
import { RoomEngineObjectEvent } from './RoomEngineObjectEvent';
|
||||
|
||||
export class RoomEngineObjectPlacedEvent extends RoomEngineObjectEvent
|
||||
{
|
||||
private _wallLocation: string = '';
|
||||
private _x: number = 0;
|
||||
private _y: number = 0;
|
||||
private _z: number = 0;
|
||||
private _direction: number = 0;
|
||||
private _placedInRoom: boolean = false;
|
||||
private _placedOnFloor: boolean = false;
|
||||
private _placedOnWall: boolean = false;
|
||||
private _instanceData: string = null;
|
||||
|
||||
constructor(type: string, roomId: number, objectId: number, category: number, wallLocation: string, x: number, y: number, z: number, direction: number, placedInRoom: boolean, placedOnFloor: boolean, placedOnWall: boolean, instanceData: string)
|
||||
{
|
||||
super(type, roomId, objectId, category);
|
||||
|
||||
this._wallLocation = wallLocation;
|
||||
this._x = x;
|
||||
this._y = y;
|
||||
this._z = z;
|
||||
this._direction = direction;
|
||||
this._placedInRoom = placedInRoom;
|
||||
this._placedOnFloor = placedOnFloor;
|
||||
this._placedOnWall = placedOnWall;
|
||||
this._instanceData = instanceData;
|
||||
}
|
||||
|
||||
public get wallLocation(): string
|
||||
{
|
||||
return this._wallLocation;
|
||||
}
|
||||
|
||||
public get x(): number
|
||||
{
|
||||
return this._x;
|
||||
}
|
||||
|
||||
public get y(): number
|
||||
{
|
||||
return this._y;
|
||||
}
|
||||
|
||||
public get z(): number
|
||||
{
|
||||
return this._z;
|
||||
}
|
||||
|
||||
public get direction(): number
|
||||
{
|
||||
return this._direction;
|
||||
}
|
||||
|
||||
public get placedInRoom(): boolean
|
||||
{
|
||||
return this._placedInRoom;
|
||||
}
|
||||
|
||||
public get placedOnFloor(): boolean
|
||||
{
|
||||
return this._placedOnFloor;
|
||||
}
|
||||
|
||||
public get placedOnWall(): boolean
|
||||
{
|
||||
return this._placedOnWall;
|
||||
}
|
||||
|
||||
public get instanceData(): string
|
||||
{
|
||||
return this._instanceData;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user