feat: add wired monitor and variable protocol support

This commit is contained in:
Lorenzune
2026-04-02 04:44:04 +02:00
parent 52ed78e528
commit 190f02ebbe
19 changed files with 1149 additions and 396 deletions
@@ -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;
}
}
@@ -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';