-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwriter.py
1447 lines (1279 loc) · 35.8 KB
/
writer.py
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
from pybroma.PyBroma import Class, Function, FunctionBindField, MemberField, PadField
from pybroma.platforms import Platform
from pybroma.PyBroma import *
from pybroma import BromaTreeVisitor
from pathlib import Path
# From Cython's CodeWriter We will be borrowing this useful code writer to help
# us with writing out our different files we need to make...
from Cython.CodeWriter import LinesResult
from enum import IntEnum
from typing import NamedTuple
import json
# TODO Supply with enums...
class LinesResultPlus(LinesResult):
def __init__(self):
super().__init__()
self.hguard = ""
self.indents = 0
self.indentStr = " "
self.headerFilename = ""
def indent(self):
self.indents += 1
def dedent(self):
if self.indents:
self.indents -= 1
def setHeaderGuard(self, name: str):
"""Makes a headerGuard for us to start using"""
self.hguard = name.upper()
self.putline(f"#ifndef __{self.hguard}_H__")
self.putline(f"#define __{self.hguard}_H__")
self.newline()
def closeHeaderGuard(self):
self.putline(f"#endif /* __{self.hguard}_H__ */")
self.hguard = ""
def comment(self, comment: str):
"""Used to make a single comment for something important"""
self.startline(f"/* {comment} */")
self.newline()
def finalizeAndWriteFile(self, path: Path):
"""Used for dumping the files when we are done writing something down..."""
if not path.exists():
path.mkdir()
# TODO: Warn about User about the dangers overriding previous files inorder to save their
# own project if something was written in by hand...
with open(path / self.headerFilename, "w", encoding="utf-8") as w:
w.write("\n".join(self.lines))
def include(self, filename: str):
self.putline(f'#include "{filename}"')
def predefine_subclass(self, name: str):
"""Predefines a class in a file. This is mainly imeplemnted for intellisense safety..."""
self.putline(f"class {name};")
def predefine_many_subclasses(self, superclasses: list[str]):
superclasses = [s for s in superclasses if not s.startswith("cocos2d::")]
if superclasses:
self.newline()
self.comment("-- Predefined Subclasses --")
self.newline()
for s in superclasses:
self.predefine_subclass(s)
self.newline()
def write_delegate(self, mainClass:str , SubClasses:list[str] = []):
if SubClasses:
self.predefine_many_subclasses(SubClasses)
self.put(f"class {mainClass}")
if SubClasses:
self.put(": " + ", ".join([f"public {s}" for s in SubClasses]))
self.put(" {")
self.newline()
# Used to put as little stress on the user when
# reverse engineering class objects as possible...
self.putline("public:")
self.indent()
def end_delegate(self):
self.dedent()
self.putline("};")
def start_cpp_class(self, mainClass: str, SubClasses: list[str], path=""):
"""assuming every class written here is it's own file this will start the file by introducing the includes.h header..."""
self.headerFilename = mainClass + ".h"
self.SrcName = mainClass + ".cpp"
self.setHeaderGuard(mainClass)
self.newline()
self.include("includes.h" if not path else "../includes.h")
self.newline()
if SubClasses:
self.predefine_many_subclasses(SubClasses)
self.put(f"class {mainClass}")
if SubClasses:
self.put(": " + ", ".join([f"public {s}" for s in SubClasses]))
self.put(" {")
self.newline()
# Used to put as little stress on the user when
# reverse engineering class objects as possible...
self.putline("public:")
self.indent()
def close_cpp_class(self):
"""Closes the C++ class object and then dedents the cursor as well as end the filename..."""
self.dedent()
self.putline("};")
self.newline()
self.closeHeaderGuard()
def startline(self, code: str = ""):
self.put(self.indentStr * self.indents + code)
def writeline(self, code: str):
"""This is meant to be used and not put() since were trying to indent our functions and class members all within a clean manner"""
self.putline(self.indentStr * self.indents + code)
def debug(self):
print("-- DEBUG --")
print("\n".join(self.lines))
print("-- DEBUG END --")
def external_include(self, header:str):
self.putline(f"#include <{header}>")
class ClassType(IntEnum):
"""Used to determine the possible path of where a file is going to be written to"""
Default = 0
Manager = 1
Delegate = 2
CustomCC = 3
"""a CC class without the cocos2d namespace"""
Cocos2d = 4
"""a libcocos class object"""
Layer = 5
Cell = 6
ToolBox = 7
class SourceFile(NamedTuple):
srcName: str
path: str
cppCls: Class
type:ClassType
def translateTypeName(self, tname: str):
return tname.replace("gd::", "std::")
def write_function(self, w: LinesResultPlus, f: MemberFunctionProto):
# start by writing the signature and then write the function if there's no TodoReturn
signature = self.cppCls.name + "::" + f.name
# TODO: Optimize this section a little bit more...
signature += (
"("
+ ", ".join(
[
(
("struct " + self.translateTypeName(t.name) + " " + a)
if t.is_struct
else (self.translateTypeName(t.name) + " " + a)
)
for a, t in f.args.items()
]
)
+ ")"
)
if f.ret.name == "TodoReturn":
# comment out instead
w.newline()
w.comment(f"Unknown Return: {signature}" + "{};")
w.newline()
return # exit
w.putline(self.translateTypeName(f.ret.name) + " " + signature)
# This should be the most appropreate way to deal with this for now...
w.putline("{")
w.putline(" return;")
w.putline("}")
w.newline()
w.newline()
def getFunctionsSorted(self):
return sorted(
[
f.getAsFunctionBindField().prototype
for f in self.cppCls.fields
if f.getAsFunctionBindField() is not None
],
key=lambda f: f.name,
)
def write_contents(self):
writer = LinesResultPlus()
writer.newline()
writer.include("includes.h")
writer.newline()
writer.newline()
for f in self.getFunctionsSorted():
self.write_function(writer, f)
return "\n".join(writer.lines)
def write_delegate(self, writer: LinesResultPlus):
for proto in self.getFunctionsSorted():
if proto.is_virtual:
writer.startline("virtual ")
elif proto.is_static:
writer.startline("static ")
else:
writer.startline()
if proto.is_const:
writer.put("const ")
writer.put(proto.ret.name + " ")
writer.put(proto.name)
writer.put("(")
if proto.args:
args = [
f"{self.translateTypeName(_type.name)} {name}"
for name, _type in proto.args.items()
]
argsline = ", ".join(args)
writer.put(argsline)
writer.put(");")
writer.newline()
def write(self):
"""Writes the C++ contents"""
src = Path("src")
if not src.exists():
src.mkdir()
p = src / self.path
if not p.exists():
p.mkdir()
with open(p / self.srcName, "w") as w:
w.write(self.write_contents())
class ClassHeadersWriter(BromaTreeVisitor):
"""Used for writing Geometry Dash Class Items..."""
def __init__(self) -> None:
self.current_writer = None
self.current_class = ""
self.includes: list[str] = []
self.classes: list[SourceFile] = []
self.delegates: list[Class] = []
self.pathsdict:dict[str , list[str]] = {}
super().__init__()
def determinePath(self, node: Class):
"""determines if the class object we're about to use is a delegate,
a robtop CC class (Custom Libcocos class) or a CellType..."""
name = node.name
if name.startswith("cocos2d::") or name.startswith("DS_Dictionary"):
# This one is an ignore flag we will be installing cocos-headers to make up for that...
return ClassType.Cocos2d
elif "delegate" in name.lower():
# Make an effort to Hold onto all delegates for later use...
self.delegates.append(node)
return ClassType.Delegate
elif name.startswith("CC"):
return ClassType.CustomCC
elif name.startswith(("TableView", "BoomListView")) or name.lower().endswith(
"cell"
):
return ClassType.Cell
elif name.lower().endswith("manager"):
return ClassType.Manager
elif name.lower().endswith("layer"):
return ClassType.Layer
# A ToolBox is simillar to a delegate but it's treated more as special namespace...
elif name == "LevelTools" or name.lower().endswith("toolbox"):
return ClassType.ToolBox
else:
return ClassType.Default
def typeForDirectory(self, t: ClassType):
# -- Ignore cocos2d things and delegates! --
base = Path("headers")
if t == ClassType.Cocos2d or t == ClassType.Delegate:
return None
elif t == ClassType.Manager:
path = "Managers"
elif t == ClassType.Cell:
path = "Cells"
elif t == ClassType.ToolBox:
path = "Tools"
elif t == ClassType.CustomCC:
path = "CustomCCClasses"
elif t == ClassType.Layer:
path = "Layers"
# Put defaults into the common directory as opposed
# to the place where includes.h will be located for
# tidiness...
else:
path = "Common"
if not self.pathsdict.get(path):
self.pathsdict[path] = []
return base / path
def visit_PadField(self, node: PadField):
self.current_writer.comment("PAD")
self.current_writer.newline()
return super().visit_PadField(node)
def write_memberField(self, name:str, type:str):
self.current_writer.startline(self.fixTypename(type))
self.current_writer.put(" ")
self.current_writer.put(name + ";")
self.current_writer.newline()
def visit_MemberField(self, node: MemberField):
# NOTE: We need to split up geode's RSVs since were doing A Decomp of What Robtop Has (Not Geode)
if node.type.name.startswith("geode::SeedValue"):
# Split into 3 member fields insead of One...
name = node.name
typename = node.type.name.rstrip("geode::SeedValue")
for letter in list(typename):
if letter == "R":
self.write_memberField(name + "Rand", "int")
elif letter == "S":
self.write_memberField(name + "Seed", "int")
elif letter == "V":
self.write_memberField(name, "int")
else:
self.write_memberField(node.name, node.type.name)
return super().visit_MemberField(node)
def visit_Class(self, node: Class):
self.current_class = node
# visit the class in question or else otherwise simply ignore it...
t = self.determinePath(node)
if path := self.typeForDirectory(t):
self.current_writer = LinesResultPlus()
self.current_writer.start_cpp_class(node.name, node.superclasses, str(path))
# write down our the code for it to function
super().visit_Class(node)
self.current_writer.close_cpp_class()
# close the writer out
# self.current_writer.debug()
if not "pugi::" in self.current_writer.headerFilename:
self.current_writer.finalizeAndWriteFile(path)
destination = path.parts[-1]
self.includes.append(destination + "/" + self.current_writer.headerFilename)
self.pathsdict[destination].append(destination + "/" + self.current_writer.headerFilename)
self.classes.append(SourceFile(self.current_writer.SrcName, destination, node, t))
self.current_writer = None
def fixTypename(self, type: str):
return type.replace("gd::", "std::")
def visit_FunctionBindField(self, node: FunctionBindField):
# TODO: Maybe add Docs?...
proto = node.prototype
if proto.is_virtual:
self.current_writer.startline("virtual ")
elif proto.is_static:
self.current_writer.startline("static ")
else:
self.current_writer.startline()
if proto.is_const:
self.current_writer.put("const ")
self.current_writer.put(proto.ret.name + " ")
self.current_writer.put(proto.name)
self.current_writer.put("(")
if proto.args:
args = [
f"{self.fixTypename(_type.name)} {name}"
for name, _type in proto.args.items()
]
argsline = ", ".join(args)
self.current_writer.put(argsline)
self.current_writer.put(");")
self.current_writer.newline()
def write_sources(self):
for files in self.classes:
files.write()
def write_includes(self):
writer = LinesResultPlus()
writer.putline("#ifndef __INCLUDES_H__")
writer.putline("#define __INCLUDES_H__")
writer.newline()
writer.newline()
writer.comment("External Resources")
writer.putline("#ifdef _WIN32")
writer.putline(" #define WIN32_LEAN_AND_MEAN")
writer.putline(" #include <windows.h>")
writer.putline("#endif /* _WIN32 */")
writer.external_include("cocos2d.h")
writer.external_include("fmt/format.h")
writer.external_include("fmod/fmod.h")
writer.external_include("cstdlib")
writer.external_include("cstring")
writer.external_include("string")
writer.external_include("map")
writer.external_include("unordered_map")
writer.newline()
writer.comment("Macros")
writer.putline("#ifndef TodoReturn")
writer.putline(" #define TodoReturn void*")
writer.putline("#endif /* TodoReturn */")
writer.putline("""
#ifndef PASS
/* Function will not be decompiled yet due to **Certain Defined Restraints** Specified by `Reason` */
#define PASS(Func, Reason) Func{return;};
#endif
#ifndef NOOP
/* Function has No Operations Involved */
#define NOOP(Func) Func{};
#endif
""")
writer.putline("""
/* I Blame Geode for adding this namespace -_-
adding this in to prevent intellisense from complaining
to me more , please try not to send me pull requests
with the gd namespace it's here only if I'm lazily merging class members in.
If you send me pull requests with the namespace of gd anywhere in the src folder, I will disown you
- Calloc
*/
namespace gd = std;
""")
# Includes
for path, names in sorted(list(self.pathsdict.items()), key=lambda x: x[0]):
writer.comment(path)
writer.newline()
for n in names:
writer.include(n)
writer.newline()
writer.newline()
# TODO: Seperate Delegates into another file in a future version of this tool
# Delegates
writer.comment("Delegates")
for d in self.delegates:
writer.write_delegate(d.name, d.superclasses)
SourceFile("", "", d, ClassType.Delegate).write_delegate(writer)
writer.end_delegate()
writer.newline()
writer.newline()
writer.putline(
"""
/* ENUMS */
/* Enums are from https://github.com/geode-sdk/bindings/blob/main/bindings/include/Geode/Enums.hpp
*
* We will use these unless the assembly doesn't match because I got tired of saying kEnumType everytime.
* Not sure on how we will verify functions as 1 to 1 matching assembly yet... - Calloc
*/
// thanks pie
enum class SearchType {
Search = 0,
Downloaded = 1,
MostLiked = 2,
Trending = 3,
Recent = 4,
UsersLevels = 5,
Featured = 6,
Magic = 7,
Sends = 8,
MapPack = 9,
MapPackOnClick = 10,
Awarded = 11,
Followed = 12,
Friends = 13,
Users = 14,
LikedGDW = 15,
HallOfFame = 16,
FeaturedGDW = 17,
Similar = 18,
Type19 = 19,
TopListsUnused = 20,
DailySafe = 21,
WeeklySafe = 22,
EventSafe = 23,
Reported = 24,
LevelListsOnClick = 25,
Type26 = 26,
Sent = 27,
MyLevels = 98,
SavedLevels = 99,
FavouriteLevels = 100,
SmartTemplates = 101,
MyLists = 102,
FavouriteLists = 103
};
enum class GameObjectType {
Solid = 0,
Hazard = 2,
InverseGravityPortal = 3,
NormalGravityPortal = 4,
ShipPortal = 5,
CubePortal = 6,
Decoration = 7,
YellowJumpPad = 8,
PinkJumpPad = 9,
GravityPad = 10,
YellowJumpRing = 11,
PinkJumpRing = 12,
GravityRing = 13,
InverseMirrorPortal = 14,
NormalMirrorPortal = 15,
BallPortal = 16,
RegularSizePortal = 17,
MiniSizePortal = 18,
UfoPortal = 19,
Modifier = 20,
Breakable = 21,
SecretCoin = 22,
DualPortal = 23,
SoloPortal = 24,
Slope = 25,
WavePortal = 26,
RobotPortal = 27,
TeleportPortal = 28,
GreenRing = 29,
Collectible = 30,
UserCoin = 31,
DropRing = 32,
SpiderPortal = 33,
RedJumpPad = 34,
RedJumpRing = 35,
CustomRing = 36,
DashRing = 37,
GravityDashRing = 38,
CollisionObject = 39,
Special = 40,
SwingPortal = 41,
GravityTogglePortal = 42,
SpiderOrb = 43,
SpiderPad = 44,
TeleportOrb = 46,
AnimatedHazard = 47,
};
enum class GJGameEvent {
None = 0,
TinyLanding = 1,
FeatherLanding = 2,
SoftLanding = 3,
NormalLanding = 4,
HardLanding = 5,
HitHead = 6,
OrbTouched = 7,
OrbActivated = 8,
PadActivated = 9,
GravityInverted = 10,
GravityRestored = 11,
NormalJump = 12,
RobotBoostStart = 13,
RobotBoostStop = 14,
UFOJump = 15,
ShipBoostStart = 16,
ShipBoostEnd = 17,
SpiderTeleport = 18,
BallSwitch = 19,
SwingSwitch = 20,
WavePush = 21,
WaveRelease = 22,
DashStart = 23,
DashStop = 24,
Teleported = 25,
PortalNormal = 26,
PortalShip = 27,
PortalBall = 28,
PortalUFO = 29,
PortalWave = 30,
PortalRobot = 31,
PortalSpider = 32,
PortalSwing = 33,
YellowOrb = 34,
PinkOrb = 35,
RedOrb = 36,
GravityOrb = 37,
GreenOrb = 38,
DropOrb = 39,
CustomOrb = 40,
DashOrb = 41,
GravityDashOrb = 42,
SpiderOrb = 43,
TeleportOrb = 44,
YellowPad = 45,
PinkPad = 46,
RedPad = 47,
GravityPad = 48,
SpiderPad = 49,
PortalGravityFlip = 50,
PortalGravityNormal = 51,
PortalGravityInvert = 52,
PortalFlip = 53,
PortalUnFlip = 54,
PortalNormalScale = 55,
PortalMiniScale = 56,
PortalDualOn = 57,
PortalDualOff = 58,
PortalTeleport = 59,
Checkpoint = 60,
DestroyBlock = 61,
UserCoin = 62,
PickupItem = 63,
CheckpointRespawn = 64,
FallLow = 65,
FallMed = 66,
FallHigh = 67,
FallVHigh = 68,
JumpPush = 69,
JumpRelease = 70,
LeftPush = 71,
LeftRelease = 72,
RightPush = 73,
RightRelease = 74,
PlayerReversed = 75,
FallSpeedLow = 76,
FallSpeedMed = 77,
FallSpeedHigh = 78
};
enum class PulseEffectType {
};
enum class TouchTriggerType {
};
enum class PlayerButton {
Jump = 1,
Left = 2,
Right = 3,
};
enum class GhostType {
};
enum class TableViewCellEditingStyle {
};
enum class UserListType {
Friends = 0,
Blocked = 1,
};
enum class GJErrorCode {
NotFound = -1,
UpdateApp = 3
};
enum class AccountError {
EmailsDoNotMatch = -99,
AlreadyLinkedToDifferentSteamAccount = -13,
AccountDisabled = -12,
AlreadyLinkedToDifferentAccount = -10,
TooShortLessThan3 = -9,
TooShortLessThan6 = -8,
PasswordsDoNotMatch = -7,
InvalidEmail = -6,
InvalidPassword = -5,
InvalidUsername = -4,
AlreadyUsedEmail = -3,
AlreadyUsedUsername = -2
};
enum class GJSongError {
DownloadSongFailed = 1,
DownloadSFXFailed = 2
};
enum class GJSongType {}; //probs normal and ncs
enum class LikeItemType {
Unknown = 0,
Level = 1,
Comment = 2,
AccountComment = 3,
LevelList = 4
};
enum class CommentError {
};
enum class BackupAccountError {
BackupOrSyncFailed = -3,
LoginFailed = -2
};
enum class GJMusicAction {
DownloadOrUpdate = 2,
UpdateSFXLibrary = 4,
UpdateMusicLibrary = 6
};
enum class CellAction {};
enum class GJActionCommand {};
enum class DifficultyIconType {
ShortText = 0,
DefaultText = 1,
NoText = 2
};
enum class GauntletType {
Fire = 0,
Ice = 2,
Poison = 3,
Shadow = 4,
Lava = 5,
Bonus = 6,
Chaos = 7,
Demon = 8,
Time = 9,
Crystal = 0xA,
Magic = 0xB,
Spike = 0xC,
Monster = 0xD,
Doom = 0xE,
Death = 0xF,
Forest = 0x10,
Rune = 0x11,
Force = 0x12,
Spooky = 0x13,
Dragon = 0x14,
Water = 0x15,
Haunted = 0x16,
Acid = 0x17,
Witch = 0x18,
Power = 0x19,
Potion = 0x1A,
Snake = 0x1B,
Toxic = 0x1C,
Halloween = 0x1D,
Treasure = 0x1E,
Ghost = 0x1F,
Spider = 0x20,
Gem = 0x21,
Inferno = 0x22,
Portal = 0x23,
Strange = 0x24,
Fantasy = 0x25,
Christmas = 0x26,
Surprise = 0x27,
Mystery = 0x28,
Cursed = 0x29,
Cyborg = 0x2A,
Castle = 0x2B,
Grave = 0x2C,
Temple = 0x2D,
World = 0x2E,
Galaxy = 0x2F,
Universe = 0x30,
Discord = 0x31,
Split = 0x32
};
enum class GJMPErrorCode {};
enum class GJTimedLevelType {
Daily = 0,
Weekly = 1,
Event = 2
};
enum class SongSelectType {
Default = 0,
Custom = 1
};
enum class AudioTargetType {};
enum class FMODReverbPreset {
Generic = 0,
PaddedCell = 1,
Room = 2,
Bathroom = 3,
Livingroom = 4,
Stoneroom = 5,
Auditorium = 6,
ConvertHall = 7,
Cave = 8,
Arena = 9,
Hangar = 0xA,
CarpettedHallway = 0xB,
Hallway = 0xC,
StoneCorridor = 0xD,
Alley = 0xE,
Forest = 0xF,
City = 0x10,
Mountains = 0x11,
Quarry = 0x12,
Plain = 0x13,
ParkingLot = 0x14,
SewerPipe = 0x15,
Underwater = 0x16
};
enum class DemonDifficultyType {
HardDemon = 0,
EasyDemon = 3,
MediumDemon = 4,
InsaneDemon = 5,
ExtremeDemon = 6
};
enum class PlayerCollisionDirection {
Top = 0,
Bottom = 1,
Left = 2,
Right = 3
};
enum class ChestSpriteState {};
enum class FormatterType {};
enum class AudioModType {};
enum class GJAreaActionType {};
enum class GJSmartDirection {};
enum class SmartBlockType {};
enum class TouchTriggerControl {};
enum class SmartPrefabResult {};
enum class AudioSortType {};
enum class spriteMode {};
enum class GJAssetType {};
enum class CommentKeyType {
Level = 0,
User = 1,
LevelList = 2
};
enum class LevelLeaderboardMode {
Time = 0,
Points = 1
};
enum class StatKey {};
enum class TextStyleType {
Default = 0,
Colored = 1,
Instant = 2,
Shake = 3,
Delayed = 4
};
enum class InputValueType {};
enum class GJInputStyle {};
enum class GJDifficultyName {
Short = 0,
Long = 1
};
enum class GJFeatureState {
None = 0,
Featured = 1,
Epic = 2,
Legendary = 3,
Mythic = 4
};
enum class GJKeyGroup {};
enum class GJKeyCommand {};
enum class SelectSettingType {};
enum class gjParticleValue {
MaxParticles = 1,
Duration = 2,
Lifetime = 3,
PlusMinus1 = 4,
Emission = 5,
Angle = 6,
PlusMinus2 = 7,
Speed = 8,
PlusMinus3 = 9,
PosVarX = 0xA,
PosVarY = 0xB,
GravityX = 0xC,
GravityY = 0xD,
AccelRad = 0xE,
PlusMinus4 = 0xF,
AccelTan = 0x10,
PlusMinus5 = 0x11,
StartSize = 0x12,
PlusMinus6 = 0x13,
EndSize = 0x14,
PlusMinus7 = 0x15,
StartSpin = 0x16,
PlusMinus8 = 0x17,
EndSpin = 0x18,
PlusMinus9 = 0x19,
StartR = 0x1A,
PlusMinus10 = 0x1B,
StartG = 0x1C,
PlusMinus11 = 0x1D,
StartB = 0x1E,
PlusMinus12 = 0x1F,
StartA = 0x20,
PlusMinus13 = 0x21,
EndR = 0x22,
PlusMinus14 = 0x23,
EndG = 0x24,
PlusMinus15 = 0x25,
EndB = 0x26,
PlusMinus16 = 0x27,
EndA = 0x28,
PlusMinus17 = 0x29,
FadeIn = 0x2A,
PlusMinus18 = 0x2B,
FadeOut = 0x2C,
PlusMinus19 = 0x2D,
FrictionP = 0x2E,
PlusMinus20 = 0x2F,
Respawn = 0x30,
PlusMinus21 = 0x31,
StartRad = 0x32,
PlusMinus22 = 0x33,
EndRad = 0x34,
PlusMinus23 = 0x35,
RotSec = 0x36,
PlusMinus24 = 0x37,
FrictionS = 0x45,
PlusMinus25 = 0x46,
FrictionR = 0x47,
PlusMinus26 = 0x48
};
enum class ColorSelectType {};
enum class AudioGuidelinesType {
GuidelineCreator = 0,
BPMFinder = 1
};
enum class SmartBrowseFilter {};
enum class GJUITouchEvent {};
enum class ObjectScaleType {
XY = 0,
X = 1,
Y = 2
};
enum class SavedActiveObjectState {};
enum class SavedSpecialObjectState {};
enum class SavedObjectStateRef {};
enum class CommentType {
Level = 0,
Account = 1,
FriendRequest = 2,
ListDescription = 4,
};
enum class BoomListType {
Default = 0x0,
User = 0x2,
Stats = 0x3,
Achievement = 0x4,
Level = 0x5,
Level2 = 0x6,
Comment = 0x7,
Comment2 = 0x8,
Comment3 = 0x9,
Song = 0xc,
Score = 0xd,
MapPack = 0xe,
CustomSong = 0xf,
Comment4 = 0x10,
User2 = 0x11,
Request = 0x12,
Message = 0x13,
LevelScore = 0x14,
Artist = 0x15,
SmartTemplate = 0x16,
SFX = 0x17,
SFX2 = 0x18,