You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 07:26:18 +00:00
17 lines
750 B
TypeScript
17 lines
750 B
TypeScript
import { RoomObjectVariable } from '@nitrots/api';
|
|
import { FurnitureAnimatedVisualization } from './FurnitureAnimatedVisualization';
|
|
|
|
export class FurnitureSoundBlockVisualization extends FurnitureAnimatedVisualization
|
|
{
|
|
private _internalFrameIncreaseCounter: number = 0;
|
|
|
|
protected updateAnimations(scale: number): number
|
|
{
|
|
this._internalFrameIncreaseCounter = (this._internalFrameIncreaseCounter + this.object.model.getValue<number>(RoomObjectVariable.FURNITURE_SOUNDBLOCK_RELATIVE_ANIMATION_SPEED));
|
|
this._frameIncrease = this._internalFrameIncreaseCounter;
|
|
this._internalFrameIncreaseCounter = (this._internalFrameIncreaseCounter - this._frameIncrease);
|
|
|
|
return super.updateAnimations(scale);
|
|
}
|
|
}
|