Skip to content

Commit

Permalink
UE c++
Browse files Browse the repository at this point in the history
  • Loading branch information
davyxu committed Feb 26, 2023
1 parent f4d8ed0 commit f72ed4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gen/ppcpp/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ const RegTemplateText = `// Generated by github.com/davyxu/protoplus
class {{.Name}}Meta : public MessageMeta
{
public:
static const int32 Id = {{StructMsgID .}};
virtual const char* GetMessageName( ) const override{ return "{{$.PackageName}}.{{.Name}}"; }
virtual int32 GetMessageId( ) const override{ return {{StructMsgID .}}; }
virtual void* NewMessage() override { return {{$.PackageName}}::{{.Name}}::default_instance().New(); }
virtual google::protobuf::Message* NewMessage() override { return {{$.PackageName}}::{{.Name}}::default_instance().New(); }
virtual const google::protobuf::Descriptor* GetMessageType() const override{ return {{$.PackageName}}::{{.Name}}::GetDescriptor(); }
}; {{end}}
void StaticRegisterMeta( )
Expand Down

0 comments on commit f72ed4f

Please sign in to comment.