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
Move to Renderer V2
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { RoomEngineObjectEvent } from './RoomEngineObjectEvent';
|
||||
|
||||
export class RoomEngineObjectPlaySoundEvent extends RoomEngineObjectEvent
|
||||
{
|
||||
public static PLAY_SOUND: string = 'REOPSE_PLAY_SOUND';
|
||||
public static PLAY_SOUND_AT_PITCH: string = 'REOPSE_PLAY_SOUND_AT_PITCH';
|
||||
|
||||
private _soundId: string;
|
||||
private _pitch: number;
|
||||
|
||||
constructor(type: string, roomId: number, objectId: number, objectCategory: number, soundId: string, pitch: number = 1)
|
||||
{
|
||||
super(type, roomId, objectId, objectCategory);
|
||||
|
||||
this._soundId = soundId;
|
||||
this._pitch = pitch;
|
||||
}
|
||||
|
||||
public get soundId(): string
|
||||
{
|
||||
return this._soundId;
|
||||
}
|
||||
|
||||
public get pitch(): number
|
||||
{
|
||||
return this._pitch;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user