Files
TEngine/Luban/Luban.ClientServer/Templates/config/gdscript_json/tables.tpl
ALEXTANG 36353294d6 Start TEngine3.0
Start TEngine3.0
2023-03-31 17:27:49 +08:00

13 lines
336 B
Smarty

{{
name = x.name
namespace = x.namespace
tables = x.tables
}}
{{~ for table in tables ~}}
var {{table.name}}: {{table.gdscript_full_name}}
{{~end~}}
func _init(loader) -> void:
{{~for table in tables ~}}
self.{{table.name}} = {{table.gdscript_full_name}}.new(loader.call('{{table.output_data_file}}'))
{{~end~}}