node-insim
Version:
An InSim library for NodeJS with TypeScript support
22 lines (21 loc) • 717 B
TypeScript
import { SendablePacket } from './base';
import type { StateFlags } from './enums';
import { PacketType } from './enums';
import type { PacketData } from './types';
/**
* State Flags Pack
*/
export declare class IS_SFP extends SendablePacket {
readonly Size = 8;
readonly Type = PacketType.ISP_SFP;
readonly ReqI = 0;
readonly Zero = 0;
/** The state to set */
Flag: SendableStateFlags | 0;
/** 0 = off / 1 = on */
OffOn: 0 | 1;
private readonly Sp3;
constructor(data?: IS_SFP_Data);
}
export type SendableStateFlags = StateFlags.ISS_SHIFTU_NO_OPT | StateFlags.ISS_SHOW_2D | StateFlags.ISS_MPSPEEDUP | StateFlags.ISS_SOUND_MUTE;
export type IS_SFP_Data = PacketData<IS_SFP>;