// Ryzom - MMORPG Framework
// Copyright (C) 2010 Winch Gate Property Limited
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
#ifndef INCLUDED_database_PLR_H
#define INCLUDED_database_PLR_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"
#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_PLR : public CCDBSynchronised
{
public:
static TCDBBank BankTag;
class TGameTime
{
public:
private:
ICDBStructNode *_BranchNode;
ICDBStructNode *_Hours;
public:
void init(ICDBStructNode *parent);
// accessor to branch node
ICDBStructNode *getCDBNode()
{
return _BranchNode;
}
void setHours(CCDBSynchronised &dbGroup, uint16 value, bool forceSending = false)
{
_setProp(dbGroup, _Hours, value, forceSending);
}
uint16 getHours(const CCDBSynchronised &dbGroup)
{
uint16 value;
_getProp(dbGroup, _Hours, value);
return value;
}
ICDBStructNode *getHoursCDBNode()
{
return _Hours;
}
};
class TINTERFACES
{
public:
private:
ICDBStructNode *_BranchNode;
ICDBStructNode *_FLAGS;
ICDBStructNode *_NB_BONUS_LANDMARKS;
public:
void init(ICDBStructNode *parent);
// accessor to branch node
ICDBStructNode *getCDBNode()
{
return _BranchNode;
}
void setFLAGS(CCDBSynchronised &dbGroup, uint64 value, bool forceSending = false)
{
_setProp(dbGroup, _FLAGS, value, forceSending);
}
uint64 getFLAGS(const CCDBSynchronised &dbGroup)
{
uint64 value;
_getProp(dbGroup, _FLAGS, value);
return value;
}
ICDBStructNode *getFLAGSCDBNode()
{
return _FLAGS;
}
void setNB_BONUS_LANDMARKS(CCDBSynchronised &dbGroup, uint16 value, bool forceSending = false)
{
_setProp(dbGroup, _NB_BONUS_LANDMARKS, value, forceSending);
}
uint16 getNB_BONUS_LANDMARKS(const CCDBSynchronised &dbGroup)
{
uint16 value;
_getProp(dbGroup, _NB_BONUS_LANDMARKS, value);
return value;
}
ICDBStructNode *getNB_BONUS_LANDMARKSCDBNode()
{
return _NB_BONUS_LANDMARKS;
}
};
class TUSER
{
public:
class TSKILL_POINTS_
{
public:
private:
ICDBStructNode *_BranchNode;
ICDBStructNode *_VALUE;
public:
void init(ICDBStructNode *parent, uint index);
// accessor to branch node
ICDBStructNode *getCDBNode()
{
return _BranchNode;
}
void setVALUE(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
{
_setProp(dbGroup, _VALUE, value, forceSending);
}
uint32 getVALUE(const CCDBSynchronised &dbGroup)
{
uint32 value;
_getProp(dbGroup, _VALUE, value);
return value;
}
ICDBStructNode *getVALUECDBNode()
{
return _VALUE;
}
};
class TFACTION_POINTS_
{
public:
private:
ICDBStructNode *_BranchNode;
ICDBStructNode *_VALUE;
public:
void init(ICDBStructNode *parent, uint index);
// accessor to branch node
ICDBStructNode *getCDBNode()
{
return _BranchNode;
}
void setVALUE(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
{
_setProp(dbGroup, _VALUE, value, forceSending);
}
uint32 getVALUE(const CCDBSynchronised &dbGroup)
{
uint32 value;
_getProp(dbGroup, _VALUE, value);
return value;
}
ICDBStructNode *getVALUECDBNode()
{
return _VALUE;
}
};
class TRRPS_LEVELS
{
public:
private:
ICDBStructNode *_BranchNode;
ICDBStructNode *_VALUE;
public:
void init(ICDBStructNode *parent, uint index);
// accessor to branch node
ICDBStructNode *getCDBNode()
{
return _BranchNode;
}
void setVALUE(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
{
_setProp(dbGroup, _VALUE, value, forceSending);
}
uint32 getVALUE(const CCDBSynchronised &dbGroup)
{
uint32 value;
_getProp(dbGroup, _VALUE, value);
return value;
}
ICDBStructNode *getVALUECDBNode()
{
return _VALUE;
}
};
class TNPC_CONTROL
{
public:
private:
ICDBStructNode *_BranchNode;
ICDBStructNode *_SHEET;
ICDBStructNode *_RUN;
ICDBStructNode *_WALK;
public:
void init(ICDBStructNode *parent);
// accessor to branch node
ICDBStructNode *getCDBNode()
{
return _BranchNode;
}
void setSHEET(CCDBSynchronised &dbGroup, NLMISC::CSheetId value, bool forceSending = false)
{
_setProp(dbGroup, _SHEET, value, forceSending);
}
NLMISC::CSheetId getSHEET(const CCDBSynchronised &dbGroup)
{
NLMISC::CSheetId value;
_getProp(dbGroup, _SHEET, value);
return value;
}
ICDBStructNode *getSHEETCDBNode()
{
return _SHEET;
}
void setRUN(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
{
_setProp(dbGroup, _RUN, value, forceSending);
}
uint32 getRUN(const CCDBSynchronised &dbGroup)
{
uint32 value;
_getProp(dbGroup, _RUN, value);
return value;
}
ICDBStructNode *getRUNCDBNode()
{
return _RUN;
}
void setWALK(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
{
_setProp(dbGroup, _WALK, value, forceSending);
}
uint32 getWALK(const CCDBSynchronised &dbGroup)
{
uint32 value;
_getProp(dbGroup, _WALK, value);
return value;
}
ICDBStructNode *getWALKCDBNode()
{
return _WALK;
}
};
private:
ICDBStructNode *_BranchNode;
ICDBStructNode *_HAIR_TYPE;
ICDBStructNode *_HAIR_COLOR;
ICDBStructNode *_DEATH_XP_MALUS;
ICDBStructNode *_IN_DUEL;
ICDBStructNode *_IN_PVP_CHALLENGE;
ICDBStructNode *_MOUNT_WALK_SPEED;
ICDBStructNode *_MOUNT_RUN_SPEED;
ICDBStructNode *_TEAM_MEMBER;
ICDBStructNode *_TEAM_LEADER;
ICDBStructNode *_OUTPOST_ADMIN;
ICDBStructNode *_BERSERK;
ICDBStructNode *_ACT_TSTART;
ICDBStructNode *_ACT_TEND;
ICDBStructNode *_ACT_TYPE;
ICDBStructNode *_ACT_NUMBER;
ICDBStructNode *_ACT_REFUSED_NUM;
ICDBStructNode *_ACT_CANCELED_NUM;
ICDBStructNode *_SPEED_FACTOR;
ICDBStructNode *_SKILL_POINTS;
ICDBStructNode *_IS_NEWBIE;
ICDBStructNode *_IS_TRIAL;
ICDBStructNode *_DEFAULT_WEIGHT_HANDS;
ICDBStructNode *_IS_INVISIBLE;
ICDBStructNode *_COUNTER;
TSKILL_POINTS_ _SKILL_POINTS_[4];
TFACTION_POINTS_ _FACTION_POINTS_[6];
TRRPS_LEVELS _RRPS_LEVELS[6];
TNPC_CONTROL _NPC_CONTROL;
public:
void init(ICDBStructNode *parent);
// accessor to branch node
ICDBStructNode *getCDBNode()
{
return _BranchNode;
}
void setHAIR_TYPE(CCDBSynchronised &dbGroup, uint8 value, bool forceSending = false)
{
_setProp(dbGroup, _HAIR_TYPE, value, forceSending);
}
uint8 getHAIR_TYPE(const CCDBSynchronised &dbGroup)
{
uint8 value;
_getProp(dbGroup, _HAIR_TYPE, value);
return value;
}
ICDBStructNode *getHAIR_TYPECDBNode()
{
return _HAIR_TYPE;
}
void setHAIR_COLOR(CCDBSynchronised &dbGroup, uint8 value, bool forceSending = false)
{
// Check that the value is not out of database precision
STOP_IF(value > (1<<3)-1, "setHAIR_COLOR : Value out of bound : trying to store "< (1<<4)-1, "setACT_TYPE : Value out of bound : trying to store "< (1<<4)-1, "setCOUNTER : Value out of bound : trying to store "< (1<<3)-1, "setPROTECTED_SLOT : Value out of bound : trying to store "< (1<<20)-1, "setUID : Value out of bound : trying to store "< (1<<7)-1, "setSAP : Value out of bound : trying to store "< (1<<7)-1, "setSTA : Value out of bound : trying to store "< (1<<7)-1, "setFOCUS : Value out of bound : trying to store "< (1<<2)-1, "setPRIORITY : Value out of bound : trying to store "< (1<<4)-1, "setCOUNTER : Value out of bound : trying to store "< (1<<3)-1, "setAGGRESSIVE : Value out of bound : trying to store "< (1<<4)-1, "setFORCE_RATIO : Value out of bound : trying to store "< (1<<20)-1, "setUID : Value out of bound : trying to store "< (1<<7)-1, "setSAP : Value out of bound : trying to store "< (1<<7)-1, "setSTA : Value out of bound : trying to store "< (1<<2)-1, "setTYPE : Value out of bound : trying to store "< (1<<2)-1, "setFINISHED : Value out of bound : trying to store "< (1<<4)-1, "setLEADER_INDEX : Value out of bound : trying to store "< (1<<4)-1, "setSUCCESSOR_INDEX : Value out of bound : trying to store "< (1<<10)-1, "setQUALITY : Value out of bound : trying to store "< (1<<10)-1, "setQUANTITY : Value out of bound : trying to store "< (1<<3)-1, "setUSER_COLOR : Value out of bound : trying to store "< (1<<10)-1, "setENCHANT : Value out of bound : trying to store "< (1<<3)-1, "setRM_CLASS_TYPE : Value out of bound : trying to store "< (1<<6)-1, "setRM_FABER_STAT_TYPE : Value out of bound : trying to store "< (1<<10)-1, "setQUALITY : Value out of bound : trying to store "< (1<<10)-1, "setQUANTITY : Value out of bound : trying to store "< (1<<3)-1, "setUSER_COLOR : Value out of bound : trying to store "< (1<<10)-1, "setENCHANT : Value out of bound : trying to store "< (1<<3)-1, "setRM_CLASS_TYPE : Value out of bound : trying to store "< (1<<6)-1, "setRM_FABER_STAT_TYPE : Value out of bound : trying to store "< (1<<4)-1, "setFORCE_REFUSE : Value out of bound : trying to store "< (1<<4)-1, "setCOUNTER : Value out of bound : trying to store "< (1<<9)-1, "setINDEX_IN_BAG : Value out of bound : trying to store "< (1<<9)-1, "setINDEX_IN_BAG : Value out of bound : trying to store "< (1<<12)-1, "setQUALITY : Value out of bound : trying to store "< (1<<12)-1, "setQUANTITY : Value out of bound : trying to store "< (1<<3)-1, "setUSER_COLOR : Value out of bound : trying to store "< (1<<10)-1, "setENCHANT : Value out of bound : trying to store "< (1<<3)-1, "setRM_CLASS_TYPE : Value out of bound : trying to store "< (1<<6)-1, "setRM_FABER_STAT_TYPE : Value out of bound : trying to store "< (1<<10)-1, "setQUALITY : Value out of bound : trying to store "< (1<<10)-1, "setQUANTITY : Value out of bound : trying to store "< (1<<3)-1, "setUSER_COLOR : Value out of bound : trying to store "< (1<<10)-1, "setENCHANT : Value out of bound : trying to store "< (1<<3)-1, "setRM_CLASS_TYPE : Value out of bound : trying to store "< (1<<6)-1, "setRM_FABER_STAT_TYPE : Value out of bound : trying to store "< (1<<4)-1, "setNB_MEMBER : Value out of bound : trying to store "< (1<<7)-1, "setCHANCE : Value out of bound : trying to store "< (1<<4)-1, "setCOUNTER : Value out of bound : trying to store "< (1<<2)-1, "setROLEMASTER_TYPE : Value out of bound : trying to store "< (1<<6)-1, "setPAGE_ID : Value out of bound : trying to store "< (1<<6)-1, "setPAGE_ID : Value out of bound : trying to store "< (1<<10)-1, "setQUALITY : Value out of bound : trying to store "< (1<<10)-1, "setQUANTITY : Value out of bound : trying to store "< (1<<3)-1, "setUSER_COLOR : Value out of bound : trying to store "< (1<<10)-1, "setENCHANT : Value out of bound : trying to store "< (1<<3)-1, "setRM_CLASS_TYPE : Value out of bound : trying to store "< (1<<6)-1, "setRM_FABER_STAT_TYPE : Value out of bound : trying to store "< (1<<4)-1, "setCURRENCY : Value out of bound : trying to store "< (1<<4)-1, "setRRP_LEVEL : Value out of bound : trying to store "< (1<<4)-1, "setBASE_SKILL : Value out of bound : trying to store "< (1<<4)-1, "setFACTION_TYPE : Value out of bound : trying to store "< (1<<2)-1, "setSLOT_TYPE : Value out of bound : trying to store "< (1<<3)-1, "setSELLER_TYPE : Value out of bound : trying to store "< (1<<7)-1, "setPAGE_ID : Value out of bound : trying to store "< (1<<6)-1, "setROLEMASTER_FLAGS : Value out of bound : trying to store "< (1<<2)-1, "setROLEMASTER_RACE : Value out of bound : trying to store "< (1<<2)-1, "setTYPE : Value out of bound : trying to store "< (1<<2)-1, "setFINISHED : Value out of bound : trying to store "< (1<<4)-1, "setCOUNTER : Value out of bound : trying to store "< (1<<7)-1, "setTARGET_HP : Value out of bound : trying to store "< (1<<7)-1, "setTARGET_SAP : Value out of bound : trying to store "< (1<<7)-1, "setTARGET_STA : Value out of bound : trying to store "< (1<<12)-1, "setVALUE : Value out of bound : trying to store "< (1<<24)-1, "setBase : Value out of bound : trying to store "< (1<<24)-1, "setMax : Value out of bound : trying to store "< (1<<24)-1, "setBaseRegen : Value out of bound : trying to store "< (1<<24)-1, "setRegen : Value out of bound : trying to store "< (1<<9)-1, "setVALUE : Value out of bound : trying to store "< (1<<9)-1, "setMaxResistanceBonus : Value out of bound : trying to store "< (1<<9)-1, "setVALUE : Value out of bound : trying to store "< (1<<9)-1, "setMaxProtectionClampValue : Value out of bound : trying to store "< (1<<9)-1, "setMaxAbsorptionFactor : Value out of bound : trying to store "< (1<<9)-1, "setBase : Value out of bound : trying to store "< (1<<9)-1, "setCurrent : Value out of bound : trying to store "< (1<<9)-1, "setBase : Value out of bound : trying to store "< (1<<9)-1, "setCurrent : Value out of bound : trying to store "< (1<<12)-1, "setSKILL : Value out of bound : trying to store "< (1<<12)-1, "setBaseSKILL : Value out of bound : trying to store "< (1<<12)-1, "setLevel : Value out of bound : trying to store "< (1<<12)-1, "setCount : Value out of bound : trying to store "< (1<<12)-1, "setLevel : Value out of bound : trying to store "< (1<<12)-1, "setCount : Value out of bound : trying to store "< (1<<20)-1, "setUID : Value out of bound : trying to store "< (1<<4)-1, "setTYPE : Value out of bound : trying to store "< (1<<4)-1, "setSTATUS : Value out of bound : trying to store "< (1<<7)-1, "setHP : Value out of bound : trying to store "< (1<<5)-1, "setHUNGER : Value out of bound : trying to store "< (1<<7)-1, "setDESPAWN : Value out of bound : trying to store "< (1<<3)-1, "setCULT_ALLEGIANCE : Value out of bound : trying to store "< (1<<3)-1, "setCIV_ALLEGIANCE : Value out of bound : trying to store "<