You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 23:16:20 +00:00
Move to Renderer V2
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { IRoomObject } from '@nitrots/api';
|
||||
import { RoomObjectEvent } from './RoomObjectEvent';
|
||||
|
||||
export class RoomObjectSamplePlaybackEvent extends RoomObjectEvent
|
||||
{
|
||||
public static ROOM_OBJECT_INITIALIZED: string = 'ROPSPE_ROOM_OBJECT_INITIALIZED';
|
||||
public static ROOM_OBJECT_DISPOSED: string = 'ROPSPE_ROOM_OBJECT_DISPOSED';
|
||||
public static PLAY_SAMPLE: string = 'ROPSPE_PLAY_SAMPLE';
|
||||
public static CHANGE_PITCH: string = 'ROPSPE_CHANGE_PITCH';
|
||||
|
||||
private _sampleId: number;
|
||||
private _pitch: number;
|
||||
|
||||
constructor(k: string, object: IRoomObject, sampleId: number, pitch: number = 1)
|
||||
{
|
||||
super(k, object);
|
||||
|
||||
this._sampleId = sampleId;
|
||||
this._pitch = pitch;
|
||||
}
|
||||
|
||||
public get sampleId(): number
|
||||
{
|
||||
return this._sampleId;
|
||||
}
|
||||
|
||||
public get pitch(): number
|
||||
{
|
||||
return this._pitch;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user