node-insim
Version:
An InSim library for NodeJS with TypeScript support
57 lines (56 loc) • 1.52 kB
JavaScript
import { __decorate } from "tslib";
import { byte, stringNull, word } from '../decorators';
import { Packet } from './base';
import { PacketType } from './enums';
/**
* AutoX Info
*
* You can request information about the current layout with this {@link IS_TINY}:
*
* - ReqI: non-zero (returned in the reply)
* - SubT: {@link TINY_AXI} (AutoX Info)
*
* The information will be sent back in this packet (also sent when a layout is loaded).
*/
export class IS_AXI extends Packet {
constructor() {
super(...arguments);
this.Size = 40;
this.Type = PacketType.ISP_AXI;
/** 0 unless this is a reply to an {@link TINY_AXI} request */
this.ReqI = 0;
this.Zero = 0;
/** Autocross start position */
this.AXStart = 0;
/** Number of checkpoints */
this.NumCP = 0;
/** Number of objects */
this.NumO = 0;
/** The name of the layout last loaded (if loaded locally) */
this.LName = '';
}
}
__decorate([
byte()
], IS_AXI.prototype, "Size", void 0);
__decorate([
byte()
], IS_AXI.prototype, "Type", void 0);
__decorate([
byte()
], IS_AXI.prototype, "ReqI", void 0);
__decorate([
byte()
], IS_AXI.prototype, "Zero", void 0);
__decorate([
byte()
], IS_AXI.prototype, "AXStart", void 0);
__decorate([
byte()
], IS_AXI.prototype, "NumCP", void 0);
__decorate([
word()
], IS_AXI.prototype, "NumO", void 0);
__decorate([
stringNull(32)
], IS_AXI.prototype, "LName", void 0);