node-insim
Version:
An InSim library for NodeJS with TypeScript support
32 lines (31 loc) • 713 B
JavaScript
import { __decorate } from "tslib";
import { byte } from '../decorators';
import { SendablePacket } from './base';
import { PacketType } from './enums';
/**
* Admin Request
*
* To request if we are an admin, send this packet.
*/
export class IR_ARQ extends SendablePacket {
constructor(data) {
super();
this.Size = 4;
this.Type = PacketType.IRP_ARQ;
this.ReqI = 0;
this.Sp0 = 0;
this.initialize(data);
}
}
__decorate([
byte()
], IR_ARQ.prototype, "Size", void 0);
__decorate([
byte()
], IR_ARQ.prototype, "Type", void 0);
__decorate([
byte()
], IR_ARQ.prototype, "ReqI", void 0);
__decorate([
byte()
], IR_ARQ.prototype, "Sp0", void 0);