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
feat: add wired monitor and variable protocol support
This commit is contained in:
@@ -269,6 +269,9 @@ export class IncomingHeader
|
||||
public static WIRED_ACTION = 1434;
|
||||
public static WIRED_CONDITION = 1108;
|
||||
public static WIRED_ERROR = 156;
|
||||
public static WIRED_MONITOR_DATA = 5101;
|
||||
public static WIRED_ROOM_SETTINGS_DATA = 5102;
|
||||
public static WIRED_USER_VARIABLES_DATA = 5103;
|
||||
public static WIRED_OPEN = 1830;
|
||||
public static WIRED_REWARD = 178;
|
||||
public static WIRED_SAVE = 1155;
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import { IMessageEvent } from '@nitrots/api';
|
||||
import { MessageEvent } from '@nitrots/events';
|
||||
import { WiredMonitorDataParser } from '../../parser';
|
||||
|
||||
export class WiredMonitorDataEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, WiredMonitorDataParser);
|
||||
}
|
||||
|
||||
public getParser(): WiredMonitorDataParser
|
||||
{
|
||||
return this.parser as WiredMonitorDataParser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import { IMessageEvent } from '@nitrots/api';
|
||||
import { MessageEvent } from '@nitrots/events';
|
||||
import { WiredRoomSettingsDataParser } from '../../parser';
|
||||
|
||||
export class WiredRoomSettingsDataEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, WiredRoomSettingsDataParser);
|
||||
}
|
||||
|
||||
public getParser(): WiredRoomSettingsDataParser
|
||||
{
|
||||
return this.parser as WiredRoomSettingsDataParser;
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { IMessageEvent } from '@nitrots/api';
|
||||
import { MessageEvent } from '@nitrots/events';
|
||||
import { WiredUserVariablesDataParser } from '../../parser';
|
||||
|
||||
export class WiredUserVariablesDataEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, WiredUserVariablesDataParser);
|
||||
}
|
||||
|
||||
public getParser(): WiredUserVariablesDataParser
|
||||
{
|
||||
return this.parser as WiredUserVariablesDataParser;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,10 @@
|
||||
export * from './WiredFurniActionEvent';
|
||||
export * from './WiredFurniConditionEvent';
|
||||
export * from './WiredFurniTriggerEvent';
|
||||
export * from './WiredMonitorDataEvent';
|
||||
export * from './WiredOpenEvent';
|
||||
export * from './WiredRoomSettingsDataEvent';
|
||||
export * from './WiredRewardResultMessageEvent';
|
||||
export * from './WiredSaveSuccessEvent';
|
||||
export * from './WiredUserVariablesDataEvent';
|
||||
export * from './WiredValidationErrorEvent';
|
||||
|
||||
Reference in New Issue
Block a user