mirror of
https://github.com/Relintai/broken_seals_roguelike.git
synced 2024-11-14 10:57:19 +01:00
21 lines
431 B
GDScript3
21 lines
431 B
GDScript3
|
extends Resource
|
||
|
class_name GameModule
|
||
|
|
||
|
export(ESSResourceDB) var resource_db : ESSResourceDB
|
||
|
|
||
|
func load_module():
|
||
|
if resource_db != null:
|
||
|
resource_db.initialize()
|
||
|
|
||
|
ESS.resource_db.add_entity_resource_db(resource_db)
|
||
|
|
||
|
# var r : ESSResourceDB = ESS.resource_db
|
||
|
#
|
||
|
# for e in r.get_entity_datas():
|
||
|
# print(e.resource_path)
|
||
|
# print(e.get_id())
|
||
|
|
||
|
# for s in r.get_spells():
|
||
|
# print(s.resource_name)
|
||
|
# print(s.get_id())
|