brs-js 2.1.2 → 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.
- package/README.md +271 -190
- package/dist/dist.js +6 -1
- package/dist/dist.js.map +1 -1
- package/dist/dist.mjs +7393 -0
- package/dist/dist.mjs.map +1 -0
- package/dist/dist.node.js +6 -1
- package/dist/dist.node.js.map +1 -1
- package/dist/dist.web.js +6 -1
- package/dist/dist.web.js.map +1 -1
- package/dist/src/brdb/bits.d.ts +13 -0
- package/dist/src/brdb/bits.d.ts.map +1 -0
- package/dist/src/brdb/brdb.d.ts +131 -0
- package/dist/src/brdb/brdb.d.ts.map +1 -0
- package/dist/src/brdb/brz.d.ts +51 -0
- package/dist/src/brdb/brz.d.ts.map +1 -0
- package/dist/src/brdb/bytes.d.ts +56 -0
- package/dist/src/brdb/bytes.d.ts.map +1 -0
- package/dist/src/brdb/catalog.d.ts +5 -0
- package/dist/src/brdb/catalog.d.ts.map +1 -0
- package/dist/src/brdb/componentDb.d.ts +8 -0
- package/dist/src/brdb/componentDb.d.ts.map +1 -0
- package/dist/src/brdb/fs.d.ts +16 -0
- package/dist/src/brdb/fs.d.ts.map +1 -0
- package/dist/src/brdb/guid.d.ts +11 -0
- package/dist/src/brdb/guid.d.ts.map +1 -0
- package/dist/src/brdb/index.d.ts +21 -0
- package/dist/src/brdb/index.d.ts.map +1 -0
- package/dist/src/brdb/msgpack.d.ts +23 -0
- package/dist/src/brdb/msgpack.d.ts.map +1 -0
- package/dist/src/brdb/pending.d.ts +11 -0
- package/dist/src/brdb/pending.d.ts.map +1 -0
- package/dist/src/brdb/reader.d.ts +176 -0
- package/dist/src/brdb/reader.d.ts.map +1 -0
- package/dist/src/brdb/schema.d.ts +73 -0
- package/dist/src/brdb/schema.d.ts.map +1 -0
- package/dist/src/brdb/schemaText.d.ts +8 -0
- package/dist/src/brdb/schemaText.d.ts.map +1 -0
- package/dist/src/brdb/schemas.d.ts +4 -0
- package/dist/src/brdb/schemas.d.ts.map +1 -0
- package/dist/src/brdb/world.d.ts +80 -0
- package/dist/src/brdb/world.d.ts.map +1 -0
- package/dist/src/{constants.d.ts → brs/constants.d.ts} +1 -1
- package/dist/src/brs/constants.d.ts.map +1 -0
- package/dist/src/brs/read.d.ts.map +1 -0
- package/dist/src/brs/read.v1.d.ts.map +1 -0
- package/dist/src/brs/read.v10.d.ts.map +1 -0
- package/dist/src/brs/read.v14.d.ts.map +1 -0
- package/dist/src/brs/read.v2.d.ts.map +1 -0
- package/dist/src/brs/read.v3.d.ts.map +1 -0
- package/dist/src/brs/read.v4.d.ts.map +1 -0
- package/dist/src/brs/read.v8.d.ts.map +1 -0
- package/dist/src/brs/read.v9.d.ts.map +1 -0
- package/dist/src/brs/types.d.ts +1003 -0
- package/dist/src/brs/types.d.ts.map +1 -0
- package/dist/src/{utils.d.ts → brs/utils.d.ts} +4 -9
- package/dist/src/brs/utils.d.ts.map +1 -0
- package/dist/src/{write.d.ts → brs/write.d.ts} +1 -1
- package/dist/src/brs/write.d.ts.map +1 -0
- package/dist/src/index.d.ts +10 -7
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/uuid.d.ts +1 -1
- package/dist/src/uuid.d.ts.map +1 -1
- package/package.json +42 -18
- package/dist/src/constants.d.ts.map +0 -1
- package/dist/src/read.d.ts.map +0 -1
- package/dist/src/read.v1.d.ts.map +0 -1
- package/dist/src/read.v10.d.ts.map +0 -1
- package/dist/src/read.v14.d.ts.map +0 -1
- package/dist/src/read.v2.d.ts.map +0 -1
- package/dist/src/read.v3.d.ts.map +0 -1
- package/dist/src/read.v4.d.ts.map +0 -1
- package/dist/src/read.v8.d.ts.map +0 -1
- package/dist/src/read.v9.d.ts.map +0 -1
- package/dist/src/types.d.ts +0 -281
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/utils.d.ts.map +0 -1
- package/dist/src/write.d.ts.map +0 -1
- /package/dist/src/{read.d.ts → brs/read.d.ts} +0 -0
- /package/dist/src/{read.v1.d.ts → brs/read.v1.d.ts} +0 -0
- /package/dist/src/{read.v10.d.ts → brs/read.v10.d.ts} +0 -0
- /package/dist/src/{read.v14.d.ts → brs/read.v14.d.ts} +0 -0
- /package/dist/src/{read.v2.d.ts → brs/read.v2.d.ts} +0 -0
- /package/dist/src/{read.v3.d.ts → brs/read.v3.d.ts} +0 -0
- /package/dist/src/{read.v4.d.ts → brs/read.v4.d.ts} +0 -0
- /package/dist/src/{read.v8.d.ts → brs/read.v8.d.ts} +0 -0
- /package/dist/src/{read.v9.d.ts → brs/read.v9.d.ts} +0 -0
|
@@ -0,0 +1,1003 @@
|
|
|
1
|
+
export interface BRSBytes extends Uint8Array {
|
|
2
|
+
brsOffset: number;
|
|
3
|
+
}
|
|
4
|
+
type Modify<T, R> = Omit<T, keyof R> & R;
|
|
5
|
+
export type Bytes = Uint8Array | BRSBytes;
|
|
6
|
+
export type Uuid = string;
|
|
7
|
+
export type UnrealClass = string;
|
|
8
|
+
export type UnrealObject = string;
|
|
9
|
+
export type UnrealBoolean = boolean;
|
|
10
|
+
export type UnrealFloat = number;
|
|
11
|
+
export type UnrealInteger = number;
|
|
12
|
+
export type UnrealInteger64 = number;
|
|
13
|
+
export type UnrealColor = [number, number, number, number];
|
|
14
|
+
export type UnrealByte = number;
|
|
15
|
+
export type UnrealRotator = [number, number, number];
|
|
16
|
+
export type Vector3d = Vector;
|
|
17
|
+
export type IntVector = Vector;
|
|
18
|
+
export type UnrealString = string;
|
|
19
|
+
export type WireGraphVariant = {
|
|
20
|
+
number: number;
|
|
21
|
+
} | {
|
|
22
|
+
integer: number;
|
|
23
|
+
} | {
|
|
24
|
+
bool: boolean;
|
|
25
|
+
} | {
|
|
26
|
+
exec: true;
|
|
27
|
+
} | {
|
|
28
|
+
object: true;
|
|
29
|
+
};
|
|
30
|
+
export type BRInventoryEntryPlan = string;
|
|
31
|
+
export type UnrealType = UnrealClass | UnrealObject | UnrealBoolean | UnrealFloat | UnrealColor | UnrealByte | UnrealRotator | UnrealString | WireGraphVariant | UnrealInteger64 | Vector3d | IntVector | BRInventoryEntryPlan;
|
|
32
|
+
type UnrealTypeFromString<T> = T extends 'Class' ? UnrealClass : T extends 'Object' ? UnrealObject : T extends 'Boolean' ? UnrealBoolean : T extends 'Float' ? UnrealFloat : T extends 'Color' ? UnrealColor : T extends 'Byte' ? UnrealByte : T extends 'Rotator' ? UnrealRotator : T extends 'Rotator3d' ? UnrealRotator : T extends 'Vector3d' ? Vector3d : T extends 'IntVector' ? IntVector : T extends 'String' ? UnrealString : T extends 'BRInventoryEntryPlan' ? BRInventoryEntryPlan : T extends 'WireGraphVariant' ? WireGraphVariant : T extends 'WireGraphPrimMathVariant' ? WireGraphVariant : T extends 'Integer' ? UnrealInteger : T extends 'Integer64' ? UnrealInteger64 : UnrealType;
|
|
33
|
+
export interface User {
|
|
34
|
+
id: Uuid;
|
|
35
|
+
name: string;
|
|
36
|
+
}
|
|
37
|
+
export interface LegacyOwner extends User {
|
|
38
|
+
bricks: number;
|
|
39
|
+
}
|
|
40
|
+
export interface Owner extends LegacyOwner {
|
|
41
|
+
display_name: string;
|
|
42
|
+
}
|
|
43
|
+
export declare enum Direction {
|
|
44
|
+
XPositive = 0,
|
|
45
|
+
XNegative = 1,
|
|
46
|
+
YPositive = 2,
|
|
47
|
+
YNegative = 3,
|
|
48
|
+
ZPositive = 4,
|
|
49
|
+
ZNegative = 5
|
|
50
|
+
}
|
|
51
|
+
export declare enum Rotation {
|
|
52
|
+
Deg0 = 0,
|
|
53
|
+
Deg90 = 1,
|
|
54
|
+
Deg180 = 2,
|
|
55
|
+
Deg270 = 3
|
|
56
|
+
}
|
|
57
|
+
export type ColorRgb = [number, number, number];
|
|
58
|
+
export interface Collision {
|
|
59
|
+
player: boolean;
|
|
60
|
+
weapon: boolean;
|
|
61
|
+
interaction: boolean;
|
|
62
|
+
tool: boolean;
|
|
63
|
+
physics: boolean;
|
|
64
|
+
}
|
|
65
|
+
export interface AppliedComponent {
|
|
66
|
+
[property: string]: UnrealType;
|
|
67
|
+
}
|
|
68
|
+
export interface UnknownComponents {
|
|
69
|
+
[component_name: string]: {
|
|
70
|
+
version: number;
|
|
71
|
+
brick_indices?: number[];
|
|
72
|
+
properties: {
|
|
73
|
+
[property: string]: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
export type KnownComponents = {
|
|
78
|
+
BCD_SpotLight: {
|
|
79
|
+
version: 1;
|
|
80
|
+
brick_indices?: number[];
|
|
81
|
+
properties: {
|
|
82
|
+
Rotation: 'Rotator';
|
|
83
|
+
InnerConeAngle: 'Float';
|
|
84
|
+
OuterConeAngle: 'Float';
|
|
85
|
+
Brightness: 'Float';
|
|
86
|
+
Radius: 'Float';
|
|
87
|
+
Color: 'Color';
|
|
88
|
+
bUseBrickColor: 'Boolean';
|
|
89
|
+
bCastShadows: 'Boolean';
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
BCD_PointLight: {
|
|
93
|
+
version: 1;
|
|
94
|
+
brick_indices?: number[];
|
|
95
|
+
properties: {
|
|
96
|
+
bMatchBrickShape: 'Boolean';
|
|
97
|
+
Brightness: 'Float';
|
|
98
|
+
Radius: 'Float';
|
|
99
|
+
Color: 'Color';
|
|
100
|
+
bUseBrickColor: 'Boolean';
|
|
101
|
+
bCastShadows: 'Boolean';
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
BCD_ItemSpawn: {
|
|
105
|
+
version: 1;
|
|
106
|
+
brick_indices?: number[];
|
|
107
|
+
properties: {
|
|
108
|
+
PickupClass: 'Class';
|
|
109
|
+
bPickupEnabled: 'Boolean';
|
|
110
|
+
bPickupRespawnOnMinigameReset: 'Boolean';
|
|
111
|
+
PickupMinigameResetRespawnDelay: 'Float';
|
|
112
|
+
bPickupAutoDisableOnPickup: 'Boolean';
|
|
113
|
+
PickupRespawnTime: 'Float';
|
|
114
|
+
PickupOffsetDirection: 'Byte';
|
|
115
|
+
PickupOffsetDistance: 'Float';
|
|
116
|
+
PickupRotation: 'Rotator';
|
|
117
|
+
PickupScale: 'Float';
|
|
118
|
+
bPickupAnimationEnabled: 'Boolean';
|
|
119
|
+
PickupAnimationAxis: 'Byte';
|
|
120
|
+
bPickupAnimationAxisLocal: 'Boolean';
|
|
121
|
+
PickupSpinSpeed: 'Float';
|
|
122
|
+
PickupBobSpeed: 'Float';
|
|
123
|
+
PickupBobHeight: 'Float';
|
|
124
|
+
PickupAnimationPhase: 'Float';
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
BCD_Interact: {
|
|
128
|
+
version: 1;
|
|
129
|
+
brick_indices?: number[];
|
|
130
|
+
properties: {
|
|
131
|
+
bPlayInteractSound: 'Boolean';
|
|
132
|
+
Message: 'String';
|
|
133
|
+
ConsoleTag: 'String';
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
BCD_AudioEmitter: {
|
|
137
|
+
version: 1;
|
|
138
|
+
brick_indices?: number[];
|
|
139
|
+
properties: {
|
|
140
|
+
AudioDescriptor: 'Object';
|
|
141
|
+
VolumeMultiplier: 'Float';
|
|
142
|
+
PitchMultiplier: 'Float';
|
|
143
|
+
InnerRadius: 'Float';
|
|
144
|
+
MaxDistance: 'Float';
|
|
145
|
+
bSpatialization: 'Boolean';
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
Component_AudioEmitter: {
|
|
149
|
+
version: 1;
|
|
150
|
+
brick_indices?: number[];
|
|
151
|
+
properties: {
|
|
152
|
+
bEnabled: 'Boolean';
|
|
153
|
+
AudioDescriptor: 'Object';
|
|
154
|
+
VolumeMultiplier: 'Float';
|
|
155
|
+
PitchMultiplier: 'Float';
|
|
156
|
+
InnerRadius: 'Float';
|
|
157
|
+
MaxDistance: 'Float';
|
|
158
|
+
bSpatialization: 'Boolean';
|
|
159
|
+
FocusAzimuth: 'Float';
|
|
160
|
+
NonFocusAzimuth: 'Float';
|
|
161
|
+
NonFocusVolumeAttenuation: 'Float';
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
Component_BotSpawn: {
|
|
165
|
+
version: 1;
|
|
166
|
+
brick_indices?: number[];
|
|
167
|
+
properties: {
|
|
168
|
+
RespawnTime: 'Float';
|
|
169
|
+
CorpseTimeout: 'Float';
|
|
170
|
+
GunSkill: 'Float';
|
|
171
|
+
Agression: 'Float';
|
|
172
|
+
ReactionTime: 'Float';
|
|
173
|
+
MovementRandomness: 'Float';
|
|
174
|
+
Jumpyness: 'Float';
|
|
175
|
+
MovementAmount: 'Float';
|
|
176
|
+
AttackMovementAmount: 'Float';
|
|
177
|
+
AggroRange: 'Float';
|
|
178
|
+
bCanJump: 'Boolean';
|
|
179
|
+
bBackVision: 'Boolean';
|
|
180
|
+
bVisionRaycasting: 'Boolean';
|
|
181
|
+
bCanTargetPlayers: 'Boolean';
|
|
182
|
+
bCanTargetBots: 'Boolean';
|
|
183
|
+
MoveTarget: 'Vector3d';
|
|
184
|
+
BotWeapon: 'Class';
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
Component_CheckPoint: {
|
|
188
|
+
version: 1;
|
|
189
|
+
brick_indices?: number[];
|
|
190
|
+
properties: {
|
|
191
|
+
bRotatePlayerGravityOnSpawn: 'Boolean';
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
Component_Damage: {
|
|
195
|
+
version: 1;
|
|
196
|
+
brick_indices?: number[];
|
|
197
|
+
properties: {
|
|
198
|
+
Message: 'String';
|
|
199
|
+
ConsoleTag: 'String';
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
Component_GoalPoint: {
|
|
203
|
+
version: 1;
|
|
204
|
+
brick_indices?: number[];
|
|
205
|
+
properties: {};
|
|
206
|
+
};
|
|
207
|
+
Component_InputSplitter: {
|
|
208
|
+
version: 1;
|
|
209
|
+
brick_indices?: number[];
|
|
210
|
+
properties: {};
|
|
211
|
+
};
|
|
212
|
+
Component_OneShotAudioEmitter: {
|
|
213
|
+
version: 1;
|
|
214
|
+
brick_indices?: number[];
|
|
215
|
+
properties: {
|
|
216
|
+
AudioDescriptor: 'Object';
|
|
217
|
+
VolumeMultiplier: 'Float';
|
|
218
|
+
PitchMultiplier: 'Float';
|
|
219
|
+
InnerRadius: 'Float';
|
|
220
|
+
MaxDistance: 'Float';
|
|
221
|
+
bSpatialization: 'Boolean';
|
|
222
|
+
bEnableRepeat: 'Boolean';
|
|
223
|
+
RepeatTime: 'Float';
|
|
224
|
+
RepeatVariance: 'Float';
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
Component_SpawnPoint: {
|
|
228
|
+
version: 1;
|
|
229
|
+
brick_indices?: number[];
|
|
230
|
+
properties: {
|
|
231
|
+
bRotatePlayerGravityOnSpawn: 'Boolean';
|
|
232
|
+
bEnable: 'Boolean';
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
Component_Target: {
|
|
236
|
+
version: 1;
|
|
237
|
+
brick_indices?: number[];
|
|
238
|
+
properties: {
|
|
239
|
+
OnTime: 'Float';
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
Component_Internal_AnimatedButton: {
|
|
243
|
+
version: 1;
|
|
244
|
+
brick_indices?: number[];
|
|
245
|
+
properties: {
|
|
246
|
+
PressSound: 'Object';
|
|
247
|
+
ReleaseSound: 'Object';
|
|
248
|
+
bAllowNearbyInteraction: 'Boolean';
|
|
249
|
+
bHiddenInteraction: 'Boolean';
|
|
250
|
+
PromptCustomLabel: 'String';
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
Component_Internal_AnimatedSwitch: {
|
|
254
|
+
version: 1;
|
|
255
|
+
brick_indices?: number[];
|
|
256
|
+
properties: {
|
|
257
|
+
bEnabled: 'Boolean';
|
|
258
|
+
InteractSound: 'Object';
|
|
259
|
+
bAllowNearbyInteraction: 'Boolean';
|
|
260
|
+
bHiddenInteraction: 'Boolean';
|
|
261
|
+
PromptCustomLabel: 'String';
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
Component_Internal_AttachedZone: {
|
|
265
|
+
version: 1;
|
|
266
|
+
brick_indices?: number[];
|
|
267
|
+
properties: {
|
|
268
|
+
ZoneStartDistance: 'Integer';
|
|
269
|
+
ZoneEndDistance: 'Integer';
|
|
270
|
+
bIsBuildingZone: 'Boolean';
|
|
271
|
+
bIsLooseZone: 'Boolean';
|
|
272
|
+
bIsShareZone: 'Boolean';
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
Component_Internal_Bearing: {
|
|
276
|
+
version: 1;
|
|
277
|
+
brick_indices?: number[];
|
|
278
|
+
properties: {
|
|
279
|
+
bLimitAngle: 'Boolean';
|
|
280
|
+
LimitAngle: 'Float';
|
|
281
|
+
Damping: 'Float';
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
Component_Internal_Joint_Wheel: {
|
|
285
|
+
version: 1;
|
|
286
|
+
brick_indices?: number[];
|
|
287
|
+
properties: {
|
|
288
|
+
bEnabled: 'Boolean';
|
|
289
|
+
DriveSpeed: 'Float';
|
|
290
|
+
DrivePower: 'Float';
|
|
291
|
+
bSteerEnabled: 'Boolean';
|
|
292
|
+
Steer: 'Float';
|
|
293
|
+
SteerLimitDegree: 'Float';
|
|
294
|
+
SteerPower: 'Float';
|
|
295
|
+
bSuspensionEnabled: 'Boolean';
|
|
296
|
+
SuspensionStiffness: 'Float';
|
|
297
|
+
SuspensionDamping: 'Float';
|
|
298
|
+
JointDistance: 'Integer';
|
|
299
|
+
bDriveWhenNotAttachedToEngine: 'Boolean';
|
|
300
|
+
bCanBrake: 'Boolean';
|
|
301
|
+
bAllowEngineSteerCorrect: 'Boolean';
|
|
302
|
+
Damping: 'Float';
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
Component_Internal_Motor: {
|
|
306
|
+
version: 1;
|
|
307
|
+
brick_indices?: number[];
|
|
308
|
+
properties: {
|
|
309
|
+
bEnabled: 'Boolean';
|
|
310
|
+
Speed: 'Float';
|
|
311
|
+
Power: 'Float';
|
|
312
|
+
bLimitAngle: 'Boolean';
|
|
313
|
+
LimitAngle: 'Float';
|
|
314
|
+
Damping: 'Float';
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
Component_Internal_MotorSlider: {
|
|
318
|
+
version: 1;
|
|
319
|
+
brick_indices?: number[];
|
|
320
|
+
properties: {
|
|
321
|
+
bEnabled: 'Boolean';
|
|
322
|
+
Speed: 'Float';
|
|
323
|
+
Power: 'Float';
|
|
324
|
+
bPositionsArePercentages: 'Boolean';
|
|
325
|
+
Damping: 'Float';
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
Component_Internal_Rerouter: {
|
|
329
|
+
version: 1;
|
|
330
|
+
brick_indices?: number[];
|
|
331
|
+
properties: {};
|
|
332
|
+
};
|
|
333
|
+
Component_Internal_Seat: {
|
|
334
|
+
version: 1;
|
|
335
|
+
brick_indices?: number[];
|
|
336
|
+
properties: {
|
|
337
|
+
bIsOccupied: 'Boolean';
|
|
338
|
+
ExitOffset: 'IntVector';
|
|
339
|
+
bAllowNearbyInteraction: 'Boolean';
|
|
340
|
+
bHiddenInteraction: 'Boolean';
|
|
341
|
+
PromptCustomLabel: 'String';
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
Component_Internal_Servo: {
|
|
345
|
+
version: 1;
|
|
346
|
+
brick_indices?: number[];
|
|
347
|
+
properties: {
|
|
348
|
+
bEnabled: 'Boolean';
|
|
349
|
+
TargetAngle: 'Float';
|
|
350
|
+
Power: 'Float';
|
|
351
|
+
ActiveDamping: 'Float';
|
|
352
|
+
ForceLimit: 'Float';
|
|
353
|
+
bLimitAngle: 'Boolean';
|
|
354
|
+
LimitAngle: 'Float';
|
|
355
|
+
Damping: 'Float';
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
Component_Internal_ServoSlider: {
|
|
359
|
+
version: 1;
|
|
360
|
+
brick_indices?: number[];
|
|
361
|
+
properties: {
|
|
362
|
+
bEnabled: 'Boolean';
|
|
363
|
+
TargetPosition: 'Float';
|
|
364
|
+
Power: 'Float';
|
|
365
|
+
TopSpeed: 'Float';
|
|
366
|
+
Exponent: 'Float';
|
|
367
|
+
bPositionsArePercentages: 'Boolean';
|
|
368
|
+
Damping: 'Float';
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
Component_Internal_Slider: {
|
|
372
|
+
version: 1;
|
|
373
|
+
brick_indices?: number[];
|
|
374
|
+
properties: {
|
|
375
|
+
bPositionsArePercentages: 'Boolean';
|
|
376
|
+
Damping: 'Float';
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
Component_Internal_Socket: {
|
|
380
|
+
version: 1;
|
|
381
|
+
brick_indices?: number[];
|
|
382
|
+
properties: {};
|
|
383
|
+
};
|
|
384
|
+
Component_Internal_WeightBrick: {
|
|
385
|
+
version: 1;
|
|
386
|
+
brick_indices?: number[];
|
|
387
|
+
properties: {
|
|
388
|
+
Mass: 'Float';
|
|
389
|
+
MassSize: 'IntVector';
|
|
390
|
+
MassOffset: 'IntVector';
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
Component_Internal_WheelEngine: {
|
|
394
|
+
version: 1;
|
|
395
|
+
brick_indices?: number[];
|
|
396
|
+
properties: {
|
|
397
|
+
bEnabled: 'Boolean';
|
|
398
|
+
bEnableManualControl: 'Boolean';
|
|
399
|
+
ManualInput_Drive: 'Float';
|
|
400
|
+
ManualInput_Steer: 'Float';
|
|
401
|
+
bManualInput_Brake: 'Boolean';
|
|
402
|
+
CustomMass: 'Float';
|
|
403
|
+
CustomMassVerticalOffset: 'Float';
|
|
404
|
+
DriveInterpSpeed: 'Float';
|
|
405
|
+
DriveSpeed: 'Float';
|
|
406
|
+
DriveAcceleratingPowerMultiplier: 'Float';
|
|
407
|
+
DriveBrakingPowerMultiplier: 'Float';
|
|
408
|
+
DriveDampingMultiplier: 'Float';
|
|
409
|
+
SteerPowerMultiplier: 'Float';
|
|
410
|
+
SteerInterpSpeed: 'Float';
|
|
411
|
+
SteerLimitDegree: 'Float';
|
|
412
|
+
CenterOfSteering: 'Float';
|
|
413
|
+
bTankSteering: 'Boolean';
|
|
414
|
+
TankSteerSpeedMultiplier: 'Float';
|
|
415
|
+
WaterDriveForce: 'Float';
|
|
416
|
+
WaterSteeringForce: 'Float';
|
|
417
|
+
AudioDescriptor: 'Object';
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
Component_WireGraph_PlayAudioAt: {
|
|
421
|
+
version: 1;
|
|
422
|
+
brick_indices?: number[];
|
|
423
|
+
properties: {
|
|
424
|
+
AudioDescriptor: 'Object';
|
|
425
|
+
VolumeMultiplier: 'Float';
|
|
426
|
+
PitchMultiplier: 'Float';
|
|
427
|
+
InnerRadius: 'Float';
|
|
428
|
+
MaxDistance: 'Float';
|
|
429
|
+
bSpatialization: 'Boolean';
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
Component_WireGraph_SetInventoryEntry: {
|
|
433
|
+
version: 1;
|
|
434
|
+
brick_indices?: number[];
|
|
435
|
+
properties: {
|
|
436
|
+
Slot: 'Integer';
|
|
437
|
+
EntryPlan: 'BRInventoryEntryPlan';
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
BrickComponentType_Internal_CharacterZoneEvent_Entered: {
|
|
441
|
+
version: 1;
|
|
442
|
+
brick_indices?: number[];
|
|
443
|
+
properties: {};
|
|
444
|
+
};
|
|
445
|
+
BrickComponentType_Internal_CharacterZoneEvent_Left: {
|
|
446
|
+
version: 1;
|
|
447
|
+
brick_indices?: number[];
|
|
448
|
+
properties: {};
|
|
449
|
+
};
|
|
450
|
+
BrickComponentType_Internal_ReadBrickGrid: {
|
|
451
|
+
version: 1;
|
|
452
|
+
brick_indices?: number[];
|
|
453
|
+
properties: {};
|
|
454
|
+
};
|
|
455
|
+
BrickComponentType_Internal_TeleportDestination: {
|
|
456
|
+
version: 1;
|
|
457
|
+
brick_indices?: number[];
|
|
458
|
+
properties: {};
|
|
459
|
+
};
|
|
460
|
+
BrickComponentType_Internal_ZoneEvent_BrickChanged: {
|
|
461
|
+
version: 1;
|
|
462
|
+
brick_indices?: number[];
|
|
463
|
+
properties: {};
|
|
464
|
+
};
|
|
465
|
+
BrickComponentType_Internal_ZoneEvent_BrickRemoved: {
|
|
466
|
+
version: 1;
|
|
467
|
+
brick_indices?: number[];
|
|
468
|
+
properties: {};
|
|
469
|
+
};
|
|
470
|
+
BrickComponentType_WireGraphPseudo_BufferSeconds: {
|
|
471
|
+
version: 1;
|
|
472
|
+
brick_indices?: number[];
|
|
473
|
+
properties: {
|
|
474
|
+
SecondsToWait: 'Float';
|
|
475
|
+
ZeroSecondsToWait: 'Float';
|
|
476
|
+
CurrentTime: 'Float';
|
|
477
|
+
Input: 'WireGraphVariant';
|
|
478
|
+
Output: 'WireGraphVariant';
|
|
479
|
+
Buffered: 'WireGraphVariant';
|
|
480
|
+
Queued: 'WireGraphVariant';
|
|
481
|
+
bHasQueued: 'Boolean';
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
BrickComponentType_WireGraphPseudo_BufferTicks: {
|
|
485
|
+
version: 1;
|
|
486
|
+
brick_indices?: number[];
|
|
487
|
+
properties: {
|
|
488
|
+
TicksToWait: 'Integer';
|
|
489
|
+
ZeroTicksToWait: 'Integer';
|
|
490
|
+
CurrentTicks: 'Integer';
|
|
491
|
+
Input: 'WireGraphVariant';
|
|
492
|
+
Output: 'WireGraphVariant';
|
|
493
|
+
Buffered: 'WireGraphVariant';
|
|
494
|
+
Queued: 'WireGraphVariant';
|
|
495
|
+
bHasQueued: 'Boolean';
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
BrickComponentType_WireGraphPseudo_Var: {
|
|
499
|
+
version: 1;
|
|
500
|
+
brick_indices?: number[];
|
|
501
|
+
properties: {
|
|
502
|
+
Value: 'WireGraphVariant';
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
BrickComponentType_WireGraph_Exec_Branch: {
|
|
506
|
+
version: 1;
|
|
507
|
+
brick_indices?: number[];
|
|
508
|
+
properties: {};
|
|
509
|
+
};
|
|
510
|
+
BrickComponentType_WireGraph_Exec_Character_SetTempPermission: {
|
|
511
|
+
version: 1;
|
|
512
|
+
brick_indices?: number[];
|
|
513
|
+
properties: {
|
|
514
|
+
PermissionTagStr: 'String';
|
|
515
|
+
bPermissionEnable: 'Boolean';
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
BrickComponentType_WireGraph_Exec_Character_ShowHint: {
|
|
519
|
+
version: 1;
|
|
520
|
+
brick_indices?: number[];
|
|
521
|
+
properties: {
|
|
522
|
+
HintTitle: 'String';
|
|
523
|
+
HintText: 'String';
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
BrickComponentType_WireGraph_Exec_Entity_AddLocationRotation: {
|
|
527
|
+
version: 1;
|
|
528
|
+
brick_indices?: number[];
|
|
529
|
+
properties: {
|
|
530
|
+
Vector: 'Vector3d';
|
|
531
|
+
Rotation: 'Rotator3d';
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
BrickComponentType_WireGraph_Exec_Entity_AddVelocity: {
|
|
535
|
+
version: 1;
|
|
536
|
+
brick_indices?: number[];
|
|
537
|
+
properties: {
|
|
538
|
+
Vector: 'Vector3d';
|
|
539
|
+
Rotation: 'Vector3d';
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
BrickComponentType_WireGraph_Exec_Entity_RelativeTeleport: {
|
|
543
|
+
version: 1;
|
|
544
|
+
brick_indices?: number[];
|
|
545
|
+
properties: {};
|
|
546
|
+
};
|
|
547
|
+
BrickComponentType_WireGraph_Exec_Entity_SetGravityDirection: {
|
|
548
|
+
version: 1;
|
|
549
|
+
brick_indices?: number[];
|
|
550
|
+
properties: {
|
|
551
|
+
Rotation: 'Rotator3d';
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
BrickComponentType_WireGraph_Exec_Entity_SetLocation: {
|
|
555
|
+
version: 1;
|
|
556
|
+
brick_indices?: number[];
|
|
557
|
+
properties: {
|
|
558
|
+
Vector: 'Vector3d';
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
BrickComponentType_WireGraph_Exec_Entity_SetLocationRotation: {
|
|
562
|
+
version: 1;
|
|
563
|
+
brick_indices?: number[];
|
|
564
|
+
properties: {
|
|
565
|
+
Vector: 'Vector3d';
|
|
566
|
+
Rotation: 'Rotator3d';
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
BrickComponentType_WireGraph_Exec_Entity_SetRotation: {
|
|
570
|
+
version: 1;
|
|
571
|
+
brick_indices?: number[];
|
|
572
|
+
properties: {
|
|
573
|
+
Rotation: 'Rotator3d';
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
BrickComponentType_WireGraph_Exec_Entity_SetVelocity: {
|
|
577
|
+
version: 1;
|
|
578
|
+
brick_indices?: number[];
|
|
579
|
+
properties: {
|
|
580
|
+
Vector: 'Vector3d';
|
|
581
|
+
Rotation: 'Vector3d';
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
BrickComponentType_WireGraph_Exec_Entity_Teleport: {
|
|
585
|
+
version: 1;
|
|
586
|
+
brick_indices?: number[];
|
|
587
|
+
properties: {};
|
|
588
|
+
};
|
|
589
|
+
BrickComponentType_WireGraph_Exec_Union: {
|
|
590
|
+
version: 1;
|
|
591
|
+
brick_indices?: number[];
|
|
592
|
+
properties: {};
|
|
593
|
+
};
|
|
594
|
+
BrickComponentType_WireGraph_Exec_Var_Get: {
|
|
595
|
+
version: 1;
|
|
596
|
+
brick_indices?: number[];
|
|
597
|
+
properties: {
|
|
598
|
+
Value: 'WireGraphVariant';
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
BrickComponentType_WireGraph_Exec_Var_Increment: {
|
|
602
|
+
version: 1;
|
|
603
|
+
brick_indices?: number[];
|
|
604
|
+
properties: {
|
|
605
|
+
Value: 'WireGraphVariant';
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
BrickComponentType_WireGraph_Exec_Var_Set: {
|
|
609
|
+
version: 1;
|
|
610
|
+
brick_indices?: number[];
|
|
611
|
+
properties: {
|
|
612
|
+
Value: 'WireGraphVariant';
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
BrickComponentType_WireGraph_Expr_BitwiseAND: {
|
|
616
|
+
version: 1;
|
|
617
|
+
brick_indices?: number[];
|
|
618
|
+
properties: {
|
|
619
|
+
InputA: 'Integer64';
|
|
620
|
+
InputB: 'Integer64';
|
|
621
|
+
};
|
|
622
|
+
};
|
|
623
|
+
BrickComponentType_WireGraph_Expr_BitwiseNAND: {
|
|
624
|
+
version: 1;
|
|
625
|
+
brick_indices?: number[];
|
|
626
|
+
properties: {
|
|
627
|
+
InputA: 'Integer64';
|
|
628
|
+
InputB: 'Integer64';
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
BrickComponentType_WireGraph_Expr_BitwiseNOR: {
|
|
632
|
+
version: 1;
|
|
633
|
+
brick_indices?: number[];
|
|
634
|
+
properties: {
|
|
635
|
+
InputA: 'Integer64';
|
|
636
|
+
InputB: 'Integer64';
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
BrickComponentType_WireGraph_Expr_BitwiseNOT: {
|
|
640
|
+
version: 1;
|
|
641
|
+
brick_indices?: number[];
|
|
642
|
+
properties: {
|
|
643
|
+
Input: 'Integer64';
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
BrickComponentType_WireGraph_Expr_BitwiseOR: {
|
|
647
|
+
version: 1;
|
|
648
|
+
brick_indices?: number[];
|
|
649
|
+
properties: {
|
|
650
|
+
InputA: 'Integer64';
|
|
651
|
+
InputB: 'Integer64';
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
BrickComponentType_WireGraph_Expr_BitwiseShiftLeft: {
|
|
655
|
+
version: 1;
|
|
656
|
+
brick_indices?: number[];
|
|
657
|
+
properties: {
|
|
658
|
+
InputA: 'Integer64';
|
|
659
|
+
InputB: 'Integer64';
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
BrickComponentType_WireGraph_Expr_BitwiseShiftRight: {
|
|
663
|
+
version: 1;
|
|
664
|
+
brick_indices?: number[];
|
|
665
|
+
properties: {
|
|
666
|
+
InputA: 'Integer64';
|
|
667
|
+
InputB: 'Integer64';
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
BrickComponentType_WireGraph_Expr_BitwiseXOR: {
|
|
671
|
+
version: 1;
|
|
672
|
+
brick_indices?: number[];
|
|
673
|
+
properties: {
|
|
674
|
+
InputA: 'Integer64';
|
|
675
|
+
InputB: 'Integer64';
|
|
676
|
+
};
|
|
677
|
+
};
|
|
678
|
+
BrickComponentType_WireGraph_Expr_Ceil: {
|
|
679
|
+
version: 1;
|
|
680
|
+
brick_indices?: number[];
|
|
681
|
+
properties: {
|
|
682
|
+
Input: 'Double';
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
BrickComponentType_WireGraph_Expr_CompareEqual: {
|
|
686
|
+
version: 1;
|
|
687
|
+
brick_indices?: number[];
|
|
688
|
+
properties: {
|
|
689
|
+
InputA: 'WireGraphVariant';
|
|
690
|
+
InputB: 'WireGraphVariant';
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
BrickComponentType_WireGraph_Expr_CompareGreater: {
|
|
694
|
+
version: 1;
|
|
695
|
+
brick_indices?: number[];
|
|
696
|
+
properties: {
|
|
697
|
+
InputA: 'WireGraphPrimMathVariant';
|
|
698
|
+
InputB: 'WireGraphPrimMathVariant';
|
|
699
|
+
};
|
|
700
|
+
};
|
|
701
|
+
BrickComponentType_WireGraph_Expr_CompareGreaterOrEqual: {
|
|
702
|
+
version: 1;
|
|
703
|
+
brick_indices?: number[];
|
|
704
|
+
properties: {
|
|
705
|
+
InputA: 'WireGraphPrimMathVariant';
|
|
706
|
+
InputB: 'WireGraphPrimMathVariant';
|
|
707
|
+
};
|
|
708
|
+
};
|
|
709
|
+
BrickComponentType_WireGraph_Expr_CompareLess: {
|
|
710
|
+
version: 1;
|
|
711
|
+
brick_indices?: number[];
|
|
712
|
+
properties: {
|
|
713
|
+
InputA: 'WireGraphPrimMathVariant';
|
|
714
|
+
InputB: 'WireGraphPrimMathVariant';
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
BrickComponentType_WireGraph_Expr_CompareLessOrEqual: {
|
|
718
|
+
version: 1;
|
|
719
|
+
brick_indices?: number[];
|
|
720
|
+
properties: {
|
|
721
|
+
InputA: 'WireGraphPrimMathVariant';
|
|
722
|
+
InputB: 'WireGraphPrimMathVariant';
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
BrickComponentType_WireGraph_Expr_CompareNotEqual: {
|
|
726
|
+
version: 1;
|
|
727
|
+
brick_indices?: number[];
|
|
728
|
+
properties: {
|
|
729
|
+
InputA: 'WireGraphVariant';
|
|
730
|
+
InputB: 'WireGraphVariant';
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
BrickComponentType_WireGraph_Expr_Floor: {
|
|
734
|
+
version: 1;
|
|
735
|
+
brick_indices?: number[];
|
|
736
|
+
properties: {
|
|
737
|
+
Input: 'Double';
|
|
738
|
+
};
|
|
739
|
+
};
|
|
740
|
+
BrickComponentType_WireGraph_Expr_LogicalAND: {
|
|
741
|
+
version: 1;
|
|
742
|
+
brick_indices?: number[];
|
|
743
|
+
properties: {
|
|
744
|
+
bInputA: 'Boolean';
|
|
745
|
+
bInputB: 'Boolean';
|
|
746
|
+
};
|
|
747
|
+
};
|
|
748
|
+
BrickComponentType_WireGraph_Expr_LogicalNAND: {
|
|
749
|
+
version: 1;
|
|
750
|
+
brick_indices?: number[];
|
|
751
|
+
properties: {
|
|
752
|
+
bInputA: 'Boolean';
|
|
753
|
+
bInputB: 'Boolean';
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
BrickComponentType_WireGraph_Expr_LogicalNOR: {
|
|
757
|
+
version: 1;
|
|
758
|
+
brick_indices?: number[];
|
|
759
|
+
properties: {
|
|
760
|
+
bInputA: 'Boolean';
|
|
761
|
+
bInputB: 'Boolean';
|
|
762
|
+
};
|
|
763
|
+
};
|
|
764
|
+
BrickComponentType_WireGraph_Expr_LogicalNOT: {
|
|
765
|
+
version: 1;
|
|
766
|
+
brick_indices?: number[];
|
|
767
|
+
properties: {
|
|
768
|
+
bInput: 'Boolean';
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
BrickComponentType_WireGraph_Expr_LogicalOR: {
|
|
772
|
+
version: 1;
|
|
773
|
+
brick_indices?: number[];
|
|
774
|
+
properties: {
|
|
775
|
+
bInputA: 'Boolean';
|
|
776
|
+
bInputB: 'Boolean';
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
BrickComponentType_WireGraph_Expr_LogicalXOR: {
|
|
780
|
+
version: 1;
|
|
781
|
+
brick_indices?: number[];
|
|
782
|
+
properties: {
|
|
783
|
+
bInputA: 'Boolean';
|
|
784
|
+
bInputB: 'Boolean';
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
BrickComponentType_WireGraph_Expr_MathAdd: {
|
|
788
|
+
version: 1;
|
|
789
|
+
brick_indices?: number[];
|
|
790
|
+
properties: {
|
|
791
|
+
InputA: 'WireGraphPrimMathVariant';
|
|
792
|
+
InputB: 'WireGraphPrimMathVariant';
|
|
793
|
+
};
|
|
794
|
+
};
|
|
795
|
+
BrickComponentType_WireGraph_Expr_MathBlend: {
|
|
796
|
+
version: 1;
|
|
797
|
+
brick_indices?: number[];
|
|
798
|
+
properties: {
|
|
799
|
+
Blend: 'Double';
|
|
800
|
+
InputA: 'WireGraphPrimMathVariant';
|
|
801
|
+
InputB: 'WireGraphPrimMathVariant';
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
BrickComponentType_WireGraph_Expr_MathDivide: {
|
|
805
|
+
version: 1;
|
|
806
|
+
brick_indices?: number[];
|
|
807
|
+
properties: {
|
|
808
|
+
InputA: 'WireGraphPrimMathVariant';
|
|
809
|
+
InputB: 'WireGraphPrimMathVariant';
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
BrickComponentType_WireGraph_Expr_MathModulo: {
|
|
813
|
+
version: 1;
|
|
814
|
+
brick_indices?: number[];
|
|
815
|
+
properties: {
|
|
816
|
+
InputA: 'WireGraphPrimMathVariant';
|
|
817
|
+
InputB: 'WireGraphPrimMathVariant';
|
|
818
|
+
};
|
|
819
|
+
};
|
|
820
|
+
BrickComponentType_WireGraph_Expr_MathModuloFloored: {
|
|
821
|
+
version: 1;
|
|
822
|
+
brick_indices?: number[];
|
|
823
|
+
properties: {
|
|
824
|
+
InputA: 'WireGraphPrimMathVariant';
|
|
825
|
+
InputB: 'WireGraphPrimMathVariant';
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
BrickComponentType_WireGraph_Expr_MathMultiply: {
|
|
829
|
+
version: 1;
|
|
830
|
+
brick_indices?: number[];
|
|
831
|
+
properties: {
|
|
832
|
+
InputA: 'WireGraphPrimMathVariant';
|
|
833
|
+
InputB: 'WireGraphPrimMathVariant';
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
BrickComponentType_WireGraph_Expr_MathSubtract: {
|
|
837
|
+
version: 1;
|
|
838
|
+
brick_indices?: number[];
|
|
839
|
+
properties: {
|
|
840
|
+
InputA: 'WireGraphPrimMathVariant';
|
|
841
|
+
InputB: 'WireGraphPrimMathVariant';
|
|
842
|
+
};
|
|
843
|
+
};
|
|
844
|
+
BrickComponentType_WireGraph_Fake_Gamemode_RoundEndEvent: {
|
|
845
|
+
version: 1;
|
|
846
|
+
brick_indices?: number[];
|
|
847
|
+
properties: {
|
|
848
|
+
RoundNumber: 'Integer';
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
BrickComponentType_WireGraph_Fake_Gamemode_RoundStartEvent: {
|
|
852
|
+
version: 1;
|
|
853
|
+
brick_indices?: number[];
|
|
854
|
+
properties: {
|
|
855
|
+
RoundNumber: 'Integer';
|
|
856
|
+
};
|
|
857
|
+
};
|
|
858
|
+
BrickComponent_WireGraph_Expr_EdgeDetector: {
|
|
859
|
+
version: 1;
|
|
860
|
+
brick_indices?: number[];
|
|
861
|
+
properties: {
|
|
862
|
+
Input: 'Double';
|
|
863
|
+
bPulseOnRisingEdge: 'Boolean';
|
|
864
|
+
bPulseOnFallingEdge: 'Boolean';
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
export interface DefinedComponents extends UnknownComponents, Partial<KnownComponents> {
|
|
869
|
+
}
|
|
870
|
+
export type Components<C extends DefinedComponents> = {
|
|
871
|
+
[T in keyof C]: {
|
|
872
|
+
[V in keyof C[T]['properties']]: UnrealTypeFromString<C[T]['properties'][V]>;
|
|
873
|
+
};
|
|
874
|
+
} & {
|
|
875
|
+
[component_name: string]: AppliedComponent;
|
|
876
|
+
};
|
|
877
|
+
export type Vector = [number, number, number];
|
|
878
|
+
export type WirePort = {
|
|
879
|
+
brick_index: number;
|
|
880
|
+
component: string;
|
|
881
|
+
port: string;
|
|
882
|
+
};
|
|
883
|
+
export type Wire = {
|
|
884
|
+
source: WirePort;
|
|
885
|
+
target: WirePort;
|
|
886
|
+
};
|
|
887
|
+
export interface BrickV1 {
|
|
888
|
+
asset_name_index: number;
|
|
889
|
+
size: Vector;
|
|
890
|
+
position: Vector;
|
|
891
|
+
direction: Direction;
|
|
892
|
+
rotation: Rotation;
|
|
893
|
+
collision: boolean;
|
|
894
|
+
visibility: boolean;
|
|
895
|
+
color: UnrealColor | number;
|
|
896
|
+
}
|
|
897
|
+
export interface BrickV2 extends BrickV1 {
|
|
898
|
+
material_index: number;
|
|
899
|
+
}
|
|
900
|
+
export interface BrickV3 extends BrickV2 {
|
|
901
|
+
owner_index: number;
|
|
902
|
+
}
|
|
903
|
+
export interface BrickV8 extends BrickV3 {
|
|
904
|
+
components: Components<DefinedComponents>;
|
|
905
|
+
}
|
|
906
|
+
export type BrickV9 = Modify<BrickV8, {
|
|
907
|
+
physical_index: number;
|
|
908
|
+
material_intensity: number;
|
|
909
|
+
color: ColorRgb | number;
|
|
910
|
+
}>;
|
|
911
|
+
export type BrickV10 = Modify<BrickV9, {
|
|
912
|
+
collision: Collision;
|
|
913
|
+
}>;
|
|
914
|
+
export interface BrsV1 {
|
|
915
|
+
version: 1;
|
|
916
|
+
map: string;
|
|
917
|
+
author: User;
|
|
918
|
+
description: string;
|
|
919
|
+
brick_count: number;
|
|
920
|
+
mods: string[];
|
|
921
|
+
brick_assets: string[];
|
|
922
|
+
colors: UnrealColor[];
|
|
923
|
+
bricks: BrickV1[];
|
|
924
|
+
}
|
|
925
|
+
export type BrsV2 = Modify<BrsV1, {
|
|
926
|
+
version: 2;
|
|
927
|
+
materials: string[];
|
|
928
|
+
bricks: BrickV2[];
|
|
929
|
+
}>;
|
|
930
|
+
export type BrsV3 = Modify<BrsV2, {
|
|
931
|
+
version: 3;
|
|
932
|
+
brick_owners: User[];
|
|
933
|
+
bricks: BrickV3[];
|
|
934
|
+
}>;
|
|
935
|
+
export type BrsV4 = Modify<BrsV3, {
|
|
936
|
+
version: 4;
|
|
937
|
+
save_time: Uint8Array;
|
|
938
|
+
}>;
|
|
939
|
+
export type BrsV8 = Modify<BrsV4, {
|
|
940
|
+
version: 8;
|
|
941
|
+
host: User;
|
|
942
|
+
brick_owners: LegacyOwner[];
|
|
943
|
+
preview?: Bytes;
|
|
944
|
+
game_version: number;
|
|
945
|
+
bricks: BrickV8[];
|
|
946
|
+
components: DefinedComponents;
|
|
947
|
+
}>;
|
|
948
|
+
export type BrsV9 = Modify<BrsV8, {
|
|
949
|
+
version: 9;
|
|
950
|
+
physical_materials: string[];
|
|
951
|
+
bricks: BrickV9[];
|
|
952
|
+
}>;
|
|
953
|
+
export type BrsV10 = Modify<BrsV9, {
|
|
954
|
+
version: 10;
|
|
955
|
+
bricks: BrickV10[];
|
|
956
|
+
}>;
|
|
957
|
+
export type BrsV14 = Modify<BrsV10, {
|
|
958
|
+
version: 14;
|
|
959
|
+
wires: Wire[];
|
|
960
|
+
}>;
|
|
961
|
+
export type ReadSaveObject = BrsV1 | BrsV2 | BrsV3 | BrsV4 | BrsV8 | BrsV9 | BrsV10 | BrsV14;
|
|
962
|
+
export interface Brick {
|
|
963
|
+
asset_name_index?: number;
|
|
964
|
+
size: Vector;
|
|
965
|
+
position: Vector;
|
|
966
|
+
direction?: Direction;
|
|
967
|
+
rotation?: Rotation;
|
|
968
|
+
collision?: boolean | Partial<Collision>;
|
|
969
|
+
visibility?: boolean;
|
|
970
|
+
material_index?: number;
|
|
971
|
+
physical_index?: number;
|
|
972
|
+
material_intensity?: number;
|
|
973
|
+
color?: ColorRgb | number | UnrealColor | number[];
|
|
974
|
+
owner_index?: number;
|
|
975
|
+
components?: Components<DefinedComponents>;
|
|
976
|
+
}
|
|
977
|
+
export interface WriteSaveObject {
|
|
978
|
+
game_version?: number;
|
|
979
|
+
map?: string;
|
|
980
|
+
description?: string;
|
|
981
|
+
author?: Partial<User>;
|
|
982
|
+
host?: Partial<User>;
|
|
983
|
+
mods?: string[];
|
|
984
|
+
brick_assets?: string[];
|
|
985
|
+
colors?: UnrealColor[];
|
|
986
|
+
materials?: string[];
|
|
987
|
+
brick_owners?: Partial<Owner>[];
|
|
988
|
+
physical_materials?: string[];
|
|
989
|
+
preview?: Bytes;
|
|
990
|
+
bricks: Brick[];
|
|
991
|
+
save_time?: ArrayLike<number>;
|
|
992
|
+
components?: DefinedComponents;
|
|
993
|
+
wires?: Wire[];
|
|
994
|
+
}
|
|
995
|
+
export interface ReadOptions {
|
|
996
|
+
bricks?: boolean;
|
|
997
|
+
preview?: boolean;
|
|
998
|
+
}
|
|
999
|
+
export interface WriteOptions {
|
|
1000
|
+
compress?: boolean;
|
|
1001
|
+
}
|
|
1002
|
+
export {};
|
|
1003
|
+
//# sourceMappingURL=types.d.ts.map
|