t2-demo-parser 2.2.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/README.md +170 -7
  2. package/dist/BitStream.d.ts +14 -3
  3. package/dist/BitStream.d.ts.map +1 -1
  4. package/dist/BitStream.js +28 -6
  5. package/dist/BitStream.js.map +1 -1
  6. package/dist/BitWriter.d.ts +29 -0
  7. package/dist/BitWriter.d.ts.map +1 -0
  8. package/dist/BitWriter.js +76 -0
  9. package/dist/BitWriter.js.map +1 -0
  10. package/dist/ClassRegistry.d.ts +23 -28
  11. package/dist/ClassRegistry.d.ts.map +1 -1
  12. package/dist/ClassRegistry.js +75 -84
  13. package/dist/ClassRegistry.js.map +1 -1
  14. package/dist/DataBlockParsers.d.ts.map +1 -1
  15. package/dist/DataBlockParsers.js +51 -76
  16. package/dist/DataBlockParsers.js.map +1 -1
  17. package/dist/DemoParser.d.ts +23 -22
  18. package/dist/DemoParser.d.ts.map +1 -1
  19. package/dist/DemoParser.js +218 -266
  20. package/dist/DemoParser.js.map +1 -1
  21. package/dist/EventParsers.d.ts.map +1 -1
  22. package/dist/EventParsers.js +87 -58
  23. package/dist/EventParsers.js.map +1 -1
  24. package/dist/GhostManager.d.ts +7 -1
  25. package/dist/GhostManager.d.ts.map +1 -1
  26. package/dist/GhostManager.js +231 -146
  27. package/dist/GhostManager.js.map +1 -1
  28. package/dist/HuffmanProcessor.d.ts +15 -0
  29. package/dist/HuffmanProcessor.d.ts.map +1 -1
  30. package/dist/HuffmanProcessor.js +45 -0
  31. package/dist/HuffmanProcessor.js.map +1 -1
  32. package/dist/LiveParser.d.ts +20 -1
  33. package/dist/LiveParser.d.ts.map +1 -1
  34. package/dist/LiveParser.js +31 -12
  35. package/dist/LiveParser.js.map +1 -1
  36. package/dist/PacketParser.d.ts +22 -2
  37. package/dist/PacketParser.d.ts.map +1 -1
  38. package/dist/PacketParser.js +111 -48
  39. package/dist/PacketParser.js.map +1 -1
  40. package/dist/Timeline.d.ts +5 -2
  41. package/dist/Timeline.d.ts.map +1 -1
  42. package/dist/Timeline.js +25 -12
  43. package/dist/Timeline.js.map +1 -1
  44. package/dist/cli.js +3 -0
  45. package/dist/cli.js.map +1 -1
  46. package/dist/dataBlockDataTypes.d.ts +111 -112
  47. package/dist/dataBlockDataTypes.d.ts.map +1 -1
  48. package/dist/dataBlockDataTypes.js.map +1 -1
  49. package/dist/defaultRegistry.d.ts +9 -0
  50. package/dist/defaultRegistry.d.ts.map +1 -0
  51. package/dist/defaultRegistry.js +43 -0
  52. package/dist/defaultRegistry.js.map +1 -0
  53. package/dist/eventDataTypes.d.ts +74 -72
  54. package/dist/eventDataTypes.d.ts.map +1 -1
  55. package/dist/eventDataTypes.js.map +1 -1
  56. package/dist/ghostDataTypes.d.ts +125 -131
  57. package/dist/ghostDataTypes.d.ts.map +1 -1
  58. package/dist/ghostDataTypes.js.map +1 -1
  59. package/dist/index.d.ts +6 -4
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +4 -2
  62. package/dist/index.js.map +1 -1
  63. package/dist/types.d.ts +51 -2
  64. package/dist/types.d.ts.map +1 -1
  65. package/dist/types.js +6 -0
  66. package/dist/types.js.map +1 -1
  67. package/package.json +4 -1
  68. package/dist/BitStream.test.d.ts +0 -2
  69. package/dist/BitStream.test.d.ts.map +0 -1
  70. package/dist/BitStream.test.js +0 -419
  71. package/dist/BitStream.test.js.map +0 -1
  72. package/dist/ClassRegistry.test.d.ts +0 -2
  73. package/dist/ClassRegistry.test.d.ts.map +0 -1
  74. package/dist/ClassRegistry.test.js +0 -83
  75. package/dist/ClassRegistry.test.js.map +0 -1
  76. package/dist/DataBlockParsers.test.d.ts +0 -2
  77. package/dist/DataBlockParsers.test.d.ts.map +0 -1
  78. package/dist/DataBlockParsers.test.js +0 -294
  79. package/dist/DataBlockParsers.test.js.map +0 -1
  80. package/dist/DemoParser.test.d.ts +0 -2
  81. package/dist/DemoParser.test.d.ts.map +0 -1
  82. package/dist/DemoParser.test.js +0 -472
  83. package/dist/DemoParser.test.js.map +0 -1
  84. package/dist/GhostStateAccumulator.test.d.ts +0 -2
  85. package/dist/GhostStateAccumulator.test.d.ts.map +0 -1
  86. package/dist/GhostStateAccumulator.test.js +0 -201
  87. package/dist/GhostStateAccumulator.test.js.map +0 -1
  88. package/dist/GhostTracker.test.d.ts +0 -2
  89. package/dist/GhostTracker.test.d.ts.map +0 -1
  90. package/dist/GhostTracker.test.js +0 -64
  91. package/dist/GhostTracker.test.js.map +0 -1
  92. package/dist/IncrementalParser.test.d.ts +0 -2
  93. package/dist/IncrementalParser.test.d.ts.map +0 -1
  94. package/dist/IncrementalParser.test.js +0 -226
  95. package/dist/IncrementalParser.test.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"eventDataTypes.d.ts","sourceRoot":"","sources":["../src/eventDataTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEjD,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,qBAAsB,SAAQ,SAAS;IACtD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,kBAAmB,SAAQ,SAAS;I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C1B,oBAAoB,GACpB,wBAAwB,GACxB,kBAAkB,GAClB,wBAAwB,GACxB,4BAA4B,GAC5B,sBAAsB,GACtB,qBAAqB,GACrB,6BAA6B,GAC7B,gBAAgB,GAChB,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"eventDataTypes.js","sourceRoot":"","sources":["../src/eventDataTypes.ts"],"names":[],"mappings":"","sourcesContent":["import type { Vec3, Quat } from \"./dataTypes.js\";\n\nexport interface EventData {\n type: string;\n [key: string]: unknown;\n}\n\nexport interface SimDataBlockEventData extends EventData {\n type: \"SimDataBlockEvent\";\n mProcess?: boolean;\n objectId?: number;\n classId?: number;\n index?: number;\n total?: number;\n _payloadBitPos?: number;\n dataBlockData?: Record<string, unknown>;\n dataBlockClassName?: string;\n _needsClassParser?: boolean;\n}\n\nexport interface NetStringEventData extends EventData {\n type: \"NetStringEvent\";\n id: number;\n hasValue: boolean;\n value?: string;\n}\n\nexport interface Sim2DAudioEventData extends EventData {\n type: \"Sim2DAudioEvent\";\n profileId: number;\n}\n\nexport interface Sim3DAudioEventData extends EventData {\n type: \"Sim3DAudioEvent\";\n profileId: number;\n rotation?: Quat;\n position: Vec3;\n}\n\nexport interface SetSensorGroupEventData extends EventData {\n type: \"SetSensorGroupEvent\";\n sensorGroup: number;\n}\n\nexport interface SetServerTargetEventData extends EventData {\n type: \"SetServerTargetEvent\";\n targetId?: number;\n targetPos: Vec3;\n}\n\nexport interface TargetToEventData extends EventData {\n type: \"TargetToEvent\";\n targetId?: number;\n targetPos?: Vec3;\n assign: boolean;\n}\n\nexport interface SetObjectActiveImageEventData extends EventData {\n type: \"SetObjectActiveImageEvent\";\n objectId: number;\n imageSlot: number;\n}\n\nexport interface SetMissionCRCEventData extends EventData {\n type: \"SetMissionCRCEvent\";\n crc: number;\n}\n\nexport interface RemoteCommandEventData extends EventData {\n type: \"RemoteCommandEvent\";\n argc: number;\n argv: string[];\n funcName: string;\n args: string[];\n}\n\nexport interface TargetInfoEventData extends EventData {\n type: \"TargetInfoEvent\";\n targetId: number;\n nameTag?: number;\n skinTag?: number;\n skinPrefTag?: number;\n voiceTag?: number;\n typeTag?: number;\n sensorGroup?: number;\n dataBlockId?: number;\n renderFlags?: number;\n voicePitch?: number;\n}\n\nexport interface TargetFreeEventData extends EventData {\n type: \"TargetFreeEvent\";\n targetId: number;\n}\n\nexport interface SimTargetAudioEventData extends EventData {\n type: \"SimTargetAudioEvent\";\n targetId: number;\n fileTag: number;\n descriptionId: number;\n position?: Vec3;\n updateSound: boolean;\n}\n\nexport interface SensorGroupColorEntry {\n index: number;\n r?: number;\n g?: number;\n b?: number;\n a?: number;\n default?: boolean;\n}\n\nexport interface SensorGroupColorEventData extends EventData {\n type: \"SensorGroupColorEvent\";\n sensorGroup: number;\n updateMask: number;\n colors: SensorGroupColorEntry[];\n}\n\nexport interface ResetClientTargetsEventData extends EventData {\n type: \"ResetClientTargetsEvent\";\n clientTargetsOnly: boolean;\n}\n\nexport interface RemoveClientTargetTypeEventData extends EventData {\n type: \"RemoveClientTargetTypeEvent\";\n targetType: number;\n}\n\nexport interface SimVoiceStreamEventData extends EventData {\n type: \"SimVoiceStreamEvent\";\n streamId: number;\n sequence: number;\n codecId: number;\n clientId: number;\n objectId?: number;\n size: number;\n audioData?: Uint8Array;\n}\n\nexport interface GhostingMessageEventData extends EventData {\n type: \"GhostingMessageEvent\";\n sequence: number;\n message: number;\n ghostCount: number;\n}\n\nexport interface GhostAlwaysObjectEventData extends EventData {\n type: \"GhostAlwaysObjectEvent\";\n ghostIndex: number;\n _hasObjectData: boolean;\n classId?: number;\n objectData?: Record<string, unknown>;\n}\n\nexport interface PathPoint {\n position: Vec3;\n rotation?: Quat;\n speed?: number;\n msToNext: number;\n smoothingType?: number;\n}\n\nexport interface PathData {\n totalTime: number;\n points: PathPoint[];\n}\n\nexport interface PathManagerEventData extends EventData {\n type: \"PathManagerEvent\";\n messageType: string;\n paths?: PathData[];\n modifiedPath?: number;\n path?: PathData;\n}\n\nexport interface LightningStrikeEventData extends EventData {\n type: \"LightningStrikeEvent\";\n sourceGhost?: number;\n startX?: number;\n startY?: number;\n targetGhost?: number;\n}\n\nexport interface FileChunkEventData extends EventData {\n type: \"FileChunkEvent\";\n chunkLen: number;\n chunkData: Uint8Array;\n}\n\nexport interface DownloadMessageEventData extends EventData {\n type: \"DownloadMessageEvent\";\n value: number;\n message: number;\n}\n\nexport interface FileDownloadRequestEventData extends EventData {\n type: \"FileDownloadRequestEvent\";\n fileNames: string[];\n}\n\nexport interface SimpleMessageEventData extends EventData {\n type: \"SimpleMessageEvent\";\n message: string;\n}\n\nexport interface CRCChallengeEventData extends EventData {\n type: \"CRCChallengeEvent\";\n crcValue: number;\n field1: number;\n field2: number;\n flag: boolean;\n}\n\nexport interface CRCChallengeResponseEventData extends EventData {\n type: \"CRCChallengeResponseEvent\";\n crcValue: number;\n field1: number;\n field2: number;\n}\n\nexport interface GravityEventData extends EventData {\n type: \"GravityEvent\";\n gravity: number;\n}\n\nexport interface FogChallengeEventData extends EventData {\n type: \"FogChallengeEvent\";\n}\n\nexport type AnyEventData =\n | SimDataBlockEventData\n | NetStringEventData\n | Sim2DAudioEventData\n | Sim3DAudioEventData\n | SetSensorGroupEventData\n | SetServerTargetEventData\n | TargetToEventData\n | SetObjectActiveImageEventData\n | SetMissionCRCEventData\n | RemoteCommandEventData\n | TargetInfoEventData\n | TargetFreeEventData\n | SimTargetAudioEventData\n | SensorGroupColorEventData\n | ResetClientTargetsEventData\n | RemoveClientTargetTypeEventData\n | SimVoiceStreamEventData\n | GhostingMessageEventData\n | GhostAlwaysObjectEventData\n | PathManagerEventData\n | LightningStrikeEventData\n | FileChunkEventData\n | DownloadMessageEventData\n | FileDownloadRequestEventData\n | SimpleMessageEventData\n | CRCChallengeEventData\n | CRCChallengeResponseEventData\n | GravityEventData\n | FogChallengeEventData;\n"]}
1
+ {"version":3,"file":"eventDataTypes.js","sourceRoot":"","sources":["../src/eventDataTypes.ts"],"names":[],"mappings":"","sourcesContent":["import type { Vec3, Quat } from \"./dataTypes.js\";\n\nexport type EventData = {\n type: string;\n};\n\nexport type SimDataBlockEventData = EventData & {\n type: \"SimDataBlockEvent\";\n mProcess?: boolean;\n objectId?: number;\n classId?: number;\n index?: number;\n total?: number;\n dataBlockData?: Record<string, unknown>;\n dataBlockClassName?: string;\n};\n\nexport type NetStringEventData = EventData & {\n type: \"NetStringEvent\";\n id: number;\n hasValue: boolean;\n value?: string;\n};\n\nexport type Sim2DAudioEventData = EventData & {\n type: \"Sim2DAudioEvent\";\n profileId: number;\n};\n\nexport type Sim3DAudioEventData = EventData & {\n type: \"Sim3DAudioEvent\";\n profileId: number;\n rotation?: Quat;\n position: Vec3;\n};\n\nexport type SetSensorGroupEventData = EventData & {\n type: \"SetSensorGroupEvent\";\n sensorGroup: number;\n};\n\nexport type SetServerTargetEventData = EventData & {\n type: \"SetServerTargetEvent\";\n targetId?: number;\n targetPos: Vec3;\n};\n\nexport type TargetToEventData = EventData & {\n type: \"TargetToEvent\";\n targetId?: number;\n targetPos?: Vec3;\n assign: boolean;\n};\n\nexport type SetObjectActiveImageEventData = EventData & {\n type: \"SetObjectActiveImageEvent\";\n objectId: number;\n imageSlot: number;\n};\n\nexport type SetMissionCRCEventData = EventData & {\n type: \"SetMissionCRCEvent\";\n crc: number;\n};\n\nexport type RemoteCommandEventData = EventData & {\n type: \"RemoteCommandEvent\";\n argc: number;\n argv: string[];\n funcName: string;\n args: string[];\n};\n\nexport type TargetInfoEventData = EventData & {\n type: \"TargetInfoEvent\";\n targetId: number;\n nameTag?: number;\n skinTag?: number;\n skinPrefTag?: number;\n voiceTag?: number;\n typeTag?: number;\n sensorGroup?: number;\n dataBlockId?: number;\n renderFlags?: number;\n voicePitch?: number;\n};\n\nexport type TargetFreeEventData = EventData & {\n type: \"TargetFreeEvent\";\n targetId: number;\n};\n\nexport type SimTargetAudioEventData = EventData & {\n type: \"SimTargetAudioEvent\";\n targetId: number;\n fileTag: number;\n descriptionId: number;\n position?: Vec3;\n updateSound: boolean;\n};\n\nexport type SensorGroupColorEntry = {\n index: number;\n r?: number;\n g?: number;\n b?: number;\n a?: number;\n default?: boolean;\n};\n\nexport type SensorGroupColorEventData = EventData & {\n type: \"SensorGroupColorEvent\";\n sensorGroup: number;\n updateMask: number;\n colors: SensorGroupColorEntry[];\n};\n\nexport type ResetClientTargetsEventData = EventData & {\n type: \"ResetClientTargetsEvent\";\n clientTargetsOnly: boolean;\n};\n\nexport type RemoveClientTargetTypeEventData = EventData & {\n type: \"RemoveClientTargetTypeEvent\";\n targetType: number;\n};\n\nexport type SimVoiceStreamEventData = EventData & {\n type: \"SimVoiceStreamEvent\";\n streamId: number;\n sequence: number;\n /** Index into the binary's voice codec table (0–3). */\n codecId: number;\n clientId: number;\n /** True when the packet carries an explicit frame count (end of stream). */\n partial: boolean;\n frameCount: number;\n /** Fixed-size codec frames, concatenated (codecs 1–3). */\n audioData?: Uint8Array;\n /** Nibble-packed frames, one buffer per frame (codec 0). */\n frames?: Uint8Array[];\n};\n\nexport type GhostingMessageEventData = EventData & {\n type: \"GhostingMessageEvent\";\n sequence: number;\n message: number;\n ghostCount: number;\n};\n\nexport type GhostAlwaysObjectEventData = EventData & {\n type: \"GhostAlwaysObjectEvent\";\n ghostIndex: number;\n hasObjectData: boolean;\n classId?: number;\n objectData?: Record<string, unknown>;\n};\n\nexport type PathPoint = {\n position: Vec3;\n rotation?: Quat;\n speed?: number;\n msToNext: number;\n smoothingType?: number;\n};\n\nexport type PathData = {\n totalTime: number;\n points: PathPoint[];\n};\n\nexport type PathManagerEventData = EventData & {\n type: \"PathManagerEvent\";\n messageType: string;\n paths?: PathData[];\n modifiedPath?: number;\n path?: PathData;\n};\n\nexport type LightningStrikeEventData = EventData & {\n type: \"LightningStrikeEvent\";\n sourceGhost?: number;\n startX?: number;\n startY?: number;\n targetGhost?: number;\n};\n\nexport type FileChunkEventData = EventData & {\n type: \"FileChunkEvent\";\n chunkLen: number;\n chunkData: Uint8Array;\n};\n\nexport type DownloadMessageEventData = EventData & {\n type: \"DownloadMessageEvent\";\n value: number;\n message: number;\n};\n\nexport type FileDownloadRequestEventData = EventData & {\n type: \"FileDownloadRequestEvent\";\n fileNames: string[];\n};\n\nexport type SimpleMessageEventData = EventData & {\n type: \"SimpleMessageEvent\";\n message: string;\n};\n\nexport type CRCChallengeEventData = EventData & {\n type: \"CRCChallengeEvent\";\n crcValue: number;\n field1: number;\n field2: number;\n flag: boolean;\n};\n\nexport type CRCChallengeResponseEventData = EventData & {\n type: \"CRCChallengeResponseEvent\";\n crcValue: number;\n field1: number;\n field2: number;\n};\n\nexport type GravityEventData = EventData & {\n type: \"GravityEvent\";\n gravity: number;\n};\n\nexport type FogChallengeEventData = EventData & {\n type: \"FogChallengeEvent\";\n};\n\nexport type AnyEventData =\n | SimDataBlockEventData\n | NetStringEventData\n | Sim2DAudioEventData\n | Sim3DAudioEventData\n | SetSensorGroupEventData\n | SetServerTargetEventData\n | TargetToEventData\n | SetObjectActiveImageEventData\n | SetMissionCRCEventData\n | RemoteCommandEventData\n | TargetInfoEventData\n | TargetFreeEventData\n | SimTargetAudioEventData\n | SensorGroupColorEventData\n | ResetClientTargetsEventData\n | RemoveClientTargetTypeEventData\n | SimVoiceStreamEventData\n | GhostingMessageEventData\n | GhostAlwaysObjectEventData\n | PathManagerEventData\n | LightningStrikeEventData\n | FileChunkEventData\n | DownloadMessageEventData\n | FileDownloadRequestEventData\n | SimpleMessageEventData\n | CRCChallengeEventData\n | CRCChallengeResponseEventData\n | GravityEventData\n | FogChallengeEventData;\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { Vec3, Quat, Color3, Color4, AffineTransform, MatrixF } from "./dataTypes.js";
2
- export interface MoveData {
2
+ export type MoveData = {
3
3
  pyaw: number;
4
4
  ppitch: number;
5
5
  proll: number;
@@ -8,20 +8,20 @@ export interface MoveData {
8
8
  pz: number;
9
9
  freeLook: boolean;
10
10
  trigger: boolean[];
11
- }
12
- export interface SoundSlot {
11
+ };
12
+ export type SoundSlot = {
13
13
  index: number;
14
14
  playing: boolean;
15
15
  profileId?: number;
16
- }
17
- export interface ThreadState {
16
+ };
17
+ export type ThreadState = {
18
18
  index: number;
19
19
  sequence: number;
20
20
  state: number;
21
21
  forward: boolean;
22
22
  atEnd: boolean;
23
- }
24
- export interface ImageSlot {
23
+ };
24
+ export type ImageSlot = {
25
25
  index: number;
26
26
  dataBlockId?: number;
27
27
  skinTagIndex?: number;
@@ -33,18 +33,17 @@ export interface ImageSlot {
33
33
  target?: boolean;
34
34
  fireCount?: number;
35
35
  imageExtraFlag?: boolean;
36
- }
37
- export interface WheelState {
36
+ };
37
+ export type WheelState = {
38
38
  avel: number;
39
39
  dy: number;
40
40
  dx: number;
41
- }
42
- export interface GameBaseGhostData {
41
+ };
42
+ export type GameBaseGhostData = {
43
43
  dataBlockId?: number;
44
44
  targetId?: number;
45
- [key: string]: unknown;
46
- }
47
- export interface ShapeBaseGhostData extends GameBaseGhostData {
45
+ };
46
+ export type ShapeBaseGhostData = GameBaseGhostData & {
48
47
  damageLevel?: number;
49
48
  damageState?: number;
50
49
  blowApart?: boolean;
@@ -67,8 +66,8 @@ export interface ShapeBaseGhostData extends GameBaseGhostData {
67
66
  stateValue2?: number;
68
67
  mountObject?: number;
69
68
  mountNode?: number;
70
- }
71
- export interface PlayerGhostData extends ShapeBaseGhostData {
69
+ };
70
+ export type PlayerGhostData = ShapeBaseGhostData & {
72
71
  impactSound?: number;
73
72
  action?: number;
74
73
  actionHoldAtEnd?: boolean;
@@ -88,8 +87,21 @@ export interface PlayerGhostData extends ShapeBaseGhostData {
88
87
  move?: MoveData;
89
88
  allowWarp?: boolean;
90
89
  energy?: number;
91
- }
92
- export interface PlayerPacketData {
90
+ };
91
+ /** ShapeBase::readPacketData: energy level + recharge rate. */
92
+ export type ShapeBasePacketData = {
93
+ energyLevel?: number;
94
+ rechargeRate?: number;
95
+ };
96
+ /** Turret::readPacketData (FUN_00655d70). */
97
+ export type TurretPacketData = ShapeBasePacketData & {
98
+ /** Ranged 0..4 (3 bits); stored at Turret+0x88c. Meaning unverified. */
99
+ turretState: number;
100
+ /** Three F32s copied into the turret's current rotation state
101
+ * (+0x890..+0x898 → +0x8dc/+0x8d4/+0x8d8). Meaning unverified. */
102
+ rotationValues: [number, number, number];
103
+ };
104
+ export type PlayerPacketData = {
93
105
  energyLevel?: number;
94
106
  rechargeRate?: number;
95
107
  actionState?: number;
@@ -105,11 +117,9 @@ export interface PlayerPacketData {
105
117
  controlObjectData?: Record<string, unknown>;
106
118
  disableMove?: boolean;
107
119
  pilot?: boolean;
108
- [key: string]: unknown;
109
- }
110
- export interface VehicleGhostData extends ShapeBaseGhostData {
120
+ };
121
+ export type VehicleGhostData = ShapeBaseGhostData & {
111
122
  jetting?: boolean;
112
- _controlledEarlyReturn?: boolean;
113
123
  steeringYaw?: number;
114
124
  steeringPitch?: number;
115
125
  move?: MoveData;
@@ -119,8 +129,8 @@ export interface VehicleGhostData extends ShapeBaseGhostData {
119
129
  linMomentum?: Vec3;
120
130
  angMomentum?: Vec3;
121
131
  energy?: number;
122
- }
123
- export interface VehiclePacketData {
132
+ };
133
+ export type VehiclePacketData = {
124
134
  energyLevel?: number;
125
135
  rechargeRate?: number;
126
136
  steering?: {
@@ -133,24 +143,23 @@ export interface VehiclePacketData {
133
143
  angMomentum?: Vec3;
134
144
  disableMove?: boolean;
135
145
  frozen?: boolean;
136
- [key: string]: unknown;
137
- }
138
- export interface WheeledVehicleGhostData extends VehicleGhostData {
146
+ };
147
+ export type WheeledVehicleGhostData = VehicleGhostData & {
139
148
  braking?: boolean;
140
149
  wheels?: WheelState[];
141
- }
142
- export interface WheeledVehiclePacketData extends VehiclePacketData {
150
+ };
151
+ export type WheeledVehiclePacketData = VehiclePacketData & {
143
152
  braking?: boolean;
144
153
  wheels?: WheelState[];
145
- }
146
- export interface FlyingVehicleGhostData extends VehicleGhostData {
154
+ };
155
+ export type FlyingVehicleGhostData = VehicleGhostData & {
147
156
  createHeightOn?: boolean;
148
157
  thrustDirection?: number;
149
- }
150
- export interface HoverVehicleGhostData extends VehicleGhostData {
158
+ };
159
+ export type HoverVehicleGhostData = VehicleGhostData & {
151
160
  thrustDirection?: number;
152
- }
153
- export interface ItemGhostData extends ShapeBaseGhostData {
161
+ };
162
+ export type ItemGhostData = ShapeBaseGhostData & {
154
163
  rotate?: boolean;
155
164
  isStatic?: boolean;
156
165
  collideable?: boolean;
@@ -164,47 +173,47 @@ export interface ItemGhostData extends ShapeBaseGhostData {
164
173
  atRest?: boolean;
165
174
  velocity?: Vec3;
166
175
  warp?: boolean;
167
- }
168
- export interface StaticShapeGhostData extends ShapeBaseGhostData {
176
+ };
177
+ export type StaticShapeGhostData = ShapeBaseGhostData & {
169
178
  transform?: AffineTransform | MatrixF;
170
179
  position?: Vec3;
171
180
  scale?: Vec3;
172
181
  powered?: boolean;
173
- }
182
+ };
174
183
  export type ScopeAlwaysShapeGhostData = StaticShapeGhostData;
175
- export interface BeaconObjectGhostData extends StaticShapeGhostData {
184
+ export type BeaconObjectGhostData = StaticShapeGhostData & {
176
185
  beaconType?: number;
177
- }
178
- export interface TurretGhostData extends StaticShapeGhostData {
186
+ };
187
+ export type TurretGhostData = StaticShapeGhostData & {
179
188
  capacitorEnergy?: number;
180
189
  phi?: number;
181
190
  theta?: number;
182
191
  activationLevel?: number;
183
- }
184
- export interface MissionMarkerGhostData extends ShapeBaseGhostData {
192
+ };
193
+ export type MissionMarkerGhostData = ShapeBaseGhostData & {
185
194
  transform?: AffineTransform;
186
195
  position?: Vec3;
187
196
  scale?: Vec3;
188
- }
189
- export interface WayPointGhostData extends MissionMarkerGhostData {
197
+ };
198
+ export type WayPointGhostData = MissionMarkerGhostData & {
190
199
  name?: string;
191
200
  teamId?: number;
192
201
  hidden?: boolean;
193
- }
194
- export interface SpawnSphereGhostData extends MissionMarkerGhostData {
202
+ };
203
+ export type SpawnSphereGhostData = MissionMarkerGhostData & {
195
204
  radius?: number;
196
205
  sphereWeight?: number;
197
206
  indoorWeight?: number;
198
207
  outdoorWeight?: number;
199
- }
200
- export interface CameraGhostData extends ShapeBaseGhostData {
208
+ };
209
+ export type CameraGhostData = ShapeBaseGhostData & {
201
210
  posX?: number;
202
211
  posY?: number;
203
212
  posZ?: number;
204
213
  fovOrDist?: number;
205
214
  orbitParam?: number;
206
- }
207
- export interface CameraPacketData {
215
+ };
216
+ export type CameraPacketData = {
208
217
  energyLevel?: number;
209
218
  rechargeRate?: number;
210
219
  position?: Vec3;
@@ -217,17 +226,14 @@ export interface CameraPacketData {
217
226
  observingClientObject?: boolean;
218
227
  orbitObjectGhostIndex?: number;
219
228
  orbitPoint?: Vec3;
220
- [key: string]: unknown;
221
- }
222
- export interface MarkerGhostData {
229
+ };
230
+ export type MarkerGhostData = {
223
231
  position?: Vec3;
224
- [key: string]: unknown;
225
- }
226
- export interface SimpleNetObjectGhostData {
232
+ };
233
+ export type SimpleNetObjectGhostData = {
227
234
  message?: string;
228
- [key: string]: unknown;
229
- }
230
- export interface InteriorInstanceGhostData {
235
+ };
236
+ export type InteriorInstanceGhostData = {
231
237
  crc?: number;
232
238
  interiorFile?: string;
233
239
  showTerrainInside?: boolean;
@@ -237,34 +243,29 @@ export interface InteriorInstanceGhostData {
237
243
  skinBase?: string;
238
244
  audioProfileId?: number;
239
245
  audioEnvironmentId?: number;
240
- [key: string]: unknown;
241
- }
242
- export interface TSStaticGhostData {
246
+ };
247
+ export type TSStaticGhostData = {
243
248
  transform?: MatrixF;
244
249
  scale?: Vec3;
245
250
  shapeName?: string;
246
- [key: string]: unknown;
247
- }
248
- export interface TerrainBlockGhostData {
251
+ };
252
+ export type TerrainBlockGhostData = {
249
253
  crc?: number;
250
254
  terrFileName?: string;
251
255
  detailTextureName?: string;
252
256
  squareSize?: number;
253
257
  emptySquareRuns?: number[];
254
258
  emptySquareRunCount?: number;
255
- [key: string]: unknown;
256
- }
257
- export interface TriggerGhostData {
259
+ };
260
+ export type TriggerGhostData = {
258
261
  tickPeriodMS?: number;
259
- [key: string]: unknown;
260
- }
261
- export interface VehicleBlockerGhostData {
262
+ };
263
+ export type VehicleBlockerGhostData = {
262
264
  transform?: MatrixF;
263
265
  boundsMin?: Vec3;
264
266
  boundsMax?: Vec3;
265
- [key: string]: unknown;
266
- }
267
- export interface MissionAreaGhostData {
267
+ };
268
+ export type MissionAreaGhostData = {
268
269
  area?: {
269
270
  x: number;
270
271
  y: number;
@@ -273,9 +274,8 @@ export interface MissionAreaGhostData {
273
274
  };
274
275
  flightCeiling?: number;
275
276
  flightCeilingRange?: number;
276
- [key: string]: unknown;
277
- }
278
- export interface AudioEmitterGhostData {
277
+ };
278
+ export type AudioEmitterGhostData = {
279
279
  initialUpdate?: boolean;
280
280
  transform?: AffineTransform;
281
281
  audioProfileId?: number;
@@ -296,9 +296,8 @@ export interface AudioEmitterGhostData {
296
296
  maxLoopGap?: number;
297
297
  audioType?: number;
298
298
  outsideAmbient?: boolean;
299
- [key: string]: unknown;
300
- }
301
- export interface PhysicalZoneGhostData {
299
+ };
300
+ export type PhysicalZoneGhostData = {
302
301
  transform?: MatrixF;
303
302
  scale?: Vec3;
304
303
  points?: Vec3[];
@@ -318,9 +317,8 @@ export interface PhysicalZoneGhostData {
318
317
  gravityMod?: number;
319
318
  appliedForce?: Vec3;
320
319
  active?: boolean;
321
- [key: string]: unknown;
322
- }
323
- export interface DebrisGhostData extends GameBaseGhostData {
320
+ };
321
+ export type DebrisGhostData = GameBaseGhostData & {
324
322
  value0?: number;
325
323
  value1?: number;
326
324
  value2?: number;
@@ -346,11 +344,10 @@ export interface DebrisGhostData extends GameBaseGhostData {
346
344
  string0?: string;
347
345
  string1?: string;
348
346
  objectRefs?: number[];
349
- objectRef2?: number;
350
- }
347
+ };
351
348
  export interface ProjectileGhostData extends GameBaseGhostData {
352
349
  }
353
- export interface LinearProjectileGhostData extends GameBaseGhostData {
350
+ export type LinearProjectileGhostData = GameBaseGhostData & {
354
351
  hidden?: boolean;
355
352
  explodePosition?: Vec3;
356
353
  explodeNormal?: Vec3;
@@ -363,8 +360,8 @@ export interface LinearProjectileGhostData extends GameBaseGhostData {
363
360
  excessVel?: number;
364
361
  excessDir?: Vec3;
365
362
  vehicleObject?: number;
366
- }
367
- export interface BombProjectileGhostData extends GameBaseGhostData {
363
+ };
364
+ export type BombProjectileGhostData = GameBaseGhostData & {
368
365
  position?: Vec3;
369
366
  velocity?: Vec3;
370
367
  endPoint?: Vec3;
@@ -376,8 +373,8 @@ export interface BombProjectileGhostData extends GameBaseGhostData {
376
373
  sourceObject?: number;
377
374
  sourceSlot?: number;
378
375
  vehicleObject?: number;
379
- }
380
- export interface GrenadeProjectileGhostData extends GameBaseGhostData {
376
+ };
377
+ export type GrenadeProjectileGhostData = GameBaseGhostData & {
381
378
  position?: Vec3;
382
379
  velocity?: Vec3;
383
380
  currTick?: number;
@@ -387,8 +384,8 @@ export interface GrenadeProjectileGhostData extends GameBaseGhostData {
387
384
  sourceObject?: number;
388
385
  sourceSlot?: number;
389
386
  vehicleObject?: number;
390
- }
391
- export interface SeekerProjectileGhostData extends GameBaseGhostData {
387
+ };
388
+ export type SeekerProjectileGhostData = GameBaseGhostData & {
392
389
  explodePosition?: Vec3;
393
390
  explodeNormal?: Vec3;
394
391
  position?: Vec3;
@@ -400,8 +397,8 @@ export interface SeekerProjectileGhostData extends GameBaseGhostData {
400
397
  sourceObject?: number;
401
398
  sourceSlot?: number;
402
399
  timeoutReset?: boolean;
403
- }
404
- export interface SniperProjectileGhostData extends GameBaseGhostData {
400
+ };
401
+ export type SniperProjectileGhostData = GameBaseGhostData & {
405
402
  energyPercentage?: number;
406
403
  initialPosition?: Vec3;
407
404
  endPos?: Vec3;
@@ -410,48 +407,47 @@ export interface SniperProjectileGhostData extends GameBaseGhostData {
410
407
  sourceObject?: number;
411
408
  sourceSlot?: number;
412
409
  clientOwned?: boolean;
413
- }
414
- export interface ShockLanceProjectileGhostData extends GameBaseGhostData {
410
+ };
411
+ export type ShockLanceProjectileGhostData = GameBaseGhostData & {
415
412
  targetObject?: number;
416
413
  start?: Vec3;
417
414
  end?: Vec3;
418
415
  hitObject?: boolean;
419
416
  sourceObject?: number;
420
417
  sourceSlot?: number;
421
- }
422
- export interface ELFProjectileGhostData extends GameBaseGhostData {
418
+ };
419
+ export type ELFProjectileGhostData = GameBaseGhostData & {
423
420
  sourceObject?: number;
424
421
  sourceSlot?: number;
425
422
  targetObject?: number;
426
- }
427
- export interface RepairProjectileGhostData extends GameBaseGhostData {
423
+ };
424
+ export type RepairProjectileGhostData = GameBaseGhostData & {
428
425
  sourceObject?: number;
429
426
  sourceSlot?: number;
430
427
  repairingObject?: number;
431
- }
432
- export interface TargetProjectileGhostData extends GameBaseGhostData {
428
+ };
429
+ export type TargetProjectileGhostData = GameBaseGhostData & {
433
430
  initialPosition?: Vec3;
434
431
  endPos?: Vec3;
435
432
  truncated?: boolean;
436
433
  sourceObject?: number;
437
434
  sourceSlot?: number;
438
435
  clientOwned?: boolean;
439
- }
440
- export interface ForceFieldBareGhostData extends GameBaseGhostData {
436
+ };
437
+ export type ForceFieldBareGhostData = GameBaseGhostData & {
441
438
  transform?: AffineTransform;
442
439
  scale?: Vec3;
443
440
  state?: number;
444
441
  position?: number;
445
- }
446
- export interface SunGhostData {
442
+ };
443
+ export type SunGhostData = {
447
444
  textures?: string[];
448
445
  direction?: Vec3;
449
446
  color?: Color4;
450
447
  ambient?: Color4;
451
448
  extraLightProps?: number[];
452
- [key: string]: unknown;
453
- }
454
- export interface SkyGhostData {
449
+ };
450
+ export type SkyGhostData = {
455
451
  materialList?: string;
456
452
  fogColor?: Color3;
457
453
  fogVolumeCount?: number;
@@ -496,9 +492,8 @@ export interface SkyGhostData {
496
492
  value1: number;
497
493
  value2: number;
498
494
  };
499
- [key: string]: unknown;
500
- }
501
- export interface LightningGhostData extends GameBaseGhostData {
495
+ };
496
+ export type LightningGhostData = GameBaseGhostData & {
502
497
  position?: Vec3;
503
498
  scale?: Vec3;
504
499
  strikeWidth?: number;
@@ -509,8 +504,8 @@ export interface LightningGhostData extends GameBaseGhostData {
509
504
  fadeColor?: Color3;
510
505
  useFog?: boolean;
511
506
  strikesPerMinute?: number;
512
- }
513
- export interface WaterBlockGhostData {
507
+ };
508
+ export type WaterBlockGhostData = {
514
509
  transform?: AffineTransform;
515
510
  scale?: Vec3;
516
511
  surfaceName?: string;
@@ -524,16 +519,15 @@ export interface WaterBlockGhostData {
524
519
  envMapIntensity?: number;
525
520
  removeWetEdges?: boolean;
526
521
  audioEnvironmentId?: number;
527
- [key: string]: unknown;
528
- }
529
- export interface SplashGhostData extends GameBaseGhostData {
522
+ };
523
+ export type SplashGhostData = GameBaseGhostData & {
530
524
  position?: Vec3;
531
- }
532
- export interface ShockwaveGhostData extends GameBaseGhostData {
525
+ };
526
+ export type ShockwaveGhostData = GameBaseGhostData & {
533
527
  position?: Vec3;
534
528
  normal?: Vec3;
535
- }
536
- export interface FireballAtmosphereGhostData extends GameBaseGhostData {
529
+ };
530
+ export type FireballAtmosphereGhostData = GameBaseGhostData & {
537
531
  dropRadius?: number;
538
532
  dropsPerMinute?: number;
539
533
  maxDropAngle?: number;
@@ -541,8 +535,8 @@ export interface FireballAtmosphereGhostData extends GameBaseGhostData {
541
535
  startVelocity?: number;
542
536
  dropHeight?: number;
543
537
  dropDir?: Vec3;
544
- }
545
- export interface PrecipitationGhostData extends GameBaseGhostData {
538
+ };
539
+ export type PrecipitationGhostData = GameBaseGhostData & {
546
540
  percentage?: number;
547
541
  colorCount?: number;
548
542
  colors?: Color4[];
@@ -556,18 +550,18 @@ export interface PrecipitationGhostData extends GameBaseGhostData {
556
550
  stormEndPercentage?: number;
557
551
  stormPrecipitationOn?: boolean;
558
552
  percentageUpdate?: number;
559
- }
560
- export interface ParticleEmissionDummyGhostData extends GameBaseGhostData {
553
+ };
554
+ export type ParticleEmissionDummyGhostData = GameBaseGhostData & {
561
555
  transform?: MatrixF;
562
556
  scale?: Vec3;
563
557
  emitterDatablockId?: number;
564
- }
565
- export interface StationFXPersonalGhostData extends GameBaseGhostData {
558
+ };
559
+ export type StationFXPersonalGhostData = GameBaseGhostData & {
566
560
  stationObject?: number;
567
- }
568
- export interface AIObjectiveGhostData extends ShapeBaseGhostData {
561
+ };
562
+ export type AIObjectiveGhostData = ShapeBaseGhostData & {
569
563
  transform?: AffineTransform;
570
564
  scale?: Vec3;
571
565
  unknownFlag?: boolean;
572
- }
566
+ };
573
567
  //# sourceMappingURL=ghostDataTypes.d.ts.map