UNPKG

node-insim

Version:

An InSim library for NodeJS with TypeScript support

30 lines (29 loc) 749 B
import { __decorate } from "tslib"; import { byte, word } from '../../decorators'; import { Struct } from '../base'; export class NodeLap extends Struct { constructor(data) { super(); /** Current path node */ this.Node = 0; /** Current lap */ this.Lap = 0; /** Player's unique id */ this.PLID = 0; /** Current race position: 0 = unknown, 1 = leader, etc... */ this.Position = 0; this.initialize(data); } } __decorate([ word() ], NodeLap.prototype, "Node", void 0); __decorate([ word() ], NodeLap.prototype, "Lap", void 0); __decorate([ byte() ], NodeLap.prototype, "PLID", void 0); __decorate([ byte() ], NodeLap.prototype, "Position", void 0);