node-insim
Version:
An InSim library for NodeJS with TypeScript support
60 lines (59 loc) • 1.44 kB
JavaScript
import { __decorate } from "tslib";
import { byte, unsigned } from '../decorators';
import { Packet } from './base';
import { PacketType } from './enums';
/**
* SPlit X time
*/
export class IS_SPX extends Packet {
constructor() {
super(...arguments);
this.Size = 16;
this.Type = PacketType.ISP_SPX;
this.ReqI = 0;
/** Player's unique id */
this.PLID = 0;
/** Split time (ms) */
this.STime = 0;
/** Total time (ms) */
this.ETime = 0;
/** Split number 1, 2, 3 */
this.Split = 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_SPX.prototype, "Size", void 0);
__decorate([
byte()
], IS_SPX.prototype, "Type", void 0);
__decorate([
byte()
], IS_SPX.prototype, "ReqI", void 0);
__decorate([
byte()
], IS_SPX.prototype, "PLID", void 0);
__decorate([
unsigned()
], IS_SPX.prototype, "STime", void 0);
__decorate([
unsigned()
], IS_SPX.prototype, "ETime", void 0);
__decorate([
byte()
], IS_SPX.prototype, "Split", void 0);
__decorate([
byte()
], IS_SPX.prototype, "Penalty", void 0);
__decorate([
byte()
], IS_SPX.prototype, "NumStops", void 0);
__decorate([
byte()
], IS_SPX.prototype, "Fuel200", void 0);