|
|
|
@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef INCLUDED_database_GUILD_H
|
|
|
|
|
#define INCLUDED_database_GUILD_H
|
|
|
|
|
// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
|
|
|
|
|
// Copyright (C) 2010 Winch Gate Property Limited
|
|
|
|
|
//
|
|
|
|
@ -14,11 +18,19 @@
|
|
|
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef INCLUDED_database_GUILD_H
|
|
|
|
|
#define INCLUDED_database_GUILD_H
|
|
|
|
|
/////////////////////////////////////////////////////////////////
|
|
|
|
|
// WARNING : this is a generated file, don't change it !
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// WARNING : this is a generated file, don't change it !
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#include "nel/misc/string_common.h"
|
|
|
|
@ -28,16 +40,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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_
|
|
|
|
@ -151,15 +160,15 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TGUILD
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
class TFAME
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
class TArray
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -249,7 +258,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
|
|
|
|
|
|
|
|
|
|
ICDBStructNode *_CULT_ALLEGIANCE;
|
|
|
|
|
ICDBStructNode *_CIV_ALLEGIANCE;
|
|
|
|
|
TArray _Array[6];
|
|
|
|
|
TArray _Array[7];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -309,18 +318,18 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
|
|
|
|
|
}
|
|
|
|
|
TArray &getArray(uint32 index)
|
|
|
|
|
{
|
|
|
|
|
nlassert(index < 6);
|
|
|
|
|
nlassert(index < 7);
|
|
|
|
|
return _Array[index];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class TMEMBERS
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
class TArray
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -465,7 +474,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class TINVENTORY
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -529,6 +538,8 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
|
|
|
|
|
|
|
|
|
|
void setMONEY(CCDBGroup &dbGroup, uint64 value, bool forceSending = false)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_setProp(dbGroup.Database, _MONEY, value, forceSending);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -548,15 +559,15 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class TOUTPOST
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
class TO
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
class TGUILD
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -686,11 +697,11 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class TSQUAD_SPAWN_ZONE
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
class TArray
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -778,11 +789,11 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class TSQUAD_SHOP
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
class TArray
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -849,11 +860,11 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class TSQUADS
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
class TSP
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -896,7 +907,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class TT
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -961,17 +972,19 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
ICDBStructNode *_BranchNode;
|
|
|
|
|
|
|
|
|
|
TSP __SP[24];
|
|
|
|
|
TSP _SP[24];
|
|
|
|
|
TT _T[24];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
void init(ICDBStructNode *parent);
|
|
|
|
|
|
|
|
|
|
// accessors to branch node
|
|
|
|
|
// accessor to branch node
|
|
|
|
|
ICDBStructNode *getCDBNode()
|
|
|
|
|
{
|
|
|
|
|
return _BranchNode;
|
|
|
|
@ -980,7 +993,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
|
|
|
|
|
TSP &getSP(uint32 index)
|
|
|
|
|
{
|
|
|
|
|
nlassert(index < 24);
|
|
|
|
|
return __SP[index];
|
|
|
|
|
return _SP[index];
|
|
|
|
|
}
|
|
|
|
|
TT &getT(uint32 index)
|
|
|
|
|
{
|
|
|
|
@ -991,11 +1004,11 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class TBUILDINGS
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
class TArray
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|