include ryzom database.xml (and evaluate database_plr.cpp & database_plr.h)
This commit is contained in:
parent
05a96ceea3
commit
b3205fded6
3 changed files with 58 additions and 27 deletions
|
@ -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" />
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
@ -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,11 +3193,11 @@ 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);
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
@ -9082,6 +9096,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
|
||||||
ICDBStructNode *_DESPAWN;
|
ICDBStructNode *_DESPAWN;
|
||||||
ICDBStructNode *_NAME;
|
ICDBStructNode *_NAME;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void init(ICDBStructNode *parent, uint index);
|
void init(ICDBStructNode *parent, uint index);
|
||||||
|
|
||||||
|
@ -9272,6 +9287,8 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9287,13 +9304,14 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
|
||||||
{
|
{
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue