tsinsim
Version:
An InSim library for Node.js (JavaScript runtime environment) with TypeScript support.
100 lines (99 loc) • 2.98 kB
JavaScript
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, word, int, float } from "../../utilities/decorators.js";
import { PacketType } from "../../types/PacketType.js";
import { ViewIdentifier } from "../../enums/ViewIdentifier.js";
let IS_CPP = class IS_CPP extends Sendable {
constructor(options = {}) {
super();
Object.assign(this, options);
}
Size = 32;
Type = PacketType.ISP_CPP;
ReqI = 0;
Zero = 0;
X = 0;
Y = 0;
Z = 0;
H = 0;
P = 0;
R = 0;
ViewPlid = 0;
InGameCam = 0;
FOV = 0;
Time = 0;
Flags = 0;
};
__decorate([
byte(),
__metadata("design:type", Object)
], IS_CPP.prototype, "Size", void 0);
__decorate([
byte(),
__metadata("design:type", Object)
], IS_CPP.prototype, "Type", void 0);
__decorate([
byte(),
__metadata("design:type", Object)
], IS_CPP.prototype, "ReqI", void 0);
__decorate([
byte(),
__metadata("design:type", Object)
], IS_CPP.prototype, "Zero", void 0);
__decorate([
int(),
__metadata("design:type", Object)
], IS_CPP.prototype, "X", void 0);
__decorate([
int(),
__metadata("design:type", Object)
], IS_CPP.prototype, "Y", void 0);
__decorate([
int(),
__metadata("design:type", Object)
], IS_CPP.prototype, "Z", void 0);
__decorate([
word(),
__metadata("design:type", Object)
], IS_CPP.prototype, "H", void 0);
__decorate([
word(),
__metadata("design:type", Object)
], IS_CPP.prototype, "P", void 0);
__decorate([
word(),
__metadata("design:type", Object)
], IS_CPP.prototype, "R", void 0);
__decorate([
byte(),
__metadata("design:type", Object)
], IS_CPP.prototype, "ViewPlid", void 0);
__decorate([
byte(),
__metadata("design:type", Number)
], IS_CPP.prototype, "InGameCam", void 0);
__decorate([
float(),
__metadata("design:type", Object)
], IS_CPP.prototype, "FOV", void 0);
__decorate([
word(),
__metadata("design:type", Object)
], IS_CPP.prototype, "Time", void 0);
__decorate([
word(),
__metadata("design:type", Number)
], IS_CPP.prototype, "Flags", void 0);
IS_CPP = __decorate([
define,
__metadata("design:paramtypes", [Object])
], IS_CPP);
export { IS_CPP };