You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
34 lines
961 B
TypeScript
34 lines
961 B
TypeScript
import { IVector3D } from '@nitrots/api';
|
|
import { ObjectMoveUpdateMessage } from './ObjectMoveUpdateMessage';
|
|
|
|
export class ObjectAvatarUpdateMessage extends ObjectMoveUpdateMessage
|
|
{
|
|
private _headDirection: number;
|
|
private _canStandUp: boolean;
|
|
private _baseY: number;
|
|
|
|
constructor(location: IVector3D, targetLocation: IVector3D, direction: IVector3D, headDirection: number, canStandUp: boolean, baseY: number, isSlide: boolean = false, duration: number = ObjectMoveUpdateMessage.DEFAULT_DURATION)
|
|
{
|
|
super(location, targetLocation, direction, isSlide, duration, 0);
|
|
|
|
this._headDirection = headDirection;
|
|
this._canStandUp = canStandUp;
|
|
this._baseY = baseY;
|
|
}
|
|
|
|
public get headDirection(): number
|
|
{
|
|
return this._headDirection;
|
|
}
|
|
|
|
public get canStandUp(): boolean
|
|
{
|
|
return this._canStandUp;
|
|
}
|
|
|
|
public get baseY(): number
|
|
{
|
|
return this._baseY;
|
|
}
|
|
}
|