node-insim
Version:
An InSim library for NodeJS with TypeScript support
40 lines (39 loc) • 947 B
JavaScript
import { __decorate } from "tslib";
import { byte, string, stringNull } from '../decorators';
import { Packet } from './base';
import { PacketType } from './enums';
/**
* Conn Player Rename
*/
export class IS_CPR extends Packet {
constructor() {
super(...arguments);
this.Size = 36;
this.Type = PacketType.ISP_CPR;
this.ReqI = 0;
/** Unique id of the connection */
this.UCID = 0;
/** New name */
this.PName = '';
/** Number plate - NO ZERO AT END! */
this.Plate = '';
}
}
__decorate([
byte()
], IS_CPR.prototype, "Size", void 0);
__decorate([
byte()
], IS_CPR.prototype, "Type", void 0);
__decorate([
byte()
], IS_CPR.prototype, "ReqI", void 0);
__decorate([
byte()
], IS_CPR.prototype, "UCID", void 0);
__decorate([
stringNull(24)
], IS_CPR.prototype, "PName", void 0);
__decorate([
string(8)
], IS_CPR.prototype, "Plate", void 0);