Fix split. Implement @cs_embed
This commit is contained in:
parent
3f22b2fc55
commit
4d2bd5f356
|
@ -31,6 +31,7 @@ function supported_tokens()
|
|||
'diffable',
|
||||
'table_pkey',
|
||||
'bhl_bind',
|
||||
'cs_embed',
|
||||
'cs_implements',
|
||||
'cs_attributes',
|
||||
'cs_accessor_interface',
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
{{_self.attributes(o)}}
|
||||
public {{_self.struct_type(o)}} {{o.name}} {{_self.base_struct_class(o)}}
|
||||
{
|
||||
{{token(o, 'cs_embed', '')}}
|
||||
|
||||
{{_self.decl_struct_fields(o)}}
|
||||
|
||||
public {{o.parent ? 'new'}} const uint STATIC_CLASS_ID = {{o.classid}};
|
||||
|
@ -204,9 +206,11 @@ ResetFieldMask();
|
|||
: {{o.parent ? o.parent.name : 'BaseMetaStruct'}}
|
||||
{{- has_token(o, 'cloneable') and not o.parent ? ', IMetaCloneable' -}}
|
||||
{%- endif -%}
|
||||
{%- for ifs in token(o, "cs_implements", "")|split(',') -%}
|
||||
{%- if has_token(o, "cs_implements") -%}
|
||||
{%- for ifs in token(o, "cs_implements")|split(',') -%}
|
||||
, {{ifs}}
|
||||
{%- endfor -%}
|
||||
{%- endif -%}
|
||||
|
||||
{%- for ai in get_accessor_interfaces(o) -%}
|
||||
, {{ai.interfacename}}
|
||||
|
|
Loading…
Reference in New Issue