aboutsummaryrefslogtreecommitdiff
path: root/po/es
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2020-04-27 08:31:37 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2020-04-29 07:48:08 +0200
commit56bababcdfce097a4e08cc3d1de8d798e7999ce7 (patch)
treeaef707d6abdcd86bc1520c668f7e2ee4533a638e /po/es
parenta36c9c3e930608386b983ea76158793fe9d622f6 (0 files changed, 0 insertions, 0 deletions
ne ACTIVEOBJECT_HEADER #include "irrlichttypes.h" #include <string> #define ACTIVEOBJECT_TYPE_INVALID 0 // Other types are defined in content_object.h struct ActiveObjectMessage { ActiveObjectMessage(u16 id_, bool reliable_=true, std::string data_=""): id(id_), reliable(reliable_), datastring(data_) {} u16 id; bool reliable; std::string datastring; }; /* Parent class for ServerActiveObject and ClientActiveObject */ class ActiveObject { public: ActiveObject(u16 id): m_id(id) { } u16 getId() { return m_id; } void setId(u16 id) { m_id = id; } virtual u8 getType() const = 0; protected: u16 m_id; // 0 is invalid, "no id" }; #endif