AkiraPixelWind/LubanTools/Luban.ClientServer/Templates/config/python3_json/tables.tpl

16 lines
370 B
Smarty
Raw Normal View History

2022-12-29 18:20:40 +08:00
{{
name = x.name
namespace = x.namespace
tables = x.tables
}}
class {{name}}:
{{~ for table in tables ~}}
#def {{table.name}} : return self._{{table.name}}
{{~end~}}
def __init__(self, loader):
{{~for table in tables ~}}
self.{{table.name}} = {{table.py_full_name}}(loader('{{table.output_data_file}}'));
{{~end~}}