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
🆙 Added Youtube Brtoadcast
This commit is contained in:
@@ -21,6 +21,9 @@ export class BadgeReceivedParser implements IMessageParser
|
||||
|
||||
this._badgeId = wrapper.readInt();
|
||||
this._badgeCode = wrapper.readString();
|
||||
// Extra field appended by the Arcturus-Nitro fork: sender username for
|
||||
// badges awarded by a staff member via the `:badge` command. Read
|
||||
// defensively so older servers that don't send it still parse cleanly.
|
||||
this._senderName = wrapper.bytesAvailable ? wrapper.readString() : '';
|
||||
|
||||
return true;
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '@nitrots/api';
|
||||
|
||||
export class YouTubeRoomSettingsParser implements IMessageParser
|
||||
{
|
||||
private _youtubeEnabled: boolean;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
this._youtubeEnabled = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
this._youtubeEnabled = wrapper.readInt() === 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
public get youtubeEnabled(): boolean { return this._youtubeEnabled; }
|
||||
}
|
||||
@@ -1,2 +1,3 @@
|
||||
export * from './YouTubeRoomBroadcastParser';
|
||||
export * from './YouTubeRoomSettingsParser';
|
||||
export * from './YouTubeRoomWatchersParser';
|
||||
|
||||
Reference in New Issue
Block a user