🆙 Renderer Logic Youtube Broadcast

This commit is contained in:
duckietm
2026-04-09 11:51:32 +02:00
parent 79d51246ec
commit 85d3422e86
16 changed files with 145 additions and 2 deletions
@@ -490,4 +490,8 @@ export class IncomingHeader
public static USER_PREFIXES = 7001;
public static PREFIX_RECEIVED = 7002;
public static ACTIVE_PREFIX_UPDATED = 7003;
// YouTube Room Broadcast
public static YOUTUBE_ROOM_BROADCAST = 8001;
public static YOUTUBE_ROOM_WATCHERS = 8002;
}
@@ -13,3 +13,4 @@ export * from './pet';
export * from './session';
export * from './unit';
export * from './unit/chat';
export * from './youtube';
@@ -0,0 +1,16 @@
import { IMessageEvent } from '@nitrots/api';
import { MessageEvent } from '@nitrots/events';
import { YouTubeRoomBroadcastParser } from '../../../parser';
export class YouTubeRoomBroadcastEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, YouTubeRoomBroadcastParser);
}
public getParser(): YouTubeRoomBroadcastParser
{
return this.parser as YouTubeRoomBroadcastParser;
}
}
@@ -0,0 +1,16 @@
import { IMessageEvent } from '@nitrots/api';
import { MessageEvent } from '@nitrots/events';
import { YouTubeRoomWatchersParser } from '../../../parser';
export class YouTubeRoomWatchersEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, YouTubeRoomWatchersParser);
}
public getParser(): YouTubeRoomWatchersParser
{
return this.parser as YouTubeRoomWatchersParser;
}
}
@@ -0,0 +1,2 @@
export * from './YouTubeRoomBroadcastEvent';
export * from './YouTubeRoomWatchersEvent';