Closed Quak0r closed 3 years ago
Hello, Quak0r. Your CompositeMessage contains one of three Objects (messages) or one simple type (int32). All simple types are set by setters:
var compositeMessage = MyProto.CompositeMessage.new()
compositeMessage.set_removeplayer(42)
But All Messages are set by creating new Messages (see manual):
var compositeMessage = MyProto.CompositeMessage.new()
var player = compositeMessage.new_playerupdate()
player.set_id(10)
player.rotL(15.)
...
It seems something like this :)
Ah! I must have missed that in the manual. Just tested it quickly and it adds the different messages to the CompositeMessage wrapper correctly!
Thank you!
Hello, first of a BIG thank you for all the work that went into this project!
I'm trying to have a message wrapper so I can send only one message over the wire in order to have easier message recognition on the receiving end.
the generated code however does not seem to have the setter functions for
playerstart
,playerupdate
andallplayersupdate
. The only setter generated isset_removeplayer
. The other type of functions likeget_playerupdate
,clear_playerupdate
andnew_playerupdate
are generated correctly.