UNPKG

node-insim

Version:

An InSim library for NodeJS with TypeScript support

69 lines (68 loc) 1.64 kB
import { __decorate } from "tslib"; import { byte, unsigned, word } from '../decorators'; import { Packet } from './base'; import { PacketType } from './enums'; /** * LAP time */ export class IS_LAP extends Packet { constructor() { super(...arguments); this.Size = 20; this.Type = PacketType.ISP_LAP; this.ReqI = 0; /** Player's unique id */ this.PLID = 0; /** Lap time (ms) */ this.LTime = 0; /** Total time (ms) */ this.ETime = 0; /** Laps completed */ this.LapsDone = 0; /** Player flags */ this.Flags = 0; this.Sp0 = 0; /** Current penalty value */ this.Penalty = 0; /** Number of pit stops */ this.NumStops = 0; /** /showfuel yes: double fuel percent / no: 255 */ this.Fuel200 = 0; } } __decorate([ byte() ], IS_LAP.prototype, "Size", void 0); __decorate([ byte() ], IS_LAP.prototype, "Type", void 0); __decorate([ byte() ], IS_LAP.prototype, "ReqI", void 0); __decorate([ byte() ], IS_LAP.prototype, "PLID", void 0); __decorate([ unsigned() ], IS_LAP.prototype, "LTime", void 0); __decorate([ unsigned() ], IS_LAP.prototype, "ETime", void 0); __decorate([ word() ], IS_LAP.prototype, "LapsDone", void 0); __decorate([ word() ], IS_LAP.prototype, "Flags", void 0); __decorate([ byte() ], IS_LAP.prototype, "Sp0", void 0); __decorate([ byte() ], IS_LAP.prototype, "Penalty", void 0); __decorate([ byte() ], IS_LAP.prototype, "NumStops", void 0); __decorate([ byte() ], IS_LAP.prototype, "Fuel200", void 0);