t2-demo-parser 2.2.0 → 3.0.1
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.
- package/README.md +170 -7
- package/dist/BitStream.d.ts +14 -3
- package/dist/BitStream.d.ts.map +1 -1
- package/dist/BitStream.js +28 -6
- package/dist/BitStream.js.map +1 -1
- package/dist/BitWriter.d.ts +29 -0
- package/dist/BitWriter.d.ts.map +1 -0
- package/dist/BitWriter.js +76 -0
- package/dist/BitWriter.js.map +1 -0
- package/dist/ClassRegistry.d.ts +23 -28
- package/dist/ClassRegistry.d.ts.map +1 -1
- package/dist/ClassRegistry.js +75 -84
- package/dist/ClassRegistry.js.map +1 -1
- package/dist/DataBlockParsers.d.ts.map +1 -1
- package/dist/DataBlockParsers.js +60 -85
- package/dist/DataBlockParsers.js.map +1 -1
- package/dist/DemoParser.d.ts +23 -22
- package/dist/DemoParser.d.ts.map +1 -1
- package/dist/DemoParser.js +218 -266
- package/dist/DemoParser.js.map +1 -1
- package/dist/EventParsers.d.ts.map +1 -1
- package/dist/EventParsers.js +87 -58
- package/dist/EventParsers.js.map +1 -1
- package/dist/GhostManager.d.ts +7 -1
- package/dist/GhostManager.d.ts.map +1 -1
- package/dist/GhostManager.js +231 -146
- package/dist/GhostManager.js.map +1 -1
- package/dist/HuffmanProcessor.d.ts +15 -0
- package/dist/HuffmanProcessor.d.ts.map +1 -1
- package/dist/HuffmanProcessor.js +45 -0
- package/dist/HuffmanProcessor.js.map +1 -1
- package/dist/LiveParser.d.ts +20 -1
- package/dist/LiveParser.d.ts.map +1 -1
- package/dist/LiveParser.js +31 -12
- package/dist/LiveParser.js.map +1 -1
- package/dist/PacketParser.d.ts +22 -2
- package/dist/PacketParser.d.ts.map +1 -1
- package/dist/PacketParser.js +111 -48
- package/dist/PacketParser.js.map +1 -1
- package/dist/Timeline.d.ts +5 -2
- package/dist/Timeline.d.ts.map +1 -1
- package/dist/Timeline.js +25 -12
- package/dist/Timeline.js.map +1 -1
- package/dist/cli.js +3 -0
- package/dist/cli.js.map +1 -1
- package/dist/dataBlockDataTypes.d.ts +118 -117
- package/dist/dataBlockDataTypes.d.ts.map +1 -1
- package/dist/dataBlockDataTypes.js.map +1 -1
- package/dist/defaultRegistry.d.ts +9 -0
- package/dist/defaultRegistry.d.ts.map +1 -0
- package/dist/defaultRegistry.js +43 -0
- package/dist/defaultRegistry.js.map +1 -0
- package/dist/eventDataTypes.d.ts +74 -72
- package/dist/eventDataTypes.d.ts.map +1 -1
- package/dist/eventDataTypes.js.map +1 -1
- package/dist/ghostDataTypes.d.ts +125 -131
- package/dist/ghostDataTypes.d.ts.map +1 -1
- package/dist/ghostDataTypes.js.map +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +51 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +6 -0
- package/dist/types.js.map +1 -1
- package/package.json +4 -1
- package/dist/BitStream.test.d.ts +0 -2
- package/dist/BitStream.test.d.ts.map +0 -1
- package/dist/BitStream.test.js +0 -419
- package/dist/BitStream.test.js.map +0 -1
- package/dist/ClassRegistry.test.d.ts +0 -2
- package/dist/ClassRegistry.test.d.ts.map +0 -1
- package/dist/ClassRegistry.test.js +0 -83
- package/dist/ClassRegistry.test.js.map +0 -1
- package/dist/DataBlockParsers.test.d.ts +0 -2
- package/dist/DataBlockParsers.test.d.ts.map +0 -1
- package/dist/DataBlockParsers.test.js +0 -294
- package/dist/DataBlockParsers.test.js.map +0 -1
- package/dist/DemoParser.test.d.ts +0 -2
- package/dist/DemoParser.test.d.ts.map +0 -1
- package/dist/DemoParser.test.js +0 -472
- package/dist/DemoParser.test.js.map +0 -1
- package/dist/GhostStateAccumulator.test.d.ts +0 -2
- package/dist/GhostStateAccumulator.test.d.ts.map +0 -1
- package/dist/GhostStateAccumulator.test.js +0 -201
- package/dist/GhostStateAccumulator.test.js.map +0 -1
- package/dist/GhostTracker.test.d.ts +0 -2
- package/dist/GhostTracker.test.d.ts.map +0 -1
- package/dist/GhostTracker.test.js +0 -64
- package/dist/GhostTracker.test.js.map +0 -1
- package/dist/IncrementalParser.test.d.ts +0 -2
- package/dist/IncrementalParser.test.d.ts.map +0 -1
- package/dist/IncrementalParser.test.js +0 -226
- 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,
|
|
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,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG;IAC9C,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,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG;IAC3C,IAAI,EAAE,gBAAgB,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM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,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG;IAC9C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,SAAS,GAAG;IACtD,IAAI,EAAE,2BAA2B,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG;IACzC,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG;IAC9C,IAAI,EAAE,mBAAmB,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,YAAY,GACpB,qBAAqB,GACrB,kBAAkB,GAClB,mBAAmB,GACnB,mBAAmB,GACnB,uBAAuB,GACvB,wBAAwB,GACxB,iBAAiB,GACjB,6BAA6B,GAC7B,sBAAsB,GACtB,sBAAsB,GACtB,mBAAmB,GACnB,mBAAmB,GACnB,uBAAuB,GACvB,yBAAyB,GACzB,2BAA2B,GAC3B,+BAA+B,GAC/B,uBAAuB,GACvB,wBAAwB,GACxB,0BAA0B,GAC1B,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
|
|
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"]}
|
package/dist/ghostDataTypes.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Vec3, Quat, Color3, Color4, AffineTransform, MatrixF } from "./dataTypes.js";
|
|
2
|
-
export
|
|
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
|
|
11
|
+
};
|
|
12
|
+
export type SoundSlot = {
|
|
13
13
|
index: number;
|
|
14
14
|
playing: boolean;
|
|
15
15
|
profileId?: number;
|
|
16
|
-
}
|
|
17
|
-
export
|
|
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
|
|
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
|
|
36
|
+
};
|
|
37
|
+
export type WheelState = {
|
|
38
38
|
avel: number;
|
|
39
39
|
dy: number;
|
|
40
40
|
dx: number;
|
|
41
|
-
}
|
|
42
|
-
export
|
|
41
|
+
};
|
|
42
|
+
export type GameBaseGhostData = {
|
|
43
43
|
dataBlockId?: number;
|
|
44
44
|
targetId?: number;
|
|
45
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
export interface WheeledVehicleGhostData extends VehicleGhostData {
|
|
146
|
+
};
|
|
147
|
+
export type WheeledVehicleGhostData = VehicleGhostData & {
|
|
139
148
|
braking?: boolean;
|
|
140
149
|
wheels?: WheelState[];
|
|
141
|
-
}
|
|
142
|
-
export
|
|
150
|
+
};
|
|
151
|
+
export type WheeledVehiclePacketData = VehiclePacketData & {
|
|
143
152
|
braking?: boolean;
|
|
144
153
|
wheels?: WheelState[];
|
|
145
|
-
}
|
|
146
|
-
export
|
|
154
|
+
};
|
|
155
|
+
export type FlyingVehicleGhostData = VehicleGhostData & {
|
|
147
156
|
createHeightOn?: boolean;
|
|
148
157
|
thrustDirection?: number;
|
|
149
|
-
}
|
|
150
|
-
export
|
|
158
|
+
};
|
|
159
|
+
export type HoverVehicleGhostData = VehicleGhostData & {
|
|
151
160
|
thrustDirection?: number;
|
|
152
|
-
}
|
|
153
|
-
export
|
|
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
|
|
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
|
|
184
|
+
export type BeaconObjectGhostData = StaticShapeGhostData & {
|
|
176
185
|
beaconType?: number;
|
|
177
|
-
}
|
|
178
|
-
export
|
|
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
|
|
192
|
+
};
|
|
193
|
+
export type MissionMarkerGhostData = ShapeBaseGhostData & {
|
|
185
194
|
transform?: AffineTransform;
|
|
186
195
|
position?: Vec3;
|
|
187
196
|
scale?: Vec3;
|
|
188
|
-
}
|
|
189
|
-
export
|
|
197
|
+
};
|
|
198
|
+
export type WayPointGhostData = MissionMarkerGhostData & {
|
|
190
199
|
name?: string;
|
|
191
200
|
teamId?: number;
|
|
192
201
|
hidden?: boolean;
|
|
193
|
-
}
|
|
194
|
-
export
|
|
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
|
|
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
|
|
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
|
-
|
|
221
|
-
|
|
222
|
-
export interface MarkerGhostData {
|
|
229
|
+
};
|
|
230
|
+
export type MarkerGhostData = {
|
|
223
231
|
position?: Vec3;
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
export interface SimpleNetObjectGhostData {
|
|
232
|
+
};
|
|
233
|
+
export type SimpleNetObjectGhostData = {
|
|
227
234
|
message?: string;
|
|
228
|
-
|
|
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
|
-
|
|
241
|
-
|
|
242
|
-
export interface TSStaticGhostData {
|
|
246
|
+
};
|
|
247
|
+
export type TSStaticGhostData = {
|
|
243
248
|
transform?: MatrixF;
|
|
244
249
|
scale?: Vec3;
|
|
245
250
|
shapeName?: string;
|
|
246
|
-
|
|
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
|
-
|
|
256
|
-
|
|
257
|
-
export interface TriggerGhostData {
|
|
259
|
+
};
|
|
260
|
+
export type TriggerGhostData = {
|
|
258
261
|
tickPeriodMS?: number;
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
export interface VehicleBlockerGhostData {
|
|
262
|
+
};
|
|
263
|
+
export type VehicleBlockerGhostData = {
|
|
262
264
|
transform?: MatrixF;
|
|
263
265
|
boundsMin?: Vec3;
|
|
264
266
|
boundsMax?: Vec3;
|
|
265
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
350
|
-
}
|
|
347
|
+
};
|
|
351
348
|
export interface ProjectileGhostData extends GameBaseGhostData {
|
|
352
349
|
}
|
|
353
|
-
export
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
418
|
+
};
|
|
419
|
+
export type ELFProjectileGhostData = GameBaseGhostData & {
|
|
423
420
|
sourceObject?: number;
|
|
424
421
|
sourceSlot?: number;
|
|
425
422
|
targetObject?: number;
|
|
426
|
-
}
|
|
427
|
-
export
|
|
423
|
+
};
|
|
424
|
+
export type RepairProjectileGhostData = GameBaseGhostData & {
|
|
428
425
|
sourceObject?: number;
|
|
429
426
|
sourceSlot?: number;
|
|
430
427
|
repairingObject?: number;
|
|
431
|
-
}
|
|
432
|
-
export
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
528
|
-
|
|
529
|
-
export interface SplashGhostData extends GameBaseGhostData {
|
|
522
|
+
};
|
|
523
|
+
export type SplashGhostData = GameBaseGhostData & {
|
|
530
524
|
position?: Vec3;
|
|
531
|
-
}
|
|
532
|
-
export
|
|
525
|
+
};
|
|
526
|
+
export type ShockwaveGhostData = GameBaseGhostData & {
|
|
533
527
|
position?: Vec3;
|
|
534
528
|
normal?: Vec3;
|
|
535
|
-
}
|
|
536
|
-
export
|
|
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
|
|
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
|
|
553
|
+
};
|
|
554
|
+
export type ParticleEmissionDummyGhostData = GameBaseGhostData & {
|
|
561
555
|
transform?: MatrixF;
|
|
562
556
|
scale?: Vec3;
|
|
563
557
|
emitterDatablockId?: number;
|
|
564
|
-
}
|
|
565
|
-
export
|
|
558
|
+
};
|
|
559
|
+
export type StationFXPersonalGhostData = GameBaseGhostData & {
|
|
566
560
|
stationObject?: number;
|
|
567
|
-
}
|
|
568
|
-
export
|
|
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
|