UNPKG

node-insim

Version:

An InSim library for NodeJS with TypeScript support

48 lines (47 loc) 1.09 kB
import { __decorate } from "tslib"; import { byte } from '../decorators'; import { Packet } from './base'; import { PacketType } from './enums'; /** * Take Over Car */ export class IS_TOC extends Packet { constructor() { super(...arguments); this.Size = 8; this.Type = PacketType.ISP_TOC; this.ReqI = 0; /** Player's unique id */ this.PLID = 0; /** Old connection's unique id */ this.OldUCID = 0; /** New connection's unique id */ this.NewUCID = 0; this.Sp2 = 0; this.Sp3 = 0; } } __decorate([ byte() ], IS_TOC.prototype, "Size", void 0); __decorate([ byte() ], IS_TOC.prototype, "Type", void 0); __decorate([ byte() ], IS_TOC.prototype, "ReqI", void 0); __decorate([ byte() ], IS_TOC.prototype, "PLID", void 0); __decorate([ byte() ], IS_TOC.prototype, "OldUCID", void 0); __decorate([ byte() ], IS_TOC.prototype, "NewUCID", void 0); __decorate([ byte() ], IS_TOC.prototype, "Sp2", void 0); __decorate([ byte() ], IS_TOC.prototype, "Sp3", void 0);