Fix sound stuff

This commit is contained in:
Bill 2021-07-26 23:21:40 -04:00
parent 238b11575f
commit caa7495089
2 changed files with 4 additions and 2 deletions

View File

@ -13,7 +13,7 @@ export interface IAssetData {
logicType?: string;
maskType?: string;
credits?: string;
soundSample?: number;
soundSample?: { id?: number, noPitch?: boolean };
action?: { link?: string, startState?: number };
spritesheet?: ISpritesheet;
dimensions?: IAssetDimension;

View File

@ -44,7 +44,9 @@ export class FurnitureSoundBlockLogic extends FurnitureMultiStateLogic
if(!asset.soundSample) return;
this._sampleId = asset.soundSample;
this._sampleId = asset.soundSample.id;
this._noPitch = asset.soundSample.noPitch;
this.updateModel();
}