-
Notifications
You must be signed in to change notification settings - Fork 12
/
AbstractKismet.cs
1750 lines (1673 loc) · 76.7 KB
/
AbstractKismet.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
namespace KismetAnalyzer.AbstractKismet;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Text.RegularExpressions;
using UAssetAPI;
using UAssetAPI.UnrealTypes;
using UAssetAPI.ExportTypes;
using UAssetAPI.CustomVersions;
using UAssetAPI.Kismet.Bytecode;
using UAssetAPI.Kismet.Bytecode.Expressions;
public class AbstractKismetBuilder {
private UAsset Asset;
private Dictionary<(string, uint), string> Labels = new Dictionary<(string, uint), string>();
private HashSet<string> LabelSet = new HashSet<string>();
private Dictionary<KismetExpression, AbstractKismetExpression> JumpOffsetInstructions = new Dictionary<KismetExpression, AbstractKismetExpression>();
private static Random random = new Random();
private static string RandomLabel() {
const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
return new string(Enumerable.Repeat(chars, 5)
.Select(s => s[random.Next(s.Length)]).ToArray());
}
public AbstractKismetBuilder(UAsset asset) {
Asset = asset;
}
public string? GetLabel((string, uint) location) {
return Labels.GetValueOrDefault(location);
}
public string GetLabelOrInvalid((string, uint) location) {
string? label = GetLabel(location);
if (label != null) {
return label;
}
return $"{location.Item1} {location.Item2} !INVALID!";
}
public void CreateLabel((string, uint) location, KismetExpression? ex = null) {
string label;
if (Labels.ContainsKey(location)) {
label = Labels[location];
} else {
do {
label = RandomLabel();
} while (LabelSet.Contains(label));
Labels.Add(location, label);
LabelSet.Add(label);
}
switch (ex) {
case EX_IntConst e:
JumpOffsetInstructions.Add(ex, new AEX_Jump_IntConst(label));
break;
case EX_SkipOffsetConst e:
JumpOffsetInstructions.Add(ex, new AEX_Jump_SkipOffsetConst(label));
break;
}
}
public string FromKismetPropertyPointer(KismetPropertyPointer pointer) {
if (Asset.GetCustomVersion<FReleaseObjectVersion>() >= FReleaseObjectVersion.FFieldPathOwnerSerialization) {
return $"{FromPackageIndex(pointer.New.ResolvedOwner)}[{String.Join(",", pointer.New.Path.Select(p => p.ToString().Replace(",", "\\,")))}]";
} else {
return FromPackageIndex(pointer.Old);
}
}
public string FromPackageIndex(FPackageIndex package) {
return $"PackageIndex({(package == null ? "null" : package.Index)})";
}
public static AbstractKismet Build(UAsset asset) {
var builder = new AbstractKismetBuilder(asset);
return builder.Build();
}
private AbstractKismet Build() {
// TODO: more robust ubergraph detection
var ubergraph = (FunctionExport?) Asset.Exports.FirstOrDefault(e => e is FunctionExport && e.ObjectName.ToString().StartsWith("ExecuteUbergraph_"));
foreach (var export in Asset.Exports) {
if (export is FunctionExport fn) {
foreach (var inst in fn.ScriptBytecode) {
KismetAnalyzer.Kismet.Walk(Asset, inst, ex => {
switch (ex) {
case EX_LocalFinalFunction e:
if (ubergraph != null && e.StackNode.ToExport(Asset) == ubergraph && e.Parameters.Length == 1 && e.Parameters[0] is EX_IntConst offset)
this.CreateLabel((ubergraph.ObjectName.ToString(), (uint) offset.Value), offset);
break;
case EX_Jump e:
this.CreateLabel((fn.ObjectName.ToString(), e.CodeOffset));
break;
case EX_JumpIfNot e:
this.CreateLabel((fn.ObjectName.ToString(), e.CodeOffset));
break;
case EX_PushExecutionFlow e:
this.CreateLabel((fn.ObjectName.ToString(), e.PushingAddress));
break;
case EX_StructConst e:
if (e.Struct.IsImport() && ubergraph != null) {
var str = e.Struct.ToImport(Asset);
if (str.ClassPackage.ToString() == "/Script/CoreUObject" && str.ClassName.ToString() == "ScriptStruct" && str.ObjectName.ToString() == "LatentActionInfo") {
// TODO: confirm struct points to ubergraph
switch (e.Value[0]) {
case EX_SkipOffsetConst latentOffset:
this.CreateLabel((fn.ObjectName.ToString(), latentOffset.Value), latentOffset);
break;
case EX_IntConst latentOffset:
if (latentOffset.Value != -1)
this.CreateLabel((fn.ObjectName.ToString(), (uint) latentOffset.Value), latentOffset);
break;
}
}
}
break;
}
});
}
}
}
var functions = new Dictionary<string, IEnumerable<AbstractKismetExpression>>();
foreach (var export in Asset.Exports) {
if (export is FunctionExport fn) {
uint offset = 0;
var inst = fn.ScriptBytecode.Select(e => {
var aex = this.FromKismetExpression(fn, e);
aex.Label = this.GetLabel((fn.ObjectName.ToString(), offset));
offset += Kismet.GetSize(Asset, e);
return aex;
});
functions.Add(fn.ObjectName.ToString(), inst);
}
}
return new AbstractKismet() {
Functions = functions,
};
}
public AbstractKismetExpression FromKismetExpression(FunctionExport fn, KismetExpression ex) {
if (JumpOffsetInstructions.TryGetValue(ex, out var aex)) {
return aex;
}
switch (ex) {
case EX_AddMulticastDelegate e:
return new AEX_AddMulticastDelegate(this, fn, e);
case EX_ArrayConst e:
return new AEX_ArrayConst(this, fn, e);
case EX_ArrayGetByRef e:
return new AEX_ArrayGetByRef(this, fn, e);
case EX_Assert e:
return new AEX_Assert(this, fn, e);
case EX_BindDelegate e:
return new AEX_BindDelegate(this, fn, e);
case EX_Breakpoint e:
return new AEX_Breakpoint(this, fn, e);
case EX_ByteConst e:
return new AEX_ByteConst(this, fn, e);
case EX_CallMath e:
return new AEX_CallMath(this, fn, e);
case EX_CallMulticastDelegate e:
return new AEX_CallMulticastDelegate(this, fn, e);
case EX_ClassContext e:
return new AEX_ClassContext(this, fn, e);
case EX_ClassSparseDataVariable e:
return new AEX_ClassSparseDataVariable(this, fn, e);
case EX_ClearMulticastDelegate e:
return new AEX_ClearMulticastDelegate(this, fn, e);
case EX_ComputedJump e:
return new AEX_ComputedJump(this, fn, e);
case EX_Context_FailSilent e:
return new AEX_Context_FailSilent(this, fn, e);
case EX_Context e:
return new AEX_Context(this, fn, e);
case EX_CrossInterfaceCast e:
return new AEX_CrossInterfaceCast(this, fn, e);
case EX_DefaultVariable e:
return new AEX_DefaultVariable(this, fn, e);
case EX_DeprecatedOp4A e:
return new AEX_DeprecatedOp4A(this, fn, e);
case EX_DynamicCast e:
return new AEX_DynamicCast(this, fn, e);
case EX_EndArray e:
return new AEX_EndArray(this, fn, e);
case EX_EndArrayConst e:
return new AEX_EndArrayConst(this, fn, e);
case EX_EndFunctionParms e:
return new AEX_EndFunctionParms(this, fn, e);
case EX_EndMap e:
return new AEX_EndMap(this, fn, e);
case EX_EndMapConst e:
return new AEX_EndMapConst(this, fn, e);
case EX_EndOfScript e:
return new AEX_EndOfScript(this, fn, e);
case EX_EndParmValue e:
return new AEX_EndParmValue(this, fn, e);
case EX_EndSet e:
return new AEX_EndSet(this, fn, e);
case EX_EndSetConst e:
return new AEX_EndSetConst(this, fn, e);
case EX_EndStructConst e:
return new AEX_EndStructConst(this, fn, e);
case EX_False e:
return new AEX_False(this, fn, e);
case EX_FieldPathConst e:
return new AEX_FieldPathConst(this, fn, e);
case EX_LocalFinalFunction e:
return new AEX_LocalFinalFunction(this, fn, e);
case EX_FinalFunction e:
return new AEX_FinalFunction(this, fn, e);
case EX_FloatConst e:
return new AEX_FloatConst(this, fn, e);
case EX_DoubleConst e:
return new AEX_DoubleConst(this, fn, e);
case EX_InstanceDelegate e:
return new AEX_InstanceDelegate(this, fn, e);
case EX_InstanceVariable e:
return new AEX_InstanceVariable(this, fn, e);
case EX_InstrumentationEvent e:
return new AEX_InstrumentationEvent(this, fn, e);
case EX_Int64Const e:
return new AEX_Int64Const(this, fn, e);
case EX_IntConst e:
return new AEX_IntConst(this, fn, e);
case EX_IntConstByte e:
return new AEX_IntConstByte(this, fn, e);
case EX_IntOne e:
return new AEX_IntOne(this, fn, e);
case EX_IntZero e:
return new AEX_IntZero(this, fn, e);
case EX_InterfaceContext e:
return new AEX_InterfaceContext(this, fn, e);
case EX_InterfaceToObjCast e:
return new AEX_InterfaceToObjCast(this, fn, e);
case EX_Jump e:
return new AEX_Jump(this, fn, e);
case EX_JumpIfNot e:
return new AEX_JumpIfNot(this, fn, e);
case EX_Let e:
return new AEX_Let(this, fn, e);
case EX_LetBool e:
return new AEX_LetBool(this, fn, e);
case EX_LetDelegate e:
return new AEX_LetDelegate(this, fn, e);
case EX_LetMulticastDelegate e:
return new AEX_LetMulticastDelegate(this, fn, e);
case EX_LetObj e:
return new AEX_LetObj(this, fn, e);
case EX_LetValueOnPersistentFrame e:
return new AEX_LetValueOnPersistentFrame(this, fn, e);
case EX_LetWeakObjPtr e:
return new AEX_LetWeakObjPtr(this, fn, e);
case EX_LocalOutVariable e:
return new AEX_LocalOutVariable(this, fn, e);
case EX_LocalVariable e:
return new AEX_LocalVariable(this, fn, e);
case EX_LocalVirtualFunction e:
return new AEX_LocalVirtualFunction(this, fn, e);
case EX_MapConst e:
return new AEX_MapConst(this, fn, e);
case EX_MetaCast e:
return new AEX_MetaCast(this, fn, e);
case EX_NameConst e:
return new AEX_NameConst(this, fn, e);
case EX_NoInterface e:
return new AEX_NoInterface(this, fn, e);
case EX_NoObject e:
return new AEX_NoObject(this, fn, e);
case EX_Nothing e:
return new AEX_Nothing(this, fn, e);
case EX_ObjToInterfaceCast e:
return new AEX_ObjToInterfaceCast(this, fn, e);
case EX_ObjectConst e:
return new AEX_ObjectConst(this, fn, e);
case EX_PopExecutionFlow e:
return new AEX_PopExecutionFlow(this, fn, e);
case EX_PopExecutionFlowIfNot e:
return new AEX_PopExecutionFlowIfNot(this, fn, e);
case EX_PrimitiveCast e:
return new AEX_PrimitiveCast(this, fn, e);
case EX_PropertyConst e:
return new AEX_PropertyConst(this, fn, e);
case EX_PushExecutionFlow e:
return new AEX_PushExecutionFlow(this, fn, e);
case EX_RemoveMulticastDelegate e:
return new AEX_RemoveMulticastDelegate(this, fn, e);
case EX_Return e:
return new AEX_Return(this, fn, e);
case EX_RotationConst e:
return new AEX_RotationConst(this, fn, e);
case EX_Self e:
return new AEX_Self(this, fn, e);
case EX_SetArray e:
return new AEX_SetArray(this, fn, e);
case EX_SetConst e:
return new AEX_SetConst(this, fn, e);
case EX_SetMap e:
return new AEX_SetMap(this, fn, e);
case EX_SetSet e:
return new AEX_SetSet(this, fn, e);
case EX_Skip e:
return new AEX_Skip(this, fn, e);
case EX_SkipOffsetConst e:
return new AEX_SkipOffsetConst(this, fn, e);
case EX_SoftObjectConst e:
return new AEX_SoftObjectConst(this, fn, e);
case EX_StringConst e:
return new AEX_StringConst(this, fn, e);
case EX_StructConst e:
return new AEX_StructConst(this, fn, e);
case EX_StructMemberContext e:
return new AEX_StructMemberContext(this, fn, e);
case EX_SwitchValue e:
return new AEX_SwitchValue(this, fn, e);
case EX_TextConst e:
return new AEX_TextConst(this, fn, e);
case EX_Tracepoint e:
return new AEX_Tracepoint(this, fn, e);
case EX_TransformConst e:
return new AEX_TransformConst(this, fn, e);
case EX_True e:
return new AEX_True(this, fn, e);
case EX_UInt64Const e:
return new AEX_UInt64Const(this, fn, e);
case EX_UnicodeStringConst e:
return new AEX_UnicodeStringConst(this, fn, e);
case EX_VectorConst e:
return new AEX_VectorConst(this, fn, e);
case EX_VirtualFunction e:
return new AEX_VirtualFunction(this, fn, e);
case EX_WireTracepoint e:
return new AEX_WireTracepoint(this, fn, e);
default:
throw new NotImplementedException(ex.ToString());
}
}
}
public class KismetBuilder {
private UAsset Asset;
private List<(string, Action<uint>)> LabelsToResolve = new List<(string, Action<uint>)>();
public KismetBuilder(UAsset asset) {
Asset = asset;
}
public FName ToFName(String name) {
return FName.FromString(Asset, name);
}
static Regex RxPackageIndex = new Regex(@"^PackageIndex\(([^)]+)\)$", RegexOptions.Compiled);
public FPackageIndex? ToPackageIndex(String packageIndex) {
var match = RxPackageIndex.Match(packageIndex).Groups[1].Value;
if (match == "null") return null;
return FPackageIndex.FromRawIndex(Int32.Parse(match));
}
static Regex RxKismetPropertyPointer = new Regex(@"^PackageIndex\((-?\d+)\)\[(.*)\]$", RegexOptions.Compiled);
public KismetPropertyPointer ToKismetPropertyPointer(String pointer) {
if (Asset.GetCustomVersion<FReleaseObjectVersion>() >= FReleaseObjectVersion.FFieldPathOwnerSerialization) {
var match = RxKismetPropertyPointer.Match(pointer);
var owner = FPackageIndex.FromRawIndex(Int32.Parse(match.Groups[1].Value));
// TODO handle backslash escaped ,
var path = match.Groups[2].Value.Split(',', StringSplitOptions.RemoveEmptyEntries).Select(n => ToFName(n)).ToArray();
return new KismetPropertyPointer(new FFieldPath(path, owner));
} else {
return new KismetPropertyPointer(ToPackageIndex(pointer));
}
}
public void ResolveLabel(string label, Action<uint> cb) {
LabelsToResolve.Add((label, cb));
}
public void Build(AbstractKismet ak) {
var functionExports = new Dictionary<String, FunctionExport>();
var ubergraph = (FunctionExport?) Asset.Exports.FirstOrDefault(e => e is FunctionExport && e.ObjectName.ToString().StartsWith("ExecuteUbergraph_"));
foreach (var export in Asset.Exports) {
if (export is FunctionExport fn) {
functionExports.Add(fn.ObjectName.ToString(), fn);
}
}
var labels = new Dictionary<string, uint>();
foreach (var fnName in functionExports.Keys.Union(ak.Functions.Keys)) {
var fnExport = functionExports[fnName];
var fn = ak.Functions[fnName];
uint offset = 0;
uint offsetWalk = 0;
fnExport.ScriptBytecode = fn.Select(ae => {
if (ae.Label != null) {
labels.Add(ae.Label, offset);
}
var ex = ae.ToKismetExpression(this);
offset += Kismet.GetSize(Asset, ex);
Kismet.Walk(Asset, ref offsetWalk, ex, (ex, offset) => {
// fix absolute offsets in EX_SwitchValue
if (ex is EX_SwitchValue e) {
offset += 7 + Kismet.GetSize(Asset, e.IndexTerm);
e.Cases = e.Cases.Select(c => {
offset += Kismet.GetSize(Asset, c.CaseIndexValueTerm);
offset += 4;
offset += Kismet.GetSize(Asset, c.CaseTerm);
return new FKismetSwitchCase(c.CaseIndexValueTerm, offset, c.CaseTerm);
}).ToArray();
offset += Kismet.GetSize(Asset, e.DefaultTerm);
e.EndGotoOffset = offset;
}
});
if (offset != offsetWalk) throw new Exception("offset mismatch");
return ex;
}).ToArray();
}
foreach (var cb in LabelsToResolve) {
cb.Item2(labels[cb.Item1]);
}
}
}
public class AbstractKismet {
public required Dictionary<string, IEnumerable<AbstractKismetExpression>> Functions { get; set; }
public static void Export(EngineVersion ueVersion, string assetInput, string jsonOutput) {
var asset = new UAsset(assetInput, ueVersion);
var abstractKismet = AbstractKismetBuilder.Build(asset);
using var stream = File.Create(jsonOutput);
JsonSerializer.Serialize(stream, abstractKismet, new JsonSerializerOptions { WriteIndented = true, });
}
public static void Import(EngineVersion ueVersion, string assetInput, string assetOutput, string jsonInput) {
var asset = new UAsset(assetInput, ueVersion);
using FileStream stream = File.OpenRead(jsonInput);
var restore = JsonSerializer.Deserialize<AbstractKismet>(stream)!;
var kb = new KismetBuilder(asset);
kb.Build(restore);
asset.Write(assetOutput);
}
}
public struct AbstractKismetPropertyPointer {
public string? Label { get; set; }
}
[JsonDerivedType(typeof(AEX_Jump_IntConst), typeDiscriminator: "Jump_IntConst")]
[JsonDerivedType(typeof(AEX_Jump_SkipOffsetConst), typeDiscriminator: "Jump_SkipOffsetConst")]
[JsonDerivedType(typeof(AEX_AddMulticastDelegate), typeDiscriminator: "EX_AddMulticastDelegate")]
[JsonDerivedType(typeof(AEX_ArrayConst), typeDiscriminator: "EX_ArrayConst")]
[JsonDerivedType(typeof(AEX_ArrayGetByRef), typeDiscriminator: "EX_ArrayGetByRef")]
[JsonDerivedType(typeof(AEX_Assert), typeDiscriminator: "EX_Assert")]
[JsonDerivedType(typeof(AEX_BindDelegate), typeDiscriminator: "EX_BindDelegate")]
[JsonDerivedType(typeof(AEX_Breakpoint), typeDiscriminator: "EX_Breakpoint")]
[JsonDerivedType(typeof(AEX_ByteConst), typeDiscriminator: "EX_ByteConst")]
[JsonDerivedType(typeof(AEX_CallMath), typeDiscriminator: "EX_CallMath")]
[JsonDerivedType(typeof(AEX_CallMulticastDelegate), typeDiscriminator: "EX_CallMulticastDelegate")]
[JsonDerivedType(typeof(AEX_ClassContext), typeDiscriminator: "EX_ClassContext")]
[JsonDerivedType(typeof(AEX_ClassSparseDataVariable), typeDiscriminator: "EX_ClassSparseDataVariable")]
[JsonDerivedType(typeof(AEX_ClearMulticastDelegate), typeDiscriminator: "EX_ClearMulticastDelegate")]
[JsonDerivedType(typeof(AEX_ComputedJump), typeDiscriminator: "EX_ComputedJump")]
[JsonDerivedType(typeof(AEX_Context), typeDiscriminator: "EX_Context")]
[JsonDerivedType(typeof(AEX_Context_FailSilent), typeDiscriminator: "EX_Context_FailSilent")]
[JsonDerivedType(typeof(AEX_CrossInterfaceCast), typeDiscriminator: "EX_CrossInterfaceCast")]
[JsonDerivedType(typeof(AEX_DefaultVariable), typeDiscriminator: "EX_DefaultVariable")]
[JsonDerivedType(typeof(AEX_DeprecatedOp4A), typeDiscriminator: "EX_DeprecatedOp4A")]
[JsonDerivedType(typeof(AEX_DynamicCast), typeDiscriminator: "EX_DynamicCast")]
[JsonDerivedType(typeof(AEX_EndArray), typeDiscriminator: "EX_EndArray")]
[JsonDerivedType(typeof(AEX_EndArrayConst), typeDiscriminator: "EX_EndArrayConst")]
[JsonDerivedType(typeof(AEX_EndFunctionParms), typeDiscriminator: "EX_EndFunctionParms")]
[JsonDerivedType(typeof(AEX_EndMap), typeDiscriminator: "EX_EndMap")]
[JsonDerivedType(typeof(AEX_EndMapConst), typeDiscriminator: "EX_EndMapConst")]
[JsonDerivedType(typeof(AEX_EndOfScript), typeDiscriminator: "EX_EndOfScript")]
[JsonDerivedType(typeof(AEX_EndParmValue), typeDiscriminator: "EX_EndParmValue")]
[JsonDerivedType(typeof(AEX_EndSet), typeDiscriminator: "EX_EndSet")]
[JsonDerivedType(typeof(AEX_EndSetConst), typeDiscriminator: "EX_EndSetConst")]
[JsonDerivedType(typeof(AEX_EndStructConst), typeDiscriminator: "EX_EndStructConst")]
[JsonDerivedType(typeof(AEX_False), typeDiscriminator: "EX_False")]
[JsonDerivedType(typeof(AEX_FieldPathConst), typeDiscriminator: "EX_FieldPathConst")]
[JsonDerivedType(typeof(AEX_FinalFunction), typeDiscriminator: "EX_FinalFunction")]
[JsonDerivedType(typeof(AEX_FloatConst), typeDiscriminator: "EX_FloatConst")]
[JsonDerivedType(typeof(AEX_DoubleConst), typeDiscriminator: "EX_DoubleConst")]
[JsonDerivedType(typeof(AEX_InstanceDelegate), typeDiscriminator: "EX_InstanceDelegate")]
[JsonDerivedType(typeof(AEX_InstanceVariable), typeDiscriminator: "EX_InstanceVariable")]
[JsonDerivedType(typeof(AEX_InstrumentationEvent), typeDiscriminator: "EX_InstrumentationEvent")]
[JsonDerivedType(typeof(AEX_Int64Const), typeDiscriminator: "EX_Int64Const")]
[JsonDerivedType(typeof(AEX_IntConst), typeDiscriminator: "EX_IntConst")]
[JsonDerivedType(typeof(AEX_IntConstByte), typeDiscriminator: "EX_IntConstByte")]
[JsonDerivedType(typeof(AEX_IntOne), typeDiscriminator: "EX_IntOne")]
[JsonDerivedType(typeof(AEX_IntZero), typeDiscriminator: "EX_IntZero")]
[JsonDerivedType(typeof(AEX_InterfaceContext), typeDiscriminator: "EX_InterfaceContext")]
[JsonDerivedType(typeof(AEX_InterfaceToObjCast), typeDiscriminator: "EX_InterfaceToObjCast")]
[JsonDerivedType(typeof(AEX_Jump), typeDiscriminator: "EX_Jump")]
[JsonDerivedType(typeof(AEX_JumpIfNot), typeDiscriminator: "EX_JumpIfNot")]
[JsonDerivedType(typeof(AEX_Let), typeDiscriminator: "EX_Let")]
[JsonDerivedType(typeof(AEX_LetBool), typeDiscriminator: "EX_LetBool")]
[JsonDerivedType(typeof(AEX_LetDelegate), typeDiscriminator: "EX_LetDelegate")]
[JsonDerivedType(typeof(AEX_LetMulticastDelegate), typeDiscriminator: "EX_LetMulticastDelegate")]
[JsonDerivedType(typeof(AEX_LetObj), typeDiscriminator: "EX_LetObj")]
[JsonDerivedType(typeof(AEX_LetValueOnPersistentFrame), typeDiscriminator: "EX_LetValueOnPersistentFrame")]
[JsonDerivedType(typeof(AEX_LetWeakObjPtr), typeDiscriminator: "EX_LetWeakObjPtr")]
[JsonDerivedType(typeof(AEX_LocalFinalFunction), typeDiscriminator: "EX_LocalFinalFunction")]
[JsonDerivedType(typeof(AEX_LocalOutVariable), typeDiscriminator: "EX_LocalOutVariable")]
[JsonDerivedType(typeof(AEX_LocalVariable), typeDiscriminator: "EX_LocalVariable")]
[JsonDerivedType(typeof(AEX_LocalVirtualFunction), typeDiscriminator: "EX_LocalVirtualFunction")]
[JsonDerivedType(typeof(AEX_MapConst), typeDiscriminator: "EX_MapConst")]
[JsonDerivedType(typeof(AEX_MetaCast), typeDiscriminator: "EX_MetaCast")]
[JsonDerivedType(typeof(AEX_NameConst), typeDiscriminator: "EX_NameConst")]
[JsonDerivedType(typeof(AEX_NoInterface), typeDiscriminator: "EX_NoInterface")]
[JsonDerivedType(typeof(AEX_NoObject), typeDiscriminator: "EX_NoObject")]
[JsonDerivedType(typeof(AEX_Nothing), typeDiscriminator: "EX_Nothing")]
[JsonDerivedType(typeof(AEX_ObjToInterfaceCast), typeDiscriminator: "EX_ObjToInterfaceCast")]
[JsonDerivedType(typeof(AEX_ObjectConst), typeDiscriminator: "EX_ObjectConst")]
[JsonDerivedType(typeof(AEX_PopExecutionFlow), typeDiscriminator: "EX_PopExecutionFlow")]
[JsonDerivedType(typeof(AEX_PopExecutionFlowIfNot), typeDiscriminator: "EX_PopExecutionFlowIfNot")]
[JsonDerivedType(typeof(AEX_PrimitiveCast), typeDiscriminator: "EX_PrimitiveCast")]
[JsonDerivedType(typeof(AEX_PropertyConst), typeDiscriminator: "EX_PropertyConst")]
[JsonDerivedType(typeof(AEX_PushExecutionFlow), typeDiscriminator: "EX_PushExecutionFlow")]
[JsonDerivedType(typeof(AEX_RemoveMulticastDelegate), typeDiscriminator: "EX_RemoveMulticastDelegate")]
[JsonDerivedType(typeof(AEX_Return), typeDiscriminator: "EX_Return")]
[JsonDerivedType(typeof(AEX_RotationConst), typeDiscriminator: "EX_RotationConst")]
[JsonDerivedType(typeof(AEX_Self), typeDiscriminator: "EX_Self")]
[JsonDerivedType(typeof(AEX_SetArray), typeDiscriminator: "EX_SetArray")]
[JsonDerivedType(typeof(AEX_SetConst), typeDiscriminator: "EX_SetConst")]
[JsonDerivedType(typeof(AEX_SetMap), typeDiscriminator: "EX_SetMap")]
[JsonDerivedType(typeof(AEX_SetSet), typeDiscriminator: "EX_SetSet")]
[JsonDerivedType(typeof(AEX_Skip), typeDiscriminator: "EX_Skip")]
[JsonDerivedType(typeof(AEX_SkipOffsetConst), typeDiscriminator: "EX_SkipOffsetConst")]
[JsonDerivedType(typeof(AEX_SoftObjectConst), typeDiscriminator: "EX_SoftObjectConst")]
[JsonDerivedType(typeof(AEX_StringConst), typeDiscriminator: "EX_StringConst")]
[JsonDerivedType(typeof(AEX_StructConst), typeDiscriminator: "EX_StructConst")]
[JsonDerivedType(typeof(AEX_StructMemberContext), typeDiscriminator: "EX_StructMemberContext")]
[JsonDerivedType(typeof(AEX_SwitchValue), typeDiscriminator: "EX_SwitchValue")]
[JsonDerivedType(typeof(AEX_TextConst), typeDiscriminator: "EX_TextConst")]
[JsonDerivedType(typeof(AEX_Tracepoint), typeDiscriminator: "EX_Tracepoint")]
[JsonDerivedType(typeof(AEX_TransformConst), typeDiscriminator: "EX_TransformConst")]
[JsonDerivedType(typeof(AEX_True), typeDiscriminator: "EX_True")]
[JsonDerivedType(typeof(AEX_UInt64Const), typeDiscriminator: "EX_UInt64Const")]
[JsonDerivedType(typeof(AEX_UnicodeStringConst), typeDiscriminator: "EX_UnicodeStringConst")]
[JsonDerivedType(typeof(AEX_VectorConst), typeDiscriminator: "EX_VectorConst")]
[JsonDerivedType(typeof(AEX_VirtualFunction), typeDiscriminator: "EX_VirtualFunction")]
[JsonDerivedType(typeof(AEX_WireTracepoint), typeDiscriminator: "EX_WireTracepoint")]
[JsonPolymorphic(TypeDiscriminatorPropertyName = "Ex")]
public abstract class AbstractKismetExpression {
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyOrderAttribute(-1)]
public string? Label { get; set; }
public abstract KismetExpression ToKismetExpression(KismetBuilder b);
}
public class AEX_Jump_IntConst : AbstractKismetExpression {
public string Jump { get; set; } = null!;
public AEX_Jump_IntConst() {}
public AEX_Jump_IntConst(string jump) {
Jump = jump;
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
var ex = new EX_IntConst();
b.ResolveLabel(Jump, offset => ex.Value = (int) offset);
return ex;
}
}
public class AEX_Jump_SkipOffsetConst : AbstractKismetExpression {
public string Jump { get; set; } = null!;
public AEX_Jump_SkipOffsetConst() {}
public AEX_Jump_SkipOffsetConst(string jump) {
Jump = jump;
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
var ex = new EX_SkipOffsetConst();
b.ResolveLabel(Jump, offset => ex.Value = offset);
return ex;
}
}
public class AEX_AddMulticastDelegate : AbstractKismetExpression {
public AbstractKismetExpression Delegate { get; set; } = null!;
public AbstractKismetExpression DelegateToAdd { get; set; } = null!;
public AEX_AddMulticastDelegate() {}
public AEX_AddMulticastDelegate(AbstractKismetBuilder ab, FunctionExport fn, EX_AddMulticastDelegate e) {
Delegate = ab.FromKismetExpression(fn, e.Delegate);
DelegateToAdd = ab.FromKismetExpression(fn, e.DelegateToAdd);
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
return new EX_AddMulticastDelegate() {
Delegate = Delegate.ToKismetExpression(b),
DelegateToAdd = DelegateToAdd.ToKismetExpression(b),
};
}
}
public class AEX_ArrayConst : AbstractKismetExpression {
public string InnerProperty { get; set; } = null!;
public IEnumerable<AbstractKismetExpression> Elements { get; set; } = null!;
public AEX_ArrayConst() {}
public AEX_ArrayConst(AbstractKismetBuilder ab, FunctionExport fn, EX_ArrayConst e) {
InnerProperty = ab.FromKismetPropertyPointer(e.InnerProperty);
Elements = e.Elements.Select(e => ab.FromKismetExpression(fn, e));
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
return new EX_ArrayConst() {
InnerProperty = b.ToKismetPropertyPointer(InnerProperty),
Elements = Elements.Select(e => e.ToKismetExpression(b)).ToArray(),
};
}
}
public class AEX_ArrayGetByRef : AbstractKismetExpression {
public AEX_ArrayGetByRef() {}
public AEX_ArrayGetByRef(AbstractKismetBuilder ab, FunctionExport fn, EX_ArrayGetByRef e) {
throw new NotImplementedException("EX_ArrayGetByRef");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_ArrayGetByRef");
return new EX_ArrayGetByRef() {
};
}
}
public class AEX_Assert : AbstractKismetExpression {
public AEX_Assert() {}
public AEX_Assert(AbstractKismetBuilder ab, FunctionExport fn, EX_Assert e) {
throw new NotImplementedException("EX_Assert");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_Assert");
return new EX_Assert() {
};
}
}
public class AEX_BindDelegate : AbstractKismetExpression {
public AEX_BindDelegate() {}
public string FunctionName { get; set; } = null!;
public AbstractKismetExpression Delegate { get; set; } = null!;
public AbstractKismetExpression ObjectTerm { get; set; } = null!;
public AEX_BindDelegate(AbstractKismetBuilder ab, FunctionExport fn, EX_BindDelegate e) {
FunctionName = e.FunctionName.ToString();
Delegate = ab.FromKismetExpression(fn, e.Delegate);
ObjectTerm = ab.FromKismetExpression(fn, e.ObjectTerm);
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
return new EX_BindDelegate() {
FunctionName = b.ToFName(FunctionName),
Delegate = Delegate.ToKismetExpression(b),
ObjectTerm = ObjectTerm.ToKismetExpression(b),
};
}
}
public class AEX_Breakpoint : AbstractKismetExpression {
public AEX_Breakpoint() {}
public AEX_Breakpoint(AbstractKismetBuilder ab, FunctionExport fn, EX_Breakpoint e) {
throw new NotImplementedException("EX_Breakpoint");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_Breakpoint");
return new EX_Breakpoint() {
};
}
}
public class AEX_ByteConst : AbstractKismetExpression {
public AEX_ByteConst() {}
public byte Value { get; set; }
public AEX_ByteConst(AbstractKismetBuilder ab, FunctionExport fn, EX_ByteConst e) {
Value = e.Value;
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
return new EX_ByteConst() {
Value = Value,
};
}
}
public class AEX_CallMath : AbstractKismetExpression {
public AEX_CallMath() {}
public string StackNode { get; set; } = null!;
public IEnumerable<AbstractKismetExpression> Parameters { get; set; } = null!;
public AEX_CallMath(AbstractKismetBuilder ab, FunctionExport fn, EX_CallMath e) {
StackNode = ab.FromPackageIndex(e.StackNode);
Parameters = e.Parameters.Select(e => ab.FromKismetExpression(fn, e));
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
return new EX_CallMath() {
StackNode = b.ToPackageIndex(StackNode),
Parameters = Parameters.Select(e => e.ToKismetExpression(b)).ToArray(),
};
}
}
public class AEX_CallMulticastDelegate : AbstractKismetExpression {
public AEX_CallMulticastDelegate() {}
public AEX_CallMulticastDelegate(AbstractKismetBuilder ab, FunctionExport fn, EX_CallMulticastDelegate e) {
throw new NotImplementedException("EX_CallMulticastDelegate");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_CallMulticastDelegate");
return new EX_CallMulticastDelegate() {
};
}
}
public class AEX_ClassContext : AbstractKismetExpression {
public AEX_ClassContext() {}
public AEX_ClassContext(AbstractKismetBuilder ab, FunctionExport fn, EX_ClassContext e) {
throw new NotImplementedException("EX_ClassContext");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_ClassContext");
return new EX_ClassContext() {
};
}
}
public class AEX_ClassSparseDataVariable : AbstractKismetExpression {
public AEX_ClassSparseDataVariable() {}
public AEX_ClassSparseDataVariable(AbstractKismetBuilder ab, FunctionExport fn, EX_ClassSparseDataVariable e) {
throw new NotImplementedException("EX_ClassSparseDataVariable");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_ClassSparseDataVariable");
return new EX_ClassSparseDataVariable() {
};
}
}
public class AEX_ClearMulticastDelegate : AbstractKismetExpression {
public AEX_ClearMulticastDelegate() {}
public AEX_ClearMulticastDelegate(AbstractKismetBuilder ab, FunctionExport fn, EX_ClearMulticastDelegate e) {
throw new NotImplementedException("EX_ClearMulticastDelegate");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_ClearMulticastDelegate");
return new EX_ClearMulticastDelegate() {
};
}
}
public class AEX_ComputedJump : AbstractKismetExpression {
public AEX_ComputedJump() {}
public AbstractKismetExpression CodeOffsetExpression { get; set; } = null!;
public AEX_ComputedJump(AbstractKismetBuilder ab, FunctionExport fn, EX_ComputedJump e) {
CodeOffsetExpression = ab.FromKismetExpression(fn, e.CodeOffsetExpression);
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
return new EX_ComputedJump() {
CodeOffsetExpression = CodeOffsetExpression.ToKismetExpression(b),
};
}
}
public class AEX_Context : AbstractKismetExpression {
public AEX_Context() {}
public AbstractKismetExpression ObjectExpression { get; set; } = null!;
public uint Offset { get; set; }
public string RValuePointer { get; set; } = null!;
public AbstractKismetExpression ContextExpression { get; set; } = null!;
public AEX_Context(AbstractKismetBuilder ab, FunctionExport fn, EX_Context e) {
ObjectExpression = ab.FromKismetExpression(fn, e.ObjectExpression);
Offset = e.Offset;
RValuePointer = ab.FromKismetPropertyPointer(e.RValuePointer);
ContextExpression = ab.FromKismetExpression(fn, e.ContextExpression);
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
return new EX_Context() {
ObjectExpression = ObjectExpression.ToKismetExpression(b),
Offset = Offset,
RValuePointer = b.ToKismetPropertyPointer(RValuePointer),
ContextExpression = ContextExpression.ToKismetExpression(b),
};
}
}
public class AEX_Context_FailSilent : AbstractKismetExpression {
public AEX_Context_FailSilent() {}
public AEX_Context_FailSilent(AbstractKismetBuilder ab, FunctionExport fn, EX_Context_FailSilent e) {
throw new NotImplementedException("EX_Context_FailSilent");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_Context_FailSilent");
return new EX_Context_FailSilent() {
};
}
}
public class AEX_CrossInterfaceCast : AbstractKismetExpression {
public AEX_CrossInterfaceCast() {}
public AEX_CrossInterfaceCast(AbstractKismetBuilder ab, FunctionExport fn, EX_CrossInterfaceCast e) {
throw new NotImplementedException("EX_CrossInterfaceCast");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_CrossInterfaceCast");
return new EX_CrossInterfaceCast() {
};
}
}
public class AEX_DefaultVariable : AbstractKismetExpression {
public AEX_DefaultVariable() {}
public AEX_DefaultVariable(AbstractKismetBuilder ab, FunctionExport fn, EX_DefaultVariable e) {
throw new NotImplementedException("EX_DefaultVariable");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_DefaultVariable");
return new EX_DefaultVariable() {
};
}
}
public class AEX_DeprecatedOp4A : AbstractKismetExpression {
public AEX_DeprecatedOp4A() {}
public AEX_DeprecatedOp4A(AbstractKismetBuilder ab, FunctionExport fn, EX_DeprecatedOp4A e) {
throw new NotImplementedException("EX_DeprecatedOp4A");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_DeprecatedOp4A");
return new EX_DeprecatedOp4A() {
};
}
}
public class AEX_DynamicCast : AbstractKismetExpression {
public AEX_DynamicCast() {}
public string ClassPtr { get; set; } = null!;
public AbstractKismetExpression TargetExpression { get; set; } = null!;
public AEX_DynamicCast(AbstractKismetBuilder ab, FunctionExport fn, EX_DynamicCast e) {
ClassPtr = ab.FromPackageIndex(e.ClassPtr);
TargetExpression = ab.FromKismetExpression(fn, e.TargetExpression);
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
return new EX_DynamicCast() {
ClassPtr = b.ToPackageIndex(ClassPtr),
TargetExpression = TargetExpression.ToKismetExpression(b),
};
}
}
public class AEX_EndArray : AbstractKismetExpression {
public AEX_EndArray() {}
public AEX_EndArray(AbstractKismetBuilder ab, FunctionExport fn, EX_EndArray e) {
throw new NotImplementedException("EX_EndArray");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_EndArray");
return new EX_EndArray() {
};
}
}
public class AEX_EndArrayConst : AbstractKismetExpression {
public AEX_EndArrayConst() {}
public AEX_EndArrayConst(AbstractKismetBuilder ab, FunctionExport fn, EX_EndArrayConst e) {
throw new NotImplementedException("EX_EndArrayConst");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_EndArrayConst");
return new EX_EndArrayConst() {
};
}
}
public class AEX_EndFunctionParms : AbstractKismetExpression {
public AEX_EndFunctionParms() {}
public AEX_EndFunctionParms(AbstractKismetBuilder ab, FunctionExport fn, EX_EndFunctionParms e) {
throw new NotImplementedException("EX_EndFunctionParms");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_EndFunctionParms");
return new EX_EndFunctionParms() {
};
}
}
public class AEX_EndMap : AbstractKismetExpression {
public AEX_EndMap() {}
public AEX_EndMap(AbstractKismetBuilder ab, FunctionExport fn, EX_EndMap e) {
throw new NotImplementedException("EX_EndMap");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_EndMap");
return new EX_EndMap() {
};
}
}
public class AEX_EndMapConst : AbstractKismetExpression {
public AEX_EndMapConst() {}
public AEX_EndMapConst(AbstractKismetBuilder ab, FunctionExport fn, EX_EndMapConst e) {
throw new NotImplementedException("EX_EndMapConst");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_EndMapConst");
return new EX_EndMapConst() {
};
}
}
public class AEX_EndOfScript : AbstractKismetExpression {
public AEX_EndOfScript() {}
public AEX_EndOfScript(AbstractKismetBuilder ab, FunctionExport fn, EX_EndOfScript e) {}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
return new EX_EndOfScript();
}
}
public class AEX_EndParmValue : AbstractKismetExpression {
public AEX_EndParmValue() {}
public AEX_EndParmValue(AbstractKismetBuilder ab, FunctionExport fn, EX_EndParmValue e) {
throw new NotImplementedException("EX_EndParmValue");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_EndParmValue");
return new EX_EndParmValue() {
};
}
}
public class AEX_EndSet : AbstractKismetExpression {
public AEX_EndSet() {}
public AEX_EndSet(AbstractKismetBuilder ab, FunctionExport fn, EX_EndSet e) {
throw new NotImplementedException("EX_EndSet");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_EndSet");
return new EX_EndSet() {
};
}
}
public class AEX_EndSetConst : AbstractKismetExpression {
public AEX_EndSetConst() {}
public AEX_EndSetConst(AbstractKismetBuilder ab, FunctionExport fn, EX_EndSetConst e) {
throw new NotImplementedException("EX_EndSetConst");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_EndSetConst");
return new EX_EndSetConst() {
};
}
}
public class AEX_EndStructConst : AbstractKismetExpression {
public AEX_EndStructConst() {}
public AEX_EndStructConst(AbstractKismetBuilder ab, FunctionExport fn, EX_EndStructConst e) {
throw new NotImplementedException("EX_EndStructConst");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_EndStructConst");
return new EX_EndStructConst() {
};
}
}
public class AEX_False : AbstractKismetExpression {
public AEX_False() {}
public AEX_False(AbstractKismetBuilder ab, FunctionExport fn, EX_False e) {}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
return new EX_False();
}
}
public class AEX_FieldPathConst : AbstractKismetExpression {
public AEX_FieldPathConst() {}
public AEX_FieldPathConst(AbstractKismetBuilder ab, FunctionExport fn, EX_FieldPathConst e) {
throw new NotImplementedException("EX_FieldPathConst");
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
throw new NotImplementedException("EX_FieldPathConst");
return new EX_FieldPathConst() {
};
}
}
public class AEX_FinalFunction : AbstractKismetExpression {
public AEX_FinalFunction() {}
public string StackNode { get; set; } = null!;
public IEnumerable<AbstractKismetExpression> Parameters { get; set; } = null!;
public AEX_FinalFunction(AbstractKismetBuilder ab, FunctionExport fn, EX_FinalFunction e) {
StackNode = ab.FromPackageIndex(e.StackNode);
Parameters = e.Parameters.Select(e => ab.FromKismetExpression(fn, e));
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
return new EX_FinalFunction() {
StackNode = b.ToPackageIndex(StackNode),
Parameters = Parameters.Select(e => e.ToKismetExpression(b)).ToArray(),
};
}
}
public class AEX_FloatConst : AbstractKismetExpression {
public AEX_FloatConst() {}
public float Value { get; set; }
public AEX_FloatConst(AbstractKismetBuilder ab, FunctionExport fn, EX_FloatConst e) {
Value = e.Value;
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
return new EX_FloatConst() {
Value = Value,
};
}
}
public class AEX_DoubleConst : AbstractKismetExpression {
public AEX_DoubleConst() {}
public double Value { get; set; }
public AEX_DoubleConst(AbstractKismetBuilder ab, FunctionExport fn, EX_DoubleConst e) {
Value = e.Value;
}
public override KismetExpression ToKismetExpression(KismetBuilder b) {
return new EX_DoubleConst() {
Value = Value,