UNPKG

node-insim

Version:

An InSim library for NodeJS with TypeScript support

56 lines (55 loc) 1.48 kB
import { __decorate } from "tslib"; import { byte, int } from '../decorators'; import { SendablePacket } from './base'; import { PacketType } from './enums'; /** * MODe: send to LFS to change screen mode */ export class IS_MOD extends SendablePacket { constructor(data) { super(); this.Size = 20; this.Type = PacketType.ISP_MOD; this.ReqI = 0; this.Zero = 0; /** Set to choose 16-bit */ this.Bits16 = 0; /** * Refresh rate - zero for default * * The refresh rate actually selected by LFS will be the highest available rate * that is less than or equal to the specified refresh rate. Refresh rate can * be specified as zero in which case the default refresh rate will be used. */ this.RR = 0; /** 0 means go to window */ this.Width = 0; /** 0 means go to window */ this.Height = 0; this.initialize(data); } } __decorate([ byte() ], IS_MOD.prototype, "Size", void 0); __decorate([ byte() ], IS_MOD.prototype, "Type", void 0); __decorate([ byte() ], IS_MOD.prototype, "ReqI", void 0); __decorate([ byte() ], IS_MOD.prototype, "Zero", void 0); __decorate([ int() ], IS_MOD.prototype, "Bits16", void 0); __decorate([ int() ], IS_MOD.prototype, "RR", void 0); __decorate([ int() ], IS_MOD.prototype, "Width", void 0); __decorate([ int() ], IS_MOD.prototype, "Height", void 0);