node-insim
Version:
An InSim library for NodeJS with TypeScript support
33 lines (32 loc) • 758 B
JavaScript
import { __decorate } from "tslib";
import { byte } from '../decorators';
import { SendablePacket } from './base';
import { PacketType } from './enums';
/**
* HostList Request
*
* To request a host list from the Relay, send this packet.
*/
export class IR_HLR extends SendablePacket {
constructor(data) {
super();
this.SIZE_MULTIPLIER = 1;
this.Size = 4;
this.Type = PacketType.IRP_HLR;
this.ReqI = 0;
this.Sp0 = 0;
this.initialize(data);
}
}
__decorate([
byte()
], IR_HLR.prototype, "Size", void 0);
__decorate([
byte()
], IR_HLR.prototype, "Type", void 0);
__decorate([
byte()
], IR_HLR.prototype, "ReqI", void 0);
__decorate([
byte()
], IR_HLR.prototype, "Sp0", void 0);