diff --git a/src/nitro/avatar/animation/ISpriteDataContainer.ts b/src/nitro/avatar/animation/ISpriteDataContainer.ts index 2dc43444..97df7158 100644 --- a/src/nitro/avatar/animation/ISpriteDataContainer.ts +++ b/src/nitro/avatar/animation/ISpriteDataContainer.ts @@ -6,9 +6,9 @@ export interface ISpriteDataContainer id: string; ink: number; member: string; - _Str_949: boolean; - _Str_767: boolean; - _Str_809(_arg_1: number): number; - _Str_739(_arg_1: number): number; - _Str_839(_arg_1: number): number; -} \ No newline at end of file + hasDirections: boolean; + hasStaticY: boolean; + getDirectionOffsetX(_arg_1: number): number; + getDirectionOffsetY(_arg_1: number): number; + getDirectionOffsetZ(_arg_1: number): number; +} diff --git a/src/nitro/avatar/animation/SpriteDataContainer.ts b/src/nitro/avatar/animation/SpriteDataContainer.ts index eece75bd..c4c03dee 100644 --- a/src/nitro/avatar/animation/SpriteDataContainer.ts +++ b/src/nitro/avatar/animation/SpriteDataContainer.ts @@ -43,21 +43,21 @@ export class SpriteDataContainer implements ISpriteDataContainer } } - public _Str_809(k: number): number + public getDirectionOffsetX(k: number): number { if(k < this._dx.length) return this._dx[k]; return 0; } - public _Str_739(k: number): number + public getDirectionOffsetY(k: number): number { if(k < this._dy.length) return this._dy[k]; return 0; } - public _Str_839(k: number): number + public getDirectionOffsetZ(k: number): number { if(k < this._dz.length) return this._dz[k]; @@ -84,12 +84,12 @@ export class SpriteDataContainer implements ISpriteDataContainer return this._member; } - public get _Str_949(): boolean + public get hasDirections(): boolean { return this._hasDirections; } - public get _Str_767(): boolean + public get hasStaticY(): boolean { return this._hasStaticY; } diff --git a/src/nitro/room/object/visualization/avatar/AvatarVisualization.ts b/src/nitro/room/object/visualization/avatar/AvatarVisualization.ts index 62efb7d1..76bb3bde 100644 --- a/src/nitro/room/object/visualization/avatar/AvatarVisualization.ts +++ b/src/nitro/room/object/visualization/avatar/AvatarVisualization.ts @@ -365,8 +365,8 @@ export class AvatarVisualization extends RoomObjectSpriteVisualization implement { const layerData = this._avatarImage.getLayerData(spriteData); - let offsetX = spriteData._Str_809(direction); - let offsetY = spriteData._Str_739(direction); + let offsetX = spriteData.getDirectionOffsetX(direction); + let offsetY = spriteData.getDirectionOffsetY(direction); if(layerData) { @@ -399,12 +399,12 @@ export class AvatarVisualization extends RoomObjectSpriteVisualization implement const layerData = this._avatarImage.getLayerData(spriteData); let frameNumber = 0; - let offsetX = spriteData._Str_809(direction); - let offsetY = spriteData._Str_739(direction); - const offsetZ = spriteData._Str_839(direction); + let offsetX = spriteData.getDirectionOffsetX(direction); + let offsetY = spriteData.getDirectionOffsetY(direction); + const offsetZ = spriteData.getDirectionOffsetZ(direction); let dd = 0; - if(spriteData._Str_949) dd = direction; + if(spriteData.hasDirections) dd = direction; if(layerData) { @@ -437,7 +437,7 @@ export class AvatarVisualization extends RoomObjectSpriteVisualization implement sprite.offsetY = (asset.offsetY + offsetY); sprite.flipH = asset.flipH; - if(spriteData._Str_767) + if(spriteData.hasStaticY) { sprite.offsetY += ((this._verticalOffset * scale) / (2 * AvatarVisualization._Str_12370)); }