-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDataConfig.gd
More file actions
52 lines (48 loc) · 1.3 KB
/
DataConfig.gd
File metadata and controls
52 lines (48 loc) · 1.3 KB
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
class_name DataConfig extends Object
## Class to store config for Data
## Class to store SubType keys
class SubType:
enum Type {
NULL, ## No Type
INT_CID, ## A Component ID
OBJECT_ENGINECOMPONENT, ## A EngineComponent
OBJECT_FIXTUREMANIFEST, ## A FixtureManifest
OBJECT_NETWORKITEM, ## A NetworkItem
OBJECT_UIPANEL, ## A UIPanel instance
PACKEDSCENE_UIPANEL, ## A UIPanel PackedScene
}
## Config for Data
var config: Dictionary[String, Variant] = {
"gbc_index": {
"EngineComponent": GBCIndexConfig.new(EngineComponent, ComponentDB, ComponentClassList, ChildManager.new(
Core,
Core.create_component,
Core.add_component,
Core.add_components,
Core.remove_component,
Core.remove_components,
Core.duplicate_component,
Callable(), ## TODO add CoreEngine.duplicate_components() method
ComponentDB.get_components,
ComponentDB.components_added,
ComponentDB.components_removed,
EngineComponent,
EngineComponent,
)),
"NetworkItem": GBCIndexConfig.new(NetworkItem, NetworkDB, NetworkClassList, ChildManager.new(
Network,
Callable(),
Callable(),
Callable(),
Callable(),
Callable(),
Callable(),
Callable(),
NetworkDB.get_components,
NetworkDB.components_added,
NetworkDB.components_removed,
NetworkItem,
NetworkItem
))
}
}