nitro-renderer/packages/room/src/messages/ObjectAvatarUpdateMessage.ts

34 lines
852 B
TypeScript
Raw Normal View History

2024-03-19 21:53:17 -04:00
import { IVector3D } from '@nitrots/api';
2021-03-16 22:02:09 -04:00
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)
{
super(location, targetLocation, direction);
this._headDirection = headDirection;
2022-03-02 19:21:30 -05:00
this._canStandUp = canStandUp;
this._baseY = baseY;
2021-03-16 22:02:09 -04:00
}
public get headDirection(): number
{
return this._headDirection;
}
public get canStandUp(): boolean
{
return this._canStandUp;
}
public get baseY(): number
{
return this._baseY;
}
2022-10-30 02:08:37 -04:00
}