18 int32_t _parentNodeId;
19 CharacterId _characterId;
22 std::string _condition;
25 AIAddNodeMessage(int32_t parentNodeId, CharacterId characterId,
const std::string& name,
const std::string& type,
const std::string& condition) :
26 IProtocolMessage(PROTO_ADDNODE), _parentNodeId(parentNodeId), _characterId(characterId), _name(name), _type(type), _condition(condition) {
31 _parentNodeId = readInt(in);
32 _characterId = readInt(in);
33 _name = readString(in);
34 _type = readString(in);
35 _condition = readString(in);
38 void serialize(streamContainer& out)
const override {
40 addInt(out, _parentNodeId);
41 addInt(out, _characterId);
42 addString(out, _name);
43 addString(out, _type);
44 addString(out, _condition);
47 inline const std::string& getName()
const {
51 inline const std::string& getType()
const {
55 inline const std::string& getCondition()
const {
59 inline uint32_t getParentNodeId()
const {
63 inline CharacterId getCharacterId()
const {
A protocol message is used for the serialization of the ai states for remote debugging.
Definition: IProtocolMessage.h:60
Message for the remote debugging interface.
Definition: AIAddNodeMessage.h:16