Move to Renderer V2

This commit is contained in:
duckietm
2024-04-03 09:27:56 +02:00
parent 110c3ad393
commit b3134ce50b
4080 changed files with 115593 additions and 66375 deletions
@@ -0,0 +1,28 @@
import { IVector3D } from '@nitrots/api';
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
export class ObjectMoveUpdateMessage extends RoomObjectUpdateMessage
{
private _targetLocation: IVector3D;
private _isSlide: boolean;
constructor(location: IVector3D, targetLocation: IVector3D, direction: IVector3D, isSlide: boolean = false)
{
super(location, direction);
this._targetLocation = targetLocation;
this._isSlide = isSlide;
}
public get targetLocation(): IVector3D
{
if(!this._targetLocation) return this.location;
return this._targetLocation;
}
public get isSlide(): boolean
{
return this._isSlide;
}
}