UNPKG

node-insim

Version:

An InSim library for NodeJS with TypeScript support

44 lines (43 loc) 1.2 kB
import { __decorate } from "tslib"; import { float, Vec, Vector } from '../decorators'; import { Struct } from '../packets/base/Struct'; export class OutSimMain extends Struct { constructor() { super(...arguments); /** 3 floats, angular velocity vector */ this.AngVel = [0, 0, 0]; /** anticlockwise from above (Z) */ this.Heading = 0; /** anticlockwise from right (X) */ this.Pitch = 0; /** anticlockwise from front (Y) */ this.Roll = 0; /** 3 floats X, Y, Z */ this.Accel = [0, 0, 0]; /** 3 floats X, Y, Z */ this.Vel = [0, 0, 0]; /** 3 ints X, Y, Z (1m = 65536) */ this.Pos = [0, 0, 0]; } } __decorate([ Vector() ], OutSimMain.prototype, "AngVel", void 0); __decorate([ float() ], OutSimMain.prototype, "Heading", void 0); __decorate([ float() ], OutSimMain.prototype, "Pitch", void 0); __decorate([ float() ], OutSimMain.prototype, "Roll", void 0); __decorate([ Vector() ], OutSimMain.prototype, "Accel", void 0); __decorate([ Vector() ], OutSimMain.prototype, "Vel", void 0); __decorate([ Vec() ], OutSimMain.prototype, "Pos", void 0);