迁移数据表到 Luban,移除 JsonNet、EnumUtility

This commit is contained in:
2026-09-13 14:08:14 +08:00
parent 4003b3aaba
commit de53890de6
607 changed files with 18515 additions and 3257 deletions
@@ -0,0 +1,23 @@
class {{__name}}
{
public:
{{~for table in __tables ~}}
{{~if table.comment != '' ~}}
/**
* {{escape_comment table.comment}}
*/
{{~end~}}
{{make_cpp_name table.full_name}} {{table.name}};
{{~end~}}
bool load(::luban::Loader<::luban::ByteBuf> loader)
{
::luban::ByteBuf buf;
{{~for table in __tables~}}
buf.clear();
if (!loader(buf, "{{table.output_data_file}}")) return false;
if (!{{table.name}}.load(buf)) return false;
{{~end~}}
return true;
}
};