Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/tools/atlas/GameInterface/MessagesSetup.h
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
const bool MERGE = true; | const bool MERGE = true; | ||||
const bool NOMERGE = false; | const bool NOMERGE = false; | ||||
#define COMMANDDATASTRUCT(t) \ | #define COMMANDDATASTRUCT(t) \ | ||||
struct d##t { \ | struct d##t { \ | ||||
private: \ | private: \ | ||||
const d##t& operator=(const d##t&); \ | d##t& operator=(const d##t&) = delete; \ | ||||
public: | public: | ||||
#define COMMANDSTRUCT(t, merge) \ | #define COMMANDSTRUCT(t, merge) \ | ||||
struct m##t : public mWorldCommand, public d##t { \ | struct m##t : public mWorldCommand, public d##t { \ | ||||
m##t(const d##t& d) : d##t(d) {} \ | m##t(const d##t& d) : d##t(d) {} \ | ||||
const char* GetName() const { return #t; } \ | const char* GetName() const { return #t; } \ | ||||
virtual bool IsMergeable() const { return merge; } \ | virtual bool IsMergeable() const { return merge; } \ | ||||
void* CloneData() const { return SHAREABLE_NEW(d##t, (*this)); } \ | void* CloneData() const { return SHAREABLE_NEW(d##t, (*this)); } \ | ||||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator