#ifndef INCLUDED_database_GUILD_H #define INCLUDED_database_GUILD_H ///////////////////////////////////////////////////////////////// // WARNING : this is a generated file, don't change it ! ///////////////////////////////////////////////////////////////// #include "nel/misc/string_common.h" #include "cdb_group.h" #include "player_manager/cdb.h" #include "player_manager/cdb_synchronised.h" #include "game_share/far_position.h" inline void _setProp(CCDBSynchronised &db, ICDBStructNode *node, TCharConnectionState value, bool forceSending = false) { db.x_setProp(node, uint64(value), forceSending); } inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, TCharConnectionState &value) { value = (TCharConnectionState)db.x_getProp(node); } #ifndef _SET_PROP_ACCESSOR_ #define _SET_PROP_ACCESSOR_ inline void _setProp(CCDBSynchronised &db, ICDBStructNode *node, bool value, bool forceSending = false) { db.x_setProp(node, uint64(value), forceSending); } inline void _setProp(CCDBSynchronised &db, ICDBStructNode *node, uint8 value, bool forceSending = false) { db.x_setProp(node, uint64(value), forceSending); } inline void _setProp(CCDBSynchronised &db, ICDBStructNode *node, uint16 value, bool forceSending = false) { db.x_setProp(node, uint64(value), forceSending); } inline void _setProp(CCDBSynchronised &db, ICDBStructNode *node, uint32 value, bool forceSending = false) { db.x_setProp(node, uint64(value), forceSending); } inline void _setProp(CCDBSynchronised &db, ICDBStructNode *node, uint64 value, bool forceSending = false) { db.x_setProp(node, uint64(value), forceSending); } inline void _setProp(CCDBSynchronised &db, ICDBStructNode *node, sint8 value, bool forceSending = false) { db.x_setProp(node, uint64(value), forceSending); } inline void _setProp(CCDBSynchronised &db, ICDBStructNode *node, sint16 value, bool forceSending = false) { db.x_setProp(node, uint64(value), forceSending); } inline void _setProp(CCDBSynchronised &db, ICDBStructNode *node, sint32 value, bool forceSending = false) { db.x_setProp(node, uint64(value), forceSending); } inline void _setProp(CCDBSynchronised &db, ICDBStructNode *node, sint64 value, bool forceSending = false) { db.x_setProp(node, uint64(value), forceSending); } inline void _setProp(CCDBSynchronised &db, ICDBStructNode *node, const std::string &value, bool forceSending = false) { db.x_setPropString(node, value, forceSending); } inline void _setProp(CCDBSynchronised &db, ICDBStructNode *node, const ucstring &value, bool forceSending = false) { db.x_setPropString(node, value, forceSending); } inline void _setProp(CCDBSynchronised &db, ICDBStructNode *node, const NLMISC::CSheetId &value, bool forceSending = false) { db.x_setProp(node, uint64(value.asInt()), forceSending); } inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, bool &value) { value = db.x_getProp(node) != 0; } inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, uint8 &value) { value = uint8(db.x_getProp(node)); } inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, uint16 &value) { value = uint16(db.x_getProp(node)); } inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, uint32 &value) { value = uint32(db.x_getProp(node)); } inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, uint64 &value) { value = db.x_getProp(node); } inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, sint8 &value) { value = uint8(db.x_getProp(node)); } inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, sint16 &value) { value = uint16(db.x_getProp(node)); } inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, sint32 &value) { value = uint32(db.x_getProp(node)); } inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, sint64 &value) { value = db.x_getProp(node); } inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, std::string &value) { value = db.x_getPropString(node); } inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, ucstring &value) { value = db.x_getPropUcstring(node); } inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::CSheetId &value) { value = uint32(db.x_getProp(node)); } #endif // _SET_PROP_ACCESSOR_ class CBankAccessor_GUILD : public CCDBGroup { public: static TCDBBank BankTag; class TGUILD { public: class TFAME { public: class TArray { public: private: ICDBStructNode *_BranchNode; ICDBStructNode *_VALUE; ICDBStructNode *_THRESHOLD; ICDBStructNode *_TREND; public: void init(ICDBStructNode *parent, uint index); // accessor to branch node ICDBStructNode *getCDBNode() { return _BranchNode; } void setVALUE(CCDBGroup &dbGroup, sint8 value, bool forceSending = false) { _setProp(dbGroup.Database, _VALUE, value, forceSending); } sint8 getVALUE(const CCDBGroup &dbGroup) { sint8 value; _getProp(dbGroup.Database, _VALUE, value); return value; } ICDBStructNode *getVALUECDBNode() { return _VALUE; } void setTHRESHOLD(CCDBGroup &dbGroup, sint8 value, bool forceSending = false) { _setProp(dbGroup.Database, _THRESHOLD, value, forceSending); } sint8 getTHRESHOLD(const CCDBGroup &dbGroup) { sint8 value; _getProp(dbGroup.Database, _THRESHOLD, value); return value; } ICDBStructNode *getTHRESHOLDCDBNode() { return _THRESHOLD; } void setTREND(CCDBGroup &dbGroup, uint8 value, bool forceSending = false) { _setProp(dbGroup.Database, _TREND, value, forceSending); } uint8 getTREND(const CCDBGroup &dbGroup) { uint8 value; _getProp(dbGroup.Database, _TREND, value); return value; } ICDBStructNode *getTRENDCDBNode() { return _TREND; } }; private: ICDBStructNode *_BranchNode; ICDBStructNode *_CULT_ALLEGIANCE; ICDBStructNode *_CIV_ALLEGIANCE; TArray _Array[6]; public: void init(ICDBStructNode *parent); // accessor to branch node ICDBStructNode *getCDBNode() { return _BranchNode; } void setCULT_ALLEGIANCE(CCDBGroup &dbGroup, uint8 value, bool forceSending = false) { // Check that the value is not out of database precision STOP_IF(value > (1<<3)-1, "setCULT_ALLEGIANCE : Value out of bound : trying to store "< (1<<3)-1, "setCIV_ALLEGIANCE : Value out of bound : trying to store "< (1<<3)-1, "setGRADE : Value out of bound : trying to store "< (1<<4)-1, "setSPAWN : Value out of bound : trying to store "< (1<<4)-1, "setSTATUS : Value out of bound : trying to store "< (1<<5)-1, "setTIME_RANGE_DEF_WANTED : Value out of bound : trying to store "<