Move to Renderer V2

This commit is contained in:
duckietm
2024-04-03 09:27:56 +02:00
parent 110c3ad393
commit b3134ce50b
4080 changed files with 115593 additions and 66375 deletions
@@ -0,0 +1,27 @@
import { NitroEvent } from '@nitrots/events';
export class NotifyPlayedSongEvent extends NitroEvent
{
public static readonly NOTIFY_PLAYED_SONG = 'UIEW_NOTIFY_PLAYED_SONG';
private _name: string;
private _creator: string;
constructor(name:string, creator:string)
{
super(NotifyPlayedSongEvent.NOTIFY_PLAYED_SONG);
this._name = name;
this._creator = creator;
}
public get name(): string
{
return this._name;
}
public get creator(): string
{
return this._creator;
}
}
@@ -0,0 +1,35 @@
import { NitroEvent } from '@nitrots/events';
export class NowPlayingEvent extends NitroEvent
{
public static readonly NPE_USER_PLAY_SONG = 'NPE_USER_PLAY_SONG';
public static readonly NPW_USER_STOP_SONG = 'NPW_USER_STOP_SONG';
public static readonly NPE_SONG_CHANGED = 'NPE_SONG_CHANGED';
private _id:number;
private _position:number;
private _priority:number;
constructor(k:string, priority:number, id:number, position:number)
{
super(k);
this._id = id;
this._position = position;
this._priority = priority;
}
public get id():number
{
return this._id;
}
public get position():number
{
return this._position;
}
public get priority():number
{
return this._priority;
}
}
@@ -0,0 +1,12 @@
import { NitroEvent } from '@nitrots/events';
export class PlayListStatusEvent extends NitroEvent
{
public static readonly PLUE_PLAY_LIST_UPDATED = 'PLUE_PLAY_LIST_UPDATED';
public static readonly PLUE_PLAY_LIST_FULL = 'PLUE_PLAY_LIST_FULL';
constructor(k:string)
{
super(k);
}
}
@@ -0,0 +1,11 @@
import { NitroEvent } from '@nitrots/events';
export class SongDiskInventoryReceivedEvent extends NitroEvent
{
public static readonly SDIR_SONG_DISK_INVENTORY_RECEIVENT_EVENT = 'SDIR_SONG_DISK_INVENTORY_RECEIVENT_EVENT';
constructor(k:string)
{
super(k);
}
}
@@ -0,0 +1,19 @@
import { NitroEvent } from '@nitrots/events';
export class SongInfoReceivedEvent extends NitroEvent
{
public static readonly SIR_TRAX_SONG_INFO_RECEIVED = 'SIR_TRAX_SONG_INFO_RECEIVED';
private _id:number;
constructor(k:string, _arg_2:number)
{
super(k);
this._id = _arg_2;
}
public get id():number
{
return this._id;
}
}
@@ -0,0 +1,19 @@
import { NitroEvent } from '@nitrots/events';
export class SoundManagerEvent extends NitroEvent
{
public static TRAX_SONG_COMPLETE: string = 'SME_TRAX_SONG_COMPLETE';
private _id: number;
constructor(type: string, id: number)
{
super(type);
this._id = id;
}
public get id(): number
{
return this._id;
}
}
+6
View File
@@ -0,0 +1,6 @@
export * from './NotifyPlayedSongEvent';
export * from './NowPlayingEvent';
export * from './PlayListStatusEvent';
export * from './SongDiskInventoryReceivedEvent';
export * from './SongInfoReceivedEvent';
export * from './SoundManagerEvent';