UNPKG

tsinsim

Version:

An InSim library for Node.js (JavaScript runtime environment) with TypeScript support.

55 lines (54 loc) 1.96 kB
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; import { Sendable } from "../../utilities/index.js"; import { define, byte, char } from "../../utilities/decorators.js"; import { PacketType } from "../../types/PacketType.js"; import { MessageSound } from "../../enums/MessageSound.js"; let IS_MSL = class IS_MSL extends Sendable { constructor(options = {}) { super(); Object.assign(this, options); } Size = 100; Type = PacketType.ISP_MSL; ReqI = 0; Sound = 0; Msg = 0; ZeroByte = 0; }; __decorate([ byte(), __metadata("design:type", Object) ], IS_MSL.prototype, "Size", void 0); __decorate([ byte(), __metadata("design:type", Object) ], IS_MSL.prototype, "Type", void 0); __decorate([ byte(), __metadata("design:type", Object) ], IS_MSL.prototype, "ReqI", void 0); __decorate([ byte(), __metadata("design:type", Number) ], IS_MSL.prototype, "Sound", void 0); __decorate([ char(128), __metadata("design:type", Object) ], IS_MSL.prototype, "Msg", void 0); __decorate([ byte(), __metadata("design:type", Object) ], IS_MSL.prototype, "ZeroByte", void 0); IS_MSL = __decorate([ define, __metadata("design:paramtypes", [Object]) ], IS_MSL); export { IS_MSL };