include ryzom database.xml (and evaluate database_plr.cpp & database_plr.h)

This commit is contained in:
AleaJactaEst 2018-12-10 23:27:11 +01:00
parent 05a96ceea3
commit b3205fded6
3 changed files with 58 additions and 27 deletions

View file

@ -90,7 +90,7 @@
type="I32" /> type="I32" />
</branch> </branch>
<branch name="FACTION_POINTS_" <branch name="FACTION_POINTS_"
count="6"> count="7">
<!-- game_share/pvp_clan.h (0 is BeginClans and size is EndClans-BeginClans+1 --> <!-- game_share/pvp_clan.h (0 is BeginClans and size is EndClans-BeginClans+1 -->
<leaf name="VALUE" <leaf name="VALUE"
type="I32" /> type="I32" />
@ -504,7 +504,7 @@
</branch> </branch>
<!-- MAX_INVENTORY_ANIMAL --> <!-- MAX_INVENTORY_ANIMAL -->
<branch name="PACK_ANIMAL" <branch name="PACK_ANIMAL"
count="4" count="7"
clientonly="1"> clientonly="1">
<branch name="" <branch name=""
count="500"> count="500">
@ -1117,7 +1117,7 @@
type="I3" /> type="I3" />
<!-- Guild civilization allegiance (CF TPVPClan enum (pvp_clan.h) --> <!-- Guild civilization allegiance (CF TPVPClan enum (pvp_clan.h) -->
<branch name="" <branch name=""
count="6"> count="7">
<!-- from fame.h & cpp --> <!-- from fame.h & cpp -->
<leaf name="VALUE" <leaf name="VALUE"
type="S8" /> type="S8" />
@ -1527,7 +1527,7 @@
<!-- beasts --> <!-- beasts -->
<!-- MAX_INVENTORY_ANIMAL --> <!-- MAX_INVENTORY_ANIMAL -->
<branch name="BEAST" <branch name="BEAST"
count="4" count="7"
atomic="1"> atomic="1">
<!-- Atomic, for correct Bar Management on client --> <!-- Atomic, for correct Bar Management on client -->
<leaf name="UID" <leaf name="UID"
@ -1625,7 +1625,7 @@
type="S8" /> type="S8" />
<!-- value where the guards kill you on sight --> <!-- value where the guards kill you on sight -->
<branch name="PLAYER" <branch name="PLAYER"
count="6"> count="7">
<!-- from fame.h & cpp --> <!-- from fame.h & cpp -->
<leaf name="VALUE" <leaf name="VALUE"
type="S8" /> type="S8" />

View file

@ -1,3 +1,4 @@
// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/> // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
// Copyright (C) 2010 Winch Gate Property Limited // Copyright (C) 2010 Winch Gate Property Limited
// //
@ -15,8 +16,20 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
// WARNING : this is a generated file, don't change it ! //
//
//
//
//
// WARNING : this is a generated file, don't change it !
//
//
//
//
//
//
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
#include "stdpch.h" #include "stdpch.h"
#include "database_plr.h" #include "database_plr.h"
@ -362,7 +375,7 @@ void CBankAccessor_PLR::TUSER::init(ICDBStructNode *parent)
node = parent->getNode( ICDBStructNode::CTextId("IS_INVISIBLE"), false ); node = parent->getNode( ICDBStructNode::CTextId("IS_INVISIBLE"), false );
nlassert(node != NULL); nlassert(node != NULL);
_IS_INVISIBLE = node; _IS_INVISIBLE = node;
node = parent->getNode( ICDBStructNode::CTextId("COUNTER"), false ); node = parent->getNode( ICDBStructNode::CTextId("COUNTER"), false );
nlassert(node != NULL); nlassert(node != NULL);
_COUNTER = node; _COUNTER = node;
@ -377,7 +390,7 @@ void CBankAccessor_PLR::TUSER::init(ICDBStructNode *parent)
_SKILL_POINTS_[i].init(node, i); _SKILL_POINTS_[i].init(node, i);
} }
for (uint i=0; i<6; ++i) for (uint i=0; i<7; ++i)
{ {
node = parent->getNode( ICDBStructNode::CTextId(NLMISC::toString("FACTION_POINTS_%u", i)), false ); node = parent->getNode( ICDBStructNode::CTextId(NLMISC::toString("FACTION_POINTS_%u", i)), false );
nlassert(node != NULL); nlassert(node != NULL);
@ -3130,7 +3143,7 @@ void CBankAccessor_PLR::TPACK_ANIMAL::init(ICDBStructNode *parent)
// branch init // branch init
for (uint i=0; i<4; ++i) for (uint i=0; i<7; ++i)
{ {
node = parent->getNode( ICDBStructNode::CTextId(NLMISC::toString("BEAST%u", i)), false ); node = parent->getNode( ICDBStructNode::CTextId(NLMISC::toString("BEAST%u", i)), false );
nlassert(node != NULL); nlassert(node != NULL);
@ -3180,10 +3193,10 @@ void CBankAccessor_PLR::TPACK_ANIMAL::TBEAST::init(ICDBStructNode *parent, uint
nlassert(node != NULL); nlassert(node != NULL);
_DESPAWN = node; _DESPAWN = node;
// WARNING: let the value to true, else it'll corrupt backups node = parent->getNode( ICDBStructNode::CTextId("NAME"), false );
node = parent->getNode( ICDBStructNode::CTextId("NAME"), true );
nlassert(node != NULL); nlassert(node != NULL);
_NAME = node; _NAME = node;
// branch init // branch init
@ -3363,7 +3376,7 @@ void CBankAccessor_PLR::TFAME::init(ICDBStructNode *parent)
// branch init // branch init
for (uint i=0; i<6; ++i) for (uint i=0; i<7; ++i)
{ {
node = parent->getNode( ICDBStructNode::CTextId(NLMISC::toString("PLAYER%u", i)), false ); node = parent->getNode( ICDBStructNode::CTextId(NLMISC::toString("PLAYER%u", i)), false );
nlassert(node != NULL); nlassert(node != NULL);

View file

@ -1,3 +1,7 @@
#ifndef INCLUDED_database_PLR_H
#define INCLUDED_database_PLR_H
// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/> // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
// Copyright (C) 2010 Winch Gate Property Limited // Copyright (C) 2010 Winch Gate Property Limited
// //
@ -14,11 +18,19 @@
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef INCLUDED_DATABASE_PLR_H
#define INCLUDED_DATABASE_PLR_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" #include "nel/misc/string_common.h"
@ -493,7 +505,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
ICDBStructNode *_IS_INVISIBLE; ICDBStructNode *_IS_INVISIBLE;
ICDBStructNode *_COUNTER; ICDBStructNode *_COUNTER;
TSKILL_POINTS_ _SKILL_POINTS_[4]; TSKILL_POINTS_ _SKILL_POINTS_[4];
TFACTION_POINTS_ _FACTION_POINTS_[6]; TFACTION_POINTS_ _FACTION_POINTS_[7];
TRRPS_LEVELS _RRPS_LEVELS[6]; TRRPS_LEVELS _RRPS_LEVELS[6];
TNPC_CONTROL _NPC_CONTROL; TNPC_CONTROL _NPC_CONTROL;
@ -956,6 +968,8 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
void setIS_INVISIBLE(CCDBSynchronised &dbGroup, bool value, bool forceSending = false) void setIS_INVISIBLE(CCDBSynchronised &dbGroup, bool value, bool forceSending = false)
{ {
_setProp(dbGroup, _IS_INVISIBLE, value, forceSending); _setProp(dbGroup, _IS_INVISIBLE, value, forceSending);
} }
@ -971,7 +985,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
{ {
return _IS_INVISIBLE; return _IS_INVISIBLE;
} }
void setCOUNTER(CCDBSynchronised &dbGroup, uint8 value, bool forceSending = false) void setCOUNTER(CCDBSynchronised &dbGroup, uint8 value, bool forceSending = false)
{ {
@ -1001,7 +1015,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
} }
TFACTION_POINTS_ &getFACTION_POINTS_(uint32 index) TFACTION_POINTS_ &getFACTION_POINTS_(uint32 index)
{ {
nlassert(index < 6); nlassert(index < 7);
return _FACTION_POINTS_[index]; return _FACTION_POINTS_[index];
} }
TRRPS_LEVELS &getRRPS_LEVELS(uint32 index) TRRPS_LEVELS &getRRPS_LEVELS(uint32 index)
@ -1319,7 +1333,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
} }
}; };
class TTARGET class TTARGET
{ {
public: public:
@ -9081,6 +9095,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
ICDBStructNode *_HUNGER; ICDBStructNode *_HUNGER;
ICDBStructNode *_DESPAWN; ICDBStructNode *_DESPAWN;
ICDBStructNode *_NAME; ICDBStructNode *_NAME;
public: public:
void init(ICDBStructNode *parent, uint index); void init(ICDBStructNode *parent, uint index);
@ -9269,9 +9284,11 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
{ {
return _DESPAWN; return _DESPAWN;
} }
void setNAME(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false) void setNAME(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
{ {
_setProp(dbGroup, _NAME, value, forceSending); _setProp(dbGroup, _NAME, value, forceSending);
} }
@ -9282,18 +9299,19 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
return value; return value;
} }
ICDBStructNode *getNAMECDBNode() ICDBStructNode *getNAMECDBNode()
{ {
return _NAME; return _NAME;
} }
}; };
private: private:
ICDBStructNode *_BranchNode; ICDBStructNode *_BranchNode;
TBEAST _BEAST[4]; TBEAST _BEAST[7];
public: public:
@ -9307,7 +9325,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
TBEAST &getBEAST(uint32 index) TBEAST &getBEAST(uint32 index)
{ {
nlassert(index < 4); nlassert(index < 7);
return _BEAST[index]; return _BEAST[index];
} }
@ -9972,7 +9990,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
ICDBStructNode *_CIV_ALLEGIANCE; ICDBStructNode *_CIV_ALLEGIANCE;
ICDBStructNode *_THRESHOLD_TRADE; ICDBStructNode *_THRESHOLD_TRADE;
ICDBStructNode *_THRESHOLD_KOS; ICDBStructNode *_THRESHOLD_KOS;
TPLAYER _PLAYER[6]; TPLAYER _PLAYER[7];
TTRIBE _TRIBE[53]; TTRIBE _TRIBE[53];
@ -10073,7 +10091,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
} }
TPLAYER &getPLAYER(uint32 index) TPLAYER &getPLAYER(uint32 index)
{ {
nlassert(index < 6); nlassert(index < 7);
return _PLAYER[index]; return _PLAYER[index];
} }
TTRIBE &getTRIBE(uint32 index) TTRIBE &getTRIBE(uint32 index)
@ -10708,4 +10726,4 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
}; };
#endif // INCLUDED_DATABASE_PLR_H #endif // INCLUDED_database_PLR_H