node-insim
Version:
An InSim library for NodeJS with TypeScript support
60 lines (59 loc) • 1.6 kB
JavaScript
import { __decorate } from "tslib";
import { byte } from '../decorators';
import { Packet } from './base';
import { PacketType } from './enums';
/**
* Pit LAne
*/
export class IS_PLA extends Packet {
constructor() {
super(...arguments);
this.Size = 8;
this.Type = PacketType.ISP_PLA;
this.ReqI = 0;
/** Player's unique id */
this.PLID = 0;
/** Pit lane fact */
this.Fact = 0;
this.Sp1 = 0;
this.Sp2 = 0;
this.Sp3 = 0;
}
}
__decorate([
byte()
], IS_PLA.prototype, "Size", void 0);
__decorate([
byte()
], IS_PLA.prototype, "Type", void 0);
__decorate([
byte()
], IS_PLA.prototype, "ReqI", void 0);
__decorate([
byte()
], IS_PLA.prototype, "PLID", void 0);
__decorate([
byte()
], IS_PLA.prototype, "Fact", void 0);
__decorate([
byte()
], IS_PLA.prototype, "Sp1", void 0);
__decorate([
byte()
], IS_PLA.prototype, "Sp2", void 0);
__decorate([
byte()
], IS_PLA.prototype, "Sp3", void 0);
export var PitLaneFact;
(function (PitLaneFact) {
/** Left pit lane */
PitLaneFact[PitLaneFact["PITLANE_EXIT"] = 0] = "PITLANE_EXIT";
/** Entered pit lane */
PitLaneFact[PitLaneFact["PITLANE_ENTER"] = 1] = "PITLANE_ENTER";
/** Entered for no purpose */
PitLaneFact[PitLaneFact["PITLANE_NO_PURPOSE"] = 2] = "PITLANE_NO_PURPOSE";
/** Entered for drive-through */
PitLaneFact[PitLaneFact["PITLANE_DT"] = 3] = "PITLANE_DT";
/** Entered for stop-go */
PitLaneFact[PitLaneFact["PITLANE_SG"] = 4] = "PITLANE_SG";
})(PitLaneFact || (PitLaneFact = {}));