node-insim
Version:
An InSim library for NodeJS with TypeScript support
48 lines (47 loc) • 1.16 kB
JavaScript
import { __decorate } from "tslib";
import { byte } from '../decorators';
import { SendablePacket } from './base';
import { PacketType } from './enums';
/**
* Set Car Camera - Simplified camera packet (not SHIFT+U mode)
*/
export class IS_SCC extends SendablePacket {
constructor(data) {
super();
this.Size = 8;
this.Type = PacketType.ISP_SCC;
this.ReqI = 0;
this.Zero = 0;
/** Unique ID of player to view */
this.ViewPLID = 0;
/** InGameCam (as reported in StatePack) */
this.InGameCam = 0;
this.Sp2 = 0;
this.Sp3 = 0;
this.initialize(data);
}
}
__decorate([
byte()
], IS_SCC.prototype, "Size", void 0);
__decorate([
byte()
], IS_SCC.prototype, "Type", void 0);
__decorate([
byte()
], IS_SCC.prototype, "ReqI", void 0);
__decorate([
byte()
], IS_SCC.prototype, "Zero", void 0);
__decorate([
byte()
], IS_SCC.prototype, "ViewPLID", void 0);
__decorate([
byte()
], IS_SCC.prototype, "InGameCam", void 0);
__decorate([
byte()
], IS_SCC.prototype, "Sp2", void 0);
__decorate([
byte()
], IS_SCC.prototype, "Sp3", void 0);