3 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
4 // Copyright (C) 2010 Winch Gate Property Limited
6 // This program is free software: you can redistribute it and/or modify
7 // it under the terms of the GNU Affero General Public License as
8 // published by the Free Software Foundation, either version 3 of the
9 // License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU Affero General Public License for more details.
16 // You should have received a copy of the GNU Affero General Public License
17 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 /////////////////////////////////////////////////////////////////
20 // WARNING : this is a generated file, don't change it !
21 /////////////////////////////////////////////////////////////////
23 #ifndef INCLUDED_DATABASE_database_PLR_H
24 #define INCLUDED_DATABASE_database_PLR_H
26 #include "nel/misc/string_common.h"
27 #include "cdb_group.h"
28 #include "player_manager/cdb.h"
29 #include "player_manager/cdb_synchronised.h"
34 #ifndef _SET_PROP_ACCESSOR_
35 #define _SET_PROP_ACCESSOR_
36 inline void _setProp(CCDBSynchronised
&db
, ICDBStructNode
*node
, bool value
, bool forceSending
= false)
38 db
.x_setProp(node
, uint64(value
), forceSending
);
40 inline void _setProp(CCDBSynchronised
&db
, ICDBStructNode
*node
, uint8 value
, bool forceSending
= false)
42 db
.x_setProp(node
, uint64(value
), forceSending
);
44 inline void _setProp(CCDBSynchronised
&db
, ICDBStructNode
*node
, uint16 value
, bool forceSending
= false)
46 db
.x_setProp(node
, uint64(value
), forceSending
);
48 inline void _setProp(CCDBSynchronised
&db
, ICDBStructNode
*node
, uint32 value
, bool forceSending
= false)
50 db
.x_setProp(node
, uint64(value
), forceSending
);
52 inline void _setProp(CCDBSynchronised
&db
, ICDBStructNode
*node
, uint64 value
, bool forceSending
= false)
54 db
.x_setProp(node
, uint64(value
), forceSending
);
56 inline void _setProp(CCDBSynchronised
&db
, ICDBStructNode
*node
, sint8 value
, bool forceSending
= false)
58 db
.x_setProp(node
, uint64(value
), forceSending
);
60 inline void _setProp(CCDBSynchronised
&db
, ICDBStructNode
*node
, sint16 value
, bool forceSending
= false)
62 db
.x_setProp(node
, uint64(value
), forceSending
);
64 inline void _setProp(CCDBSynchronised
&db
, ICDBStructNode
*node
, sint32 value
, bool forceSending
= false)
66 db
.x_setProp(node
, uint64(value
), forceSending
);
68 inline void _setProp(CCDBSynchronised
&db
, ICDBStructNode
*node
, sint64 value
, bool forceSending
= false)
70 db
.x_setProp(node
, uint64(value
), forceSending
);
72 inline void _setProp(CCDBSynchronised
&db
, ICDBStructNode
*node
, const std::string
&value
, bool forceSending
= false)
74 db
.x_setPropString(node
, value
, forceSending
);
76 inline void _setProp(CCDBSynchronised
&db
, ICDBStructNode
*node
, const ucstring
&value
, bool forceSending
= false)
78 db
.x_setPropString(node
, value
, forceSending
);
80 inline void _setProp(CCDBSynchronised
&db
, ICDBStructNode
*node
, const NLMISC::CSheetId
&value
, bool forceSending
= false)
82 db
.x_setProp(node
, uint64(value
.asInt()), forceSending
);
86 inline void _getProp(const CCDBSynchronised
&db
, ICDBStructNode
*node
, bool &value
)
88 value
= db
.x_getProp(node
) != 0;
90 inline void _getProp(const CCDBSynchronised
&db
, ICDBStructNode
*node
, uint8
&value
)
92 value
= uint8(db
.x_getProp(node
));
94 inline void _getProp(const CCDBSynchronised
&db
, ICDBStructNode
*node
, uint16
&value
)
96 value
= uint16(db
.x_getProp(node
));
98 inline void _getProp(const CCDBSynchronised
&db
, ICDBStructNode
*node
, uint32
&value
)
100 value
= uint32(db
.x_getProp(node
));
102 inline void _getProp(const CCDBSynchronised
&db
, ICDBStructNode
*node
, uint64
&value
)
104 value
= db
.x_getProp(node
);
106 inline void _getProp(const CCDBSynchronised
&db
, ICDBStructNode
*node
, sint8
&value
)
108 value
= uint8(db
.x_getProp(node
));
110 inline void _getProp(const CCDBSynchronised
&db
, ICDBStructNode
*node
, sint16
&value
)
112 value
= uint16(db
.x_getProp(node
));
114 inline void _getProp(const CCDBSynchronised
&db
, ICDBStructNode
*node
, sint32
&value
)
116 value
= uint32(db
.x_getProp(node
));
118 inline void _getProp(const CCDBSynchronised
&db
, ICDBStructNode
*node
, sint64
&value
)
120 value
= db
.x_getProp(node
);
122 inline void _getProp(const CCDBSynchronised
&db
, ICDBStructNode
*node
, std::string
&value
)
124 value
= db
.x_getPropString(node
);
126 inline void _getProp(const CCDBSynchronised
&db
, ICDBStructNode
*node
, ucstring
&value
)
128 value
= db
.x_getPropUcstring(node
);
130 inline void _getProp(const CCDBSynchronised
&db
, ICDBStructNode
*node
, NLMISC::CSheetId
&value
)
132 value
= uint32(db
.x_getProp(node
));
134 #endif // _SET_PROP_ACCESSOR_
138 class CBankAccessor_PLR
: public CCDBSynchronised
141 static TCDBBank BankTag
;
150 ICDBStructNode
*_BranchNode
;
152 ICDBStructNode
*_Hours
;
156 void init(ICDBStructNode
*parent
);
158 // accessor to branch node
159 ICDBStructNode
*getCDBNode()
165 void setHours(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
169 _setProp(dbGroup
, _Hours
, value
, forceSending
);
172 uint16
getHours(const CCDBSynchronised
&dbGroup
)
175 _getProp(dbGroup
, _Hours
, value
);
180 ICDBStructNode
*getHoursCDBNode()
193 ICDBStructNode
*_BranchNode
;
195 ICDBStructNode
*_FLAGS
;
196 ICDBStructNode
*_NB_BONUS_LANDMARKS
;
200 void init(ICDBStructNode
*parent
);
202 // accessor to branch node
203 ICDBStructNode
*getCDBNode()
209 void setFLAGS(CCDBSynchronised
&dbGroup
, uint64 value
, bool forceSending
= false)
213 _setProp(dbGroup
, _FLAGS
, value
, forceSending
);
216 uint64
getFLAGS(const CCDBSynchronised
&dbGroup
)
219 _getProp(dbGroup
, _FLAGS
, value
);
224 ICDBStructNode
*getFLAGSCDBNode()
229 void setNB_BONUS_LANDMARKS(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
233 _setProp(dbGroup
, _NB_BONUS_LANDMARKS
, value
, forceSending
);
236 uint16
getNB_BONUS_LANDMARKS(const CCDBSynchronised
&dbGroup
)
239 _getProp(dbGroup
, _NB_BONUS_LANDMARKS
, value
);
244 ICDBStructNode
*getNB_BONUS_LANDMARKSCDBNode()
246 return _NB_BONUS_LANDMARKS
;
261 ICDBStructNode
*_BranchNode
;
263 ICDBStructNode
*_VALUE
;
267 void init(ICDBStructNode
*parent
, uint index
);
269 // accessor to branch node
270 ICDBStructNode
*getCDBNode()
276 void setVALUE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
280 _setProp(dbGroup
, _VALUE
, value
, forceSending
);
283 uint32
getVALUE(const CCDBSynchronised
&dbGroup
)
286 _getProp(dbGroup
, _VALUE
, value
);
291 ICDBStructNode
*getVALUECDBNode()
298 class TFACTION_POINTS_
304 ICDBStructNode
*_BranchNode
;
306 ICDBStructNode
*_VALUE
;
310 void init(ICDBStructNode
*parent
, uint index
);
312 // accessor to branch node
313 ICDBStructNode
*getCDBNode()
319 void setVALUE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
323 _setProp(dbGroup
, _VALUE
, value
, forceSending
);
326 uint32
getVALUE(const CCDBSynchronised
&dbGroup
)
329 _getProp(dbGroup
, _VALUE
, value
);
334 ICDBStructNode
*getVALUECDBNode()
347 ICDBStructNode
*_BranchNode
;
349 ICDBStructNode
*_VALUE
;
353 void init(ICDBStructNode
*parent
, uint index
);
355 // accessor to branch node
356 ICDBStructNode
*getCDBNode()
362 void setVALUE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
366 _setProp(dbGroup
, _VALUE
, value
, forceSending
);
369 uint32
getVALUE(const CCDBSynchronised
&dbGroup
)
372 _getProp(dbGroup
, _VALUE
, value
);
377 ICDBStructNode
*getVALUECDBNode()
390 ICDBStructNode
*_BranchNode
;
392 ICDBStructNode
*_SHEET
;
393 ICDBStructNode
*_RUN
;
394 ICDBStructNode
*_WALK
;
398 void init(ICDBStructNode
*parent
);
400 // accessor to branch node
401 ICDBStructNode
*getCDBNode()
407 void setSHEET(CCDBSynchronised
&dbGroup
, NLMISC::CSheetId value
, bool forceSending
= false)
411 _setProp(dbGroup
, _SHEET
, value
, forceSending
);
414 NLMISC::CSheetId
getSHEET(const CCDBSynchronised
&dbGroup
)
416 NLMISC::CSheetId value
;
417 _getProp(dbGroup
, _SHEET
, value
);
422 ICDBStructNode
*getSHEETCDBNode()
427 void setRUN(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
431 _setProp(dbGroup
, _RUN
, value
, forceSending
);
434 uint32
getRUN(const CCDBSynchronised
&dbGroup
)
437 _getProp(dbGroup
, _RUN
, value
);
442 ICDBStructNode
*getRUNCDBNode()
447 void setWALK(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
451 _setProp(dbGroup
, _WALK
, value
, forceSending
);
454 uint32
getWALK(const CCDBSynchronised
&dbGroup
)
457 _getProp(dbGroup
, _WALK
, value
);
462 ICDBStructNode
*getWALKCDBNode()
471 ICDBStructNode
*_BranchNode
;
473 ICDBStructNode
*_HAIR_TYPE
;
474 ICDBStructNode
*_HAIR_COLOR
;
475 ICDBStructNode
*_DEATH_XP_MALUS
;
476 ICDBStructNode
*_IN_DUEL
;
477 ICDBStructNode
*_IN_PVP_CHALLENGE
;
478 ICDBStructNode
*_MOUNT_WALK_SPEED
;
479 ICDBStructNode
*_MOUNT_RUN_SPEED
;
480 ICDBStructNode
*_TEAM_MEMBER
;
481 ICDBStructNode
*_TEAM_LEADER
;
482 ICDBStructNode
*_OUTPOST_ADMIN
;
483 ICDBStructNode
*_BERSERK
;
484 ICDBStructNode
*_ACT_TSTART
;
485 ICDBStructNode
*_ACT_TEND
;
486 ICDBStructNode
*_ACT_TYPE
;
487 ICDBStructNode
*_ACT_NUMBER
;
488 ICDBStructNode
*_ACT_REFUSED_NUM
;
489 ICDBStructNode
*_ACT_CANCELED_NUM
;
490 ICDBStructNode
*_SPEED_FACTOR
;
491 ICDBStructNode
*_SKILL_POINTS
;
492 ICDBStructNode
*_IS_NEWBIE
;
493 ICDBStructNode
*_IS_TRIAL
;
494 ICDBStructNode
*_DEFAULT_WEIGHT_HANDS
;
495 ICDBStructNode
*_IS_INVISIBLE
;
496 ICDBStructNode
*_COUNTER
;
497 TSKILL_POINTS_ _SKILL_POINTS_
[4];
498 TFACTION_POINTS_ _FACTION_POINTS_
[7];
499 TRRPS_LEVELS _RRPS_LEVELS
[6];
500 TNPC_CONTROL _NPC_CONTROL
;
504 void init(ICDBStructNode
*parent
);
506 // accessor to branch node
507 ICDBStructNode
*getCDBNode()
513 void setHAIR_TYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
517 _setProp(dbGroup
, _HAIR_TYPE
, value
, forceSending
);
520 uint8
getHAIR_TYPE(const CCDBSynchronised
&dbGroup
)
523 _getProp(dbGroup
, _HAIR_TYPE
, value
);
528 ICDBStructNode
*getHAIR_TYPECDBNode()
533 void setHAIR_COLOR(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
536 // Check that the value is not out of database precision
537 STOP_IF(value
> (1<<3)-1, "setHAIR_COLOR : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 3 bits");
540 _setProp(dbGroup
, _HAIR_COLOR
, value
, forceSending
);
543 uint8
getHAIR_COLOR(const CCDBSynchronised
&dbGroup
)
546 _getProp(dbGroup
, _HAIR_COLOR
, value
);
551 ICDBStructNode
*getHAIR_COLORCDBNode()
556 void setDEATH_XP_MALUS(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
560 _setProp(dbGroup
, _DEATH_XP_MALUS
, value
, forceSending
);
563 uint8
getDEATH_XP_MALUS(const CCDBSynchronised
&dbGroup
)
566 _getProp(dbGroup
, _DEATH_XP_MALUS
, value
);
571 ICDBStructNode
*getDEATH_XP_MALUSCDBNode()
573 return _DEATH_XP_MALUS
;
576 void setIN_DUEL(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
580 _setProp(dbGroup
, _IN_DUEL
, value
, forceSending
);
583 bool getIN_DUEL(const CCDBSynchronised
&dbGroup
)
586 _getProp(dbGroup
, _IN_DUEL
, value
);
591 ICDBStructNode
*getIN_DUELCDBNode()
596 void setIN_PVP_CHALLENGE(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
600 _setProp(dbGroup
, _IN_PVP_CHALLENGE
, value
, forceSending
);
603 bool getIN_PVP_CHALLENGE(const CCDBSynchronised
&dbGroup
)
606 _getProp(dbGroup
, _IN_PVP_CHALLENGE
, value
);
611 ICDBStructNode
*getIN_PVP_CHALLENGECDBNode()
613 return _IN_PVP_CHALLENGE
;
616 void setMOUNT_WALK_SPEED(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
620 _setProp(dbGroup
, _MOUNT_WALK_SPEED
, value
, forceSending
);
623 uint16
getMOUNT_WALK_SPEED(const CCDBSynchronised
&dbGroup
)
626 _getProp(dbGroup
, _MOUNT_WALK_SPEED
, value
);
631 ICDBStructNode
*getMOUNT_WALK_SPEEDCDBNode()
633 return _MOUNT_WALK_SPEED
;
636 void setMOUNT_RUN_SPEED(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
640 _setProp(dbGroup
, _MOUNT_RUN_SPEED
, value
, forceSending
);
643 uint16
getMOUNT_RUN_SPEED(const CCDBSynchronised
&dbGroup
)
646 _getProp(dbGroup
, _MOUNT_RUN_SPEED
, value
);
651 ICDBStructNode
*getMOUNT_RUN_SPEEDCDBNode()
653 return _MOUNT_RUN_SPEED
;
656 void setTEAM_MEMBER(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
660 _setProp(dbGroup
, _TEAM_MEMBER
, value
, forceSending
);
663 bool getTEAM_MEMBER(const CCDBSynchronised
&dbGroup
)
666 _getProp(dbGroup
, _TEAM_MEMBER
, value
);
671 ICDBStructNode
*getTEAM_MEMBERCDBNode()
676 void setTEAM_LEADER(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
680 _setProp(dbGroup
, _TEAM_LEADER
, value
, forceSending
);
683 bool getTEAM_LEADER(const CCDBSynchronised
&dbGroup
)
686 _getProp(dbGroup
, _TEAM_LEADER
, value
);
691 ICDBStructNode
*getTEAM_LEADERCDBNode()
696 void setOUTPOST_ADMIN(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
700 _setProp(dbGroup
, _OUTPOST_ADMIN
, value
, forceSending
);
703 bool getOUTPOST_ADMIN(const CCDBSynchronised
&dbGroup
)
706 _getProp(dbGroup
, _OUTPOST_ADMIN
, value
);
711 ICDBStructNode
*getOUTPOST_ADMINCDBNode()
713 return _OUTPOST_ADMIN
;
716 void setBERSERK(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
720 _setProp(dbGroup
, _BERSERK
, value
, forceSending
);
723 bool getBERSERK(const CCDBSynchronised
&dbGroup
)
726 _getProp(dbGroup
, _BERSERK
, value
);
731 ICDBStructNode
*getBERSERKCDBNode()
736 void setACT_TSTART(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
740 _setProp(dbGroup
, _ACT_TSTART
, value
, forceSending
);
743 uint32
getACT_TSTART(const CCDBSynchronised
&dbGroup
)
746 _getProp(dbGroup
, _ACT_TSTART
, value
);
751 ICDBStructNode
*getACT_TSTARTCDBNode()
756 void setACT_TEND(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
760 _setProp(dbGroup
, _ACT_TEND
, value
, forceSending
);
763 uint32
getACT_TEND(const CCDBSynchronised
&dbGroup
)
766 _getProp(dbGroup
, _ACT_TEND
, value
);
771 ICDBStructNode
*getACT_TENDCDBNode()
776 void setACT_TYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
779 // Check that the value is not out of database precision
780 STOP_IF(value
> (1<<4)-1, "setACT_TYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 4 bits");
783 _setProp(dbGroup
, _ACT_TYPE
, value
, forceSending
);
786 uint8
getACT_TYPE(const CCDBSynchronised
&dbGroup
)
789 _getProp(dbGroup
, _ACT_TYPE
, value
);
794 ICDBStructNode
*getACT_TYPECDBNode()
799 void setACT_NUMBER(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
803 _setProp(dbGroup
, _ACT_NUMBER
, value
, forceSending
);
806 uint8
getACT_NUMBER(const CCDBSynchronised
&dbGroup
)
809 _getProp(dbGroup
, _ACT_NUMBER
, value
);
814 ICDBStructNode
*getACT_NUMBERCDBNode()
819 void setACT_REFUSED_NUM(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
823 _setProp(dbGroup
, _ACT_REFUSED_NUM
, value
, forceSending
);
826 uint8
getACT_REFUSED_NUM(const CCDBSynchronised
&dbGroup
)
829 _getProp(dbGroup
, _ACT_REFUSED_NUM
, value
);
834 ICDBStructNode
*getACT_REFUSED_NUMCDBNode()
836 return _ACT_REFUSED_NUM
;
839 void setACT_CANCELED_NUM(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
843 _setProp(dbGroup
, _ACT_CANCELED_NUM
, value
, forceSending
);
846 uint8
getACT_CANCELED_NUM(const CCDBSynchronised
&dbGroup
)
849 _getProp(dbGroup
, _ACT_CANCELED_NUM
, value
);
854 ICDBStructNode
*getACT_CANCELED_NUMCDBNode()
856 return _ACT_CANCELED_NUM
;
859 void setSPEED_FACTOR(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
863 _setProp(dbGroup
, _SPEED_FACTOR
, value
, forceSending
);
866 uint8
getSPEED_FACTOR(const CCDBSynchronised
&dbGroup
)
869 _getProp(dbGroup
, _SPEED_FACTOR
, value
);
874 ICDBStructNode
*getSPEED_FACTORCDBNode()
876 return _SPEED_FACTOR
;
879 void setSKILL_POINTS(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
883 _setProp(dbGroup
, _SKILL_POINTS
, value
, forceSending
);
886 uint32
getSKILL_POINTS(const CCDBSynchronised
&dbGroup
)
889 _getProp(dbGroup
, _SKILL_POINTS
, value
);
894 ICDBStructNode
*getSKILL_POINTSCDBNode()
896 return _SKILL_POINTS
;
899 void setIS_NEWBIE(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
903 _setProp(dbGroup
, _IS_NEWBIE
, value
, forceSending
);
906 bool getIS_NEWBIE(const CCDBSynchronised
&dbGroup
)
909 _getProp(dbGroup
, _IS_NEWBIE
, value
);
914 ICDBStructNode
*getIS_NEWBIECDBNode()
919 void setIS_TRIAL(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
923 _setProp(dbGroup
, _IS_TRIAL
, value
, forceSending
);
926 bool getIS_TRIAL(const CCDBSynchronised
&dbGroup
)
929 _getProp(dbGroup
, _IS_TRIAL
, value
);
934 ICDBStructNode
*getIS_TRIALCDBNode()
939 void setDEFAULT_WEIGHT_HANDS(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
943 _setProp(dbGroup
, _DEFAULT_WEIGHT_HANDS
, value
, forceSending
);
946 uint32
getDEFAULT_WEIGHT_HANDS(const CCDBSynchronised
&dbGroup
)
949 _getProp(dbGroup
, _DEFAULT_WEIGHT_HANDS
, value
);
954 ICDBStructNode
*getDEFAULT_WEIGHT_HANDSCDBNode()
956 return _DEFAULT_WEIGHT_HANDS
;
959 void setIS_INVISIBLE(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
963 _setProp(dbGroup
, _IS_INVISIBLE
, value
, forceSending
);
966 bool getIS_INVISIBLE(const CCDBSynchronised
&dbGroup
)
969 _getProp(dbGroup
, _IS_INVISIBLE
, value
);
974 ICDBStructNode
*getIS_INVISIBLECDBNode()
976 return _IS_INVISIBLE
;
979 void setCOUNTER(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
982 // Check that the value is not out of database precision
983 STOP_IF(value
> (1<<4)-1, "setCOUNTER : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 4 bits");
986 _setProp(dbGroup
, _COUNTER
, value
, forceSending
);
989 uint8
getCOUNTER(const CCDBSynchronised
&dbGroup
)
992 _getProp(dbGroup
, _COUNTER
, value
);
997 ICDBStructNode
*getCOUNTERCDBNode()
1001 TSKILL_POINTS_
&getSKILL_POINTS_(uint32 index
)
1003 nlassert(index
< 4);
1004 return _SKILL_POINTS_
[index
];
1006 TFACTION_POINTS_
&getFACTION_POINTS_(uint32 index
)
1008 nlassert(index
< 7);
1009 return _FACTION_POINTS_
[index
];
1011 TRRPS_LEVELS
&getRRPS_LEVELS(uint32 index
)
1013 nlassert(index
< 6);
1014 return _RRPS_LEVELS
[index
];
1016 TNPC_CONTROL
&getNPC_CONTROL()
1018 return _NPC_CONTROL
;
1037 ICDBStructNode
*_BranchNode
;
1039 ICDBStructNode
*_MODIFIER
;
1043 void init(ICDBStructNode
*parent
, uint index
);
1045 // accessor to branch node
1046 ICDBStructNode
*getCDBNode()
1052 void setMODIFIER(CCDBSynchronised
&dbGroup
, sint8 value
, bool forceSending
= false)
1056 _setProp(dbGroup
, _MODIFIER
, value
, forceSending
);
1059 sint8
getMODIFIER(const CCDBSynchronised
&dbGroup
)
1062 _getProp(dbGroup
, _MODIFIER
, value
);
1067 ICDBStructNode
*getMODIFIERCDBNode()
1076 ICDBStructNode
*_BranchNode
;
1082 void init(ICDBStructNode
*parent
);
1084 // accessor to branch node
1085 ICDBStructNode
*getCDBNode()
1090 TArray
&getArray(uint32 index
)
1092 nlassert(index
< 6);
1093 return _Array
[index
];
1100 ICDBStructNode
*_BranchNode
;
1102 ICDBStructNode
*_DEFENSE_MODE
;
1103 ICDBStructNode
*_PROTECTED_SLOT
;
1108 void init(ICDBStructNode
*parent
);
1110 // accessor to branch node
1111 ICDBStructNode
*getCDBNode()
1117 void setDEFENSE_MODE(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
1121 _setProp(dbGroup
, _DEFENSE_MODE
, value
, forceSending
);
1124 bool getDEFENSE_MODE(const CCDBSynchronised
&dbGroup
)
1127 _getProp(dbGroup
, _DEFENSE_MODE
, value
);
1132 ICDBStructNode
*getDEFENSE_MODECDBNode()
1134 return _DEFENSE_MODE
;
1137 void setPROTECTED_SLOT(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
1140 // Check that the value is not out of database precision
1141 STOP_IF(value
> (1<<3)-1, "setPROTECTED_SLOT : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 3 bits");
1144 _setProp(dbGroup
, _PROTECTED_SLOT
, value
, forceSending
);
1147 uint8
getPROTECTED_SLOT(const CCDBSynchronised
&dbGroup
)
1150 _getProp(dbGroup
, _PROTECTED_SLOT
, value
);
1155 ICDBStructNode
*getPROTECTED_SLOTCDBNode()
1157 return _PROTECTED_SLOT
;
1170 class TBRICK_TICK_RANGE
1180 ICDBStructNode
*_BranchNode
;
1182 ICDBStructNode
*_TICK_RANGE
;
1186 void init(ICDBStructNode
*parent
, uint index
);
1188 // accessor to branch node
1189 ICDBStructNode
*getCDBNode()
1195 void setTICK_RANGE(CCDBSynchronised
&dbGroup
, uint64 value
, bool forceSending
= false)
1199 _setProp(dbGroup
, _TICK_RANGE
, value
, forceSending
);
1202 uint64
getTICK_RANGE(const CCDBSynchronised
&dbGroup
)
1205 _getProp(dbGroup
, _TICK_RANGE
, value
);
1210 ICDBStructNode
*getTICK_RANGECDBNode()
1219 ICDBStructNode
*_BranchNode
;
1225 void init(ICDBStructNode
*parent
);
1227 // accessor to branch node
1228 ICDBStructNode
*getCDBNode()
1233 TArray
&getArray(uint32 index
)
1235 nlassert(index
< 64);
1236 return _Array
[index
];
1243 ICDBStructNode
*_BranchNode
;
1245 ICDBStructNode
*_CRITICAL
;
1246 ICDBStructNode
*_PARRY
;
1247 ICDBStructNode
*_DODGE
;
1248 TBRICK_TICK_RANGE _BRICK_TICK_RANGE
;
1252 void init(ICDBStructNode
*parent
);
1254 // accessor to branch node
1255 ICDBStructNode
*getCDBNode()
1261 void setCRITICAL(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
1265 _setProp(dbGroup
, _CRITICAL
, value
, forceSending
);
1268 uint8
getCRITICAL(const CCDBSynchronised
&dbGroup
)
1271 _getProp(dbGroup
, _CRITICAL
, value
);
1276 ICDBStructNode
*getCRITICALCDBNode()
1281 void setPARRY(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
1285 _setProp(dbGroup
, _PARRY
, value
, forceSending
);
1288 uint8
getPARRY(const CCDBSynchronised
&dbGroup
)
1291 _getProp(dbGroup
, _PARRY
, value
);
1296 ICDBStructNode
*getPARRYCDBNode()
1301 void setDODGE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
1305 _setProp(dbGroup
, _DODGE
, value
, forceSending
);
1308 uint8
getDODGE(const CCDBSynchronised
&dbGroup
)
1311 _getProp(dbGroup
, _DODGE
, value
);
1316 ICDBStructNode
*getDODGECDBNode()
1320 TBRICK_TICK_RANGE
&getBRICK_TICK_RANGE()
1322 return _BRICK_TICK_RANGE
;
1337 ICDBStructNode
*_BranchNode
;
1339 ICDBStructNode
*_UID
;
1340 ICDBStructNode
*_HP
;
1341 ICDBStructNode
*_SAP
;
1342 ICDBStructNode
*_STA
;
1343 ICDBStructNode
*_FOCUS
;
1344 ICDBStructNode
*_PLAYER_LEVEL
;
1348 void init(ICDBStructNode
*parent
);
1350 // accessor to branch node
1351 ICDBStructNode
*getCDBNode()
1357 void setUID(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
1360 // Check that the value is not out of database precision
1361 STOP_IF(value
> (1<<20)-1, "setUID : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 20 bits");
1364 _setProp(dbGroup
, _UID
, value
, forceSending
);
1367 uint32
getUID(const CCDBSynchronised
&dbGroup
)
1370 _getProp(dbGroup
, _UID
, value
);
1375 ICDBStructNode
*getUIDCDBNode()
1380 void setHP(CCDBSynchronised
&dbGroup
, sint8 value
, bool forceSending
= false)
1384 _setProp(dbGroup
, _HP
, value
, forceSending
);
1387 sint8
getHP(const CCDBSynchronised
&dbGroup
)
1390 _getProp(dbGroup
, _HP
, value
);
1395 ICDBStructNode
*getHPCDBNode()
1400 void setSAP(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
1403 // Check that the value is not out of database precision
1404 STOP_IF(value
> (1<<7)-1, "setSAP : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 7 bits");
1407 _setProp(dbGroup
, _SAP
, value
, forceSending
);
1410 uint8
getSAP(const CCDBSynchronised
&dbGroup
)
1413 _getProp(dbGroup
, _SAP
, value
);
1418 ICDBStructNode
*getSAPCDBNode()
1423 void setSTA(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
1426 // Check that the value is not out of database precision
1427 STOP_IF(value
> (1<<7)-1, "setSTA : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 7 bits");
1430 _setProp(dbGroup
, _STA
, value
, forceSending
);
1433 uint8
getSTA(const CCDBSynchronised
&dbGroup
)
1436 _getProp(dbGroup
, _STA
, value
);
1441 ICDBStructNode
*getSTACDBNode()
1446 void setFOCUS(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
1449 // Check that the value is not out of database precision
1450 STOP_IF(value
> (1<<7)-1, "setFOCUS : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 7 bits");
1453 _setProp(dbGroup
, _FOCUS
, value
, forceSending
);
1456 uint8
getFOCUS(const CCDBSynchronised
&dbGroup
)
1459 _getProp(dbGroup
, _FOCUS
, value
);
1464 ICDBStructNode
*getFOCUSCDBNode()
1469 void setPLAYER_LEVEL(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
1473 _setProp(dbGroup
, _PLAYER_LEVEL
, value
, forceSending
);
1476 uint8
getPLAYER_LEVEL(const CCDBSynchronised
&dbGroup
)
1479 _getProp(dbGroup
, _PLAYER_LEVEL
, value
);
1484 ICDBStructNode
*getPLAYER_LEVELCDBNode()
1486 return _PLAYER_LEVEL
;
1495 class TMISSIONS_OPTIONS
1505 ICDBStructNode
*_BranchNode
;
1507 ICDBStructNode
*_TITLE
;
1508 ICDBStructNode
*_PLAYER_GIFT_NEEDED
;
1509 ICDBStructNode
*_PRIORITY
;
1513 void init(ICDBStructNode
*parent
, uint index
);
1515 // accessor to branch node
1516 ICDBStructNode
*getCDBNode()
1522 void setTITLE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
1526 _setProp(dbGroup
, _TITLE
, value
, forceSending
);
1529 uint32
getTITLE(const CCDBSynchronised
&dbGroup
)
1532 _getProp(dbGroup
, _TITLE
, value
);
1537 ICDBStructNode
*getTITLECDBNode()
1542 void setPLAYER_GIFT_NEEDED(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
1546 _setProp(dbGroup
, _PLAYER_GIFT_NEEDED
, value
, forceSending
);
1549 bool getPLAYER_GIFT_NEEDED(const CCDBSynchronised
&dbGroup
)
1552 _getProp(dbGroup
, _PLAYER_GIFT_NEEDED
, value
);
1557 ICDBStructNode
*getPLAYER_GIFT_NEEDEDCDBNode()
1559 return _PLAYER_GIFT_NEEDED
;
1562 void setPRIORITY(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
1565 // Check that the value is not out of database precision
1566 STOP_IF(value
> (1<<2)-1, "setPRIORITY : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 2 bits");
1569 _setProp(dbGroup
, _PRIORITY
, value
, forceSending
);
1572 uint8
getPRIORITY(const CCDBSynchronised
&dbGroup
)
1575 _getProp(dbGroup
, _PRIORITY
, value
);
1580 ICDBStructNode
*getPRIORITYCDBNode()
1589 ICDBStructNode
*_BranchNode
;
1595 void init(ICDBStructNode
*parent
);
1597 // accessor to branch node
1598 ICDBStructNode
*getCDBNode()
1603 TArray
&getArray(uint32 index
)
1605 nlassert(index
< 8);
1606 return _Array
[index
];
1621 ICDBStructNode
*_BranchNode
;
1623 ICDBStructNode
*_TITLE
;
1624 ICDBStructNode
*_ID
;
1628 void init(ICDBStructNode
*parent
, uint index
);
1630 // accessor to branch node
1631 ICDBStructNode
*getCDBNode()
1637 void setTITLE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
1641 _setProp(dbGroup
, _TITLE
, value
, forceSending
);
1644 uint32
getTITLE(const CCDBSynchronised
&dbGroup
)
1647 _getProp(dbGroup
, _TITLE
, value
);
1652 ICDBStructNode
*getTITLECDBNode()
1657 void setID(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
1661 _setProp(dbGroup
, _ID
, value
, forceSending
);
1664 uint32
getID(const CCDBSynchronised
&dbGroup
)
1667 _getProp(dbGroup
, _ID
, value
);
1672 ICDBStructNode
*getIDCDBNode()
1681 ICDBStructNode
*_BranchNode
;
1687 void init(ICDBStructNode
*parent
);
1689 // accessor to branch node
1690 ICDBStructNode
*getCDBNode()
1695 TArray
&getArray(uint32 index
)
1697 nlassert(index
< 4);
1698 return _Array
[index
];
1705 ICDBStructNode
*_BranchNode
;
1707 ICDBStructNode
*_PROGRAMMES
;
1708 ICDBStructNode
*_WEB_PAGE_TITLE
;
1709 ICDBStructNode
*_WEB_PAGE_URL
;
1710 ICDBStructNode
*_OUTPOST
;
1711 ICDBStructNode
*_COUNTER
;
1712 TMISSIONS_OPTIONS _MISSIONS_OPTIONS
;
1713 TMISSION_RING _MISSION_RING
;
1717 void init(ICDBStructNode
*parent
);
1719 // accessor to branch node
1720 ICDBStructNode
*getCDBNode()
1726 void setPROGRAMMES(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
1730 _setProp(dbGroup
, _PROGRAMMES
, value
, forceSending
);
1733 uint32
getPROGRAMMES(const CCDBSynchronised
&dbGroup
)
1736 _getProp(dbGroup
, _PROGRAMMES
, value
);
1741 ICDBStructNode
*getPROGRAMMESCDBNode()
1746 void setWEB_PAGE_TITLE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
1750 _setProp(dbGroup
, _WEB_PAGE_TITLE
, value
, forceSending
);
1753 uint32
getWEB_PAGE_TITLE(const CCDBSynchronised
&dbGroup
)
1756 _getProp(dbGroup
, _WEB_PAGE_TITLE
, value
);
1761 ICDBStructNode
*getWEB_PAGE_TITLECDBNode()
1763 return _WEB_PAGE_TITLE
;
1766 void setWEB_PAGE_URL(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
1770 _setProp(dbGroup
, _WEB_PAGE_URL
, value
, forceSending
);
1773 uint32
getWEB_PAGE_URL(const CCDBSynchronised
&dbGroup
)
1776 _getProp(dbGroup
, _WEB_PAGE_URL
, value
);
1781 ICDBStructNode
*getWEB_PAGE_URLCDBNode()
1783 return _WEB_PAGE_URL
;
1786 void setOUTPOST(CCDBSynchronised
&dbGroup
, NLMISC::CSheetId value
, bool forceSending
= false)
1790 _setProp(dbGroup
, _OUTPOST
, value
, forceSending
);
1793 NLMISC::CSheetId
getOUTPOST(const CCDBSynchronised
&dbGroup
)
1795 NLMISC::CSheetId value
;
1796 _getProp(dbGroup
, _OUTPOST
, value
);
1801 ICDBStructNode
*getOUTPOSTCDBNode()
1806 void setCOUNTER(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
1809 // Check that the value is not out of database precision
1810 STOP_IF(value
> (1<<4)-1, "setCOUNTER : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 4 bits");
1813 _setProp(dbGroup
, _COUNTER
, value
, forceSending
);
1816 uint8
getCOUNTER(const CCDBSynchronised
&dbGroup
)
1819 _getProp(dbGroup
, _COUNTER
, value
);
1824 ICDBStructNode
*getCOUNTERCDBNode()
1828 TMISSIONS_OPTIONS
&getMISSIONS_OPTIONS()
1830 return _MISSIONS_OPTIONS
;
1832 TMISSION_RING
&getMISSION_RING()
1834 return _MISSION_RING
;
1841 ICDBStructNode
*_BranchNode
;
1843 ICDBStructNode
*_CONTEXT_VAL
;
1844 ICDBStructNode
*_AGGRESSIVE
;
1845 ICDBStructNode
*_FORCE_RATIO
;
1847 TCONTEXT_MENU _CONTEXT_MENU
;
1851 void init(ICDBStructNode
*parent
);
1853 // accessor to branch node
1854 ICDBStructNode
*getCDBNode()
1860 void setCONTEXT_VAL(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
1864 _setProp(dbGroup
, _CONTEXT_VAL
, value
, forceSending
);
1867 uint16
getCONTEXT_VAL(const CCDBSynchronised
&dbGroup
)
1870 _getProp(dbGroup
, _CONTEXT_VAL
, value
);
1875 ICDBStructNode
*getCONTEXT_VALCDBNode()
1877 return _CONTEXT_VAL
;
1880 void setAGGRESSIVE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
1883 // Check that the value is not out of database precision
1884 STOP_IF(value
> (1<<3)-1, "setAGGRESSIVE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 3 bits");
1887 _setProp(dbGroup
, _AGGRESSIVE
, value
, forceSending
);
1890 uint8
getAGGRESSIVE(const CCDBSynchronised
&dbGroup
)
1893 _getProp(dbGroup
, _AGGRESSIVE
, value
);
1898 ICDBStructNode
*getAGGRESSIVECDBNode()
1903 void setFORCE_RATIO(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
1906 // Check that the value is not out of database precision
1907 STOP_IF(value
> (1<<4)-1, "setFORCE_RATIO : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 4 bits");
1910 _setProp(dbGroup
, _FORCE_RATIO
, value
, forceSending
);
1913 uint8
getFORCE_RATIO(const CCDBSynchronised
&dbGroup
)
1916 _getProp(dbGroup
, _FORCE_RATIO
, value
);
1921 ICDBStructNode
*getFORCE_RATIOCDBNode()
1923 return _FORCE_RATIO
;
1929 TCONTEXT_MENU
&getCONTEXT_MENU()
1931 return _CONTEXT_MENU
;
1946 ICDBStructNode
*_BranchNode
;
1948 ICDBStructNode
*_PRESENT
;
1949 ICDBStructNode
*_UID
;
1950 ICDBStructNode
*_NAME
;
1951 ICDBStructNode
*_HP
;
1952 ICDBStructNode
*_SAP
;
1953 ICDBStructNode
*_STA
;
1954 ICDBStructNode
*_POS
;
1958 void init(ICDBStructNode
*parent
, uint index
);
1960 // accessor to branch node
1961 ICDBStructNode
*getCDBNode()
1967 void setPRESENT(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
1971 _setProp(dbGroup
, _PRESENT
, value
, forceSending
);
1974 bool getPRESENT(const CCDBSynchronised
&dbGroup
)
1977 _getProp(dbGroup
, _PRESENT
, value
);
1982 ICDBStructNode
*getPRESENTCDBNode()
1987 void setUID(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
1990 // Check that the value is not out of database precision
1991 STOP_IF(value
> (1<<20)-1, "setUID : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 20 bits");
1994 _setProp(dbGroup
, _UID
, value
, forceSending
);
1997 uint32
getUID(const CCDBSynchronised
&dbGroup
)
2000 _getProp(dbGroup
, _UID
, value
);
2005 ICDBStructNode
*getUIDCDBNode()
2010 void setNAME(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
2014 _setProp(dbGroup
, _NAME
, value
, forceSending
);
2017 uint32
getNAME(const CCDBSynchronised
&dbGroup
)
2020 _getProp(dbGroup
, _NAME
, value
);
2025 ICDBStructNode
*getNAMECDBNode()
2030 void setHP(CCDBSynchronised
&dbGroup
, sint8 value
, bool forceSending
= false)
2034 _setProp(dbGroup
, _HP
, value
, forceSending
);
2037 sint8
getHP(const CCDBSynchronised
&dbGroup
)
2040 _getProp(dbGroup
, _HP
, value
);
2045 ICDBStructNode
*getHPCDBNode()
2050 void setSAP(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
2053 // Check that the value is not out of database precision
2054 STOP_IF(value
> (1<<7)-1, "setSAP : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 7 bits");
2057 _setProp(dbGroup
, _SAP
, value
, forceSending
);
2060 uint8
getSAP(const CCDBSynchronised
&dbGroup
)
2063 _getProp(dbGroup
, _SAP
, value
);
2068 ICDBStructNode
*getSAPCDBNode()
2073 void setSTA(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
2076 // Check that the value is not out of database precision
2077 STOP_IF(value
> (1<<7)-1, "setSTA : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 7 bits");
2080 _setProp(dbGroup
, _STA
, value
, forceSending
);
2083 uint8
getSTA(const CCDBSynchronised
&dbGroup
)
2086 _getProp(dbGroup
, _STA
, value
);
2091 ICDBStructNode
*getSTACDBNode()
2096 void setPOS(CCDBSynchronised
&dbGroup
, uint64 value
, bool forceSending
= false)
2100 _setProp(dbGroup
, _POS
, value
, forceSending
);
2103 uint64
getPOS(const CCDBSynchronised
&dbGroup
)
2106 _getProp(dbGroup
, _POS
, value
);
2111 ICDBStructNode
*getPOSCDBNode()
2136 ICDBStructNode
*_BranchNode
;
2138 ICDBStructNode
*_TEXT
;
2139 ICDBStructNode
*_NPC_ALIAS
;
2143 void init(ICDBStructNode
*parent
, uint index
);
2145 // accessor to branch node
2146 ICDBStructNode
*getCDBNode()
2152 void setTEXT(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
2156 _setProp(dbGroup
, _TEXT
, value
, forceSending
);
2159 uint32
getTEXT(const CCDBSynchronised
&dbGroup
)
2162 _getProp(dbGroup
, _TEXT
, value
);
2167 ICDBStructNode
*getTEXTCDBNode()
2172 void setNPC_ALIAS(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
2176 _setProp(dbGroup
, _NPC_ALIAS
, value
, forceSending
);
2179 uint32
getNPC_ALIAS(const CCDBSynchronised
&dbGroup
)
2182 _getProp(dbGroup
, _NPC_ALIAS
, value
);
2187 ICDBStructNode
*getNPC_ALIASCDBNode()
2196 ICDBStructNode
*_BranchNode
;
2202 void init(ICDBStructNode
*parent
);
2204 // accessor to branch node
2205 ICDBStructNode
*getCDBNode()
2210 TArray
&getArray(uint32 index
)
2212 nlassert(index
< 20);
2213 return _Array
[index
];
2224 ICDBStructNode
*_BranchNode
;
2226 ICDBStructNode
*_TITLE
;
2232 void init(ICDBStructNode
*parent
, uint index
);
2234 // accessor to branch node
2235 ICDBStructNode
*getCDBNode()
2241 void setTITLE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
2245 _setProp(dbGroup
, _TITLE
, value
, forceSending
);
2248 uint32
getTITLE(const CCDBSynchronised
&dbGroup
)
2251 _getProp(dbGroup
, _TITLE
, value
);
2256 ICDBStructNode
*getTITLECDBNode()
2261 void setX(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
2265 _setProp(dbGroup
, _X
, value
, forceSending
);
2268 uint32
getX(const CCDBSynchronised
&dbGroup
)
2271 _getProp(dbGroup
, _X
, value
);
2276 ICDBStructNode
*getXCDBNode()
2281 void setY(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
2285 _setProp(dbGroup
, _Y
, value
, forceSending
);
2288 uint32
getY(const CCDBSynchronised
&dbGroup
)
2291 _getProp(dbGroup
, _Y
, value
);
2296 ICDBStructNode
*getYCDBNode()
2313 ICDBStructNode
*_BranchNode
;
2315 ICDBStructNode
*_TEXT
;
2319 void init(ICDBStructNode
*parent
, uint index
);
2321 // accessor to branch node
2322 ICDBStructNode
*getCDBNode()
2328 void setTEXT(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
2332 _setProp(dbGroup
, _TEXT
, value
, forceSending
);
2335 uint32
getTEXT(const CCDBSynchronised
&dbGroup
)
2338 _getProp(dbGroup
, _TEXT
, value
);
2343 ICDBStructNode
*getTEXTCDBNode()
2352 ICDBStructNode
*_BranchNode
;
2358 void init(ICDBStructNode
*parent
);
2360 // accessor to branch node
2361 ICDBStructNode
*getCDBNode()
2366 TArray
&getArray(uint32 index
)
2368 nlassert(index
< 30);
2369 return _Array
[index
];
2376 ICDBStructNode
*_BranchNode
;
2378 ICDBStructNode
*_TYPE
;
2379 ICDBStructNode
*_ICON
;
2380 ICDBStructNode
*_TITLE
;
2381 ICDBStructNode
*_DETAIL_TEXT
;
2382 ICDBStructNode
*_BEGIN_DATE
;
2383 ICDBStructNode
*_END_DATE
;
2384 ICDBStructNode
*_OR_STEPS
;
2385 ICDBStructNode
*_FINISHED
;
2386 ICDBStructNode
*_ABANDONNABLE
;
2387 ICDBStructNode
*_SLEEP
;
2394 void init(ICDBStructNode
*parent
, uint index
);
2396 // accessor to branch node
2397 ICDBStructNode
*getCDBNode()
2403 void setTYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
2406 // Check that the value is not out of database precision
2407 STOP_IF(value
> (1<<2)-1, "setTYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 2 bits");
2410 _setProp(dbGroup
, _TYPE
, value
, forceSending
);
2413 uint8
getTYPE(const CCDBSynchronised
&dbGroup
)
2416 _getProp(dbGroup
, _TYPE
, value
);
2421 ICDBStructNode
*getTYPECDBNode()
2426 void setICON(CCDBSynchronised
&dbGroup
, NLMISC::CSheetId value
, bool forceSending
= false)
2430 _setProp(dbGroup
, _ICON
, value
, forceSending
);
2433 NLMISC::CSheetId
getICON(const CCDBSynchronised
&dbGroup
)
2435 NLMISC::CSheetId value
;
2436 _getProp(dbGroup
, _ICON
, value
);
2441 ICDBStructNode
*getICONCDBNode()
2446 void setTITLE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
2450 _setProp(dbGroup
, _TITLE
, value
, forceSending
);
2453 uint32
getTITLE(const CCDBSynchronised
&dbGroup
)
2456 _getProp(dbGroup
, _TITLE
, value
);
2461 ICDBStructNode
*getTITLECDBNode()
2466 void setDETAIL_TEXT(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
2470 _setProp(dbGroup
, _DETAIL_TEXT
, value
, forceSending
);
2473 uint32
getDETAIL_TEXT(const CCDBSynchronised
&dbGroup
)
2476 _getProp(dbGroup
, _DETAIL_TEXT
, value
);
2481 ICDBStructNode
*getDETAIL_TEXTCDBNode()
2483 return _DETAIL_TEXT
;
2486 void setBEGIN_DATE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
2490 _setProp(dbGroup
, _BEGIN_DATE
, value
, forceSending
);
2493 uint32
getBEGIN_DATE(const CCDBSynchronised
&dbGroup
)
2496 _getProp(dbGroup
, _BEGIN_DATE
, value
);
2501 ICDBStructNode
*getBEGIN_DATECDBNode()
2506 void setEND_DATE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
2510 _setProp(dbGroup
, _END_DATE
, value
, forceSending
);
2513 uint32
getEND_DATE(const CCDBSynchronised
&dbGroup
)
2516 _getProp(dbGroup
, _END_DATE
, value
);
2521 ICDBStructNode
*getEND_DATECDBNode()
2526 void setOR_STEPS(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
2530 _setProp(dbGroup
, _OR_STEPS
, value
, forceSending
);
2533 bool getOR_STEPS(const CCDBSynchronised
&dbGroup
)
2536 _getProp(dbGroup
, _OR_STEPS
, value
);
2541 ICDBStructNode
*getOR_STEPSCDBNode()
2546 void setFINISHED(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
2549 // Check that the value is not out of database precision
2550 STOP_IF(value
> (1<<2)-1, "setFINISHED : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 2 bits");
2553 _setProp(dbGroup
, _FINISHED
, value
, forceSending
);
2556 uint8
getFINISHED(const CCDBSynchronised
&dbGroup
)
2559 _getProp(dbGroup
, _FINISHED
, value
);
2564 ICDBStructNode
*getFINISHEDCDBNode()
2569 void setABANDONNABLE(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
2573 _setProp(dbGroup
, _ABANDONNABLE
, value
, forceSending
);
2576 bool getABANDONNABLE(const CCDBSynchronised
&dbGroup
)
2579 _getProp(dbGroup
, _ABANDONNABLE
, value
);
2584 ICDBStructNode
*getABANDONNABLECDBNode()
2586 return _ABANDONNABLE
;
2589 void setSLEEP(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
2593 _setProp(dbGroup
, _SLEEP
, value
, forceSending
);
2596 bool getSLEEP(const CCDBSynchronised
&dbGroup
)
2599 _getProp(dbGroup
, _SLEEP
, value
);
2604 ICDBStructNode
*getSLEEPCDBNode()
2612 TTARGET
&getTARGET(uint32 index
)
2614 nlassert(index
< 8);
2615 return _TARGET
[index
];
2626 ICDBStructNode
*_BranchNode
;
2632 void init(ICDBStructNode
*parent
);
2634 // accessor to branch node
2635 ICDBStructNode
*getCDBNode()
2640 TArray
&getArray(uint32 index
)
2642 nlassert(index
< 15);
2643 return _Array
[index
];
2650 ICDBStructNode
*_BranchNode
;
2652 ICDBStructNode
*_LEADER_INDEX
;
2653 ICDBStructNode
*_SUCCESSOR_INDEX
;
2655 TMISSIONS _MISSIONS
;
2659 void init(ICDBStructNode
*parent
);
2661 // accessor to branch node
2662 ICDBStructNode
*getCDBNode()
2668 void setLEADER_INDEX(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
2671 // Check that the value is not out of database precision
2672 STOP_IF(value
> (1<<4)-1, "setLEADER_INDEX : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 4 bits");
2675 _setProp(dbGroup
, _LEADER_INDEX
, value
, forceSending
);
2678 uint8
getLEADER_INDEX(const CCDBSynchronised
&dbGroup
)
2681 _getProp(dbGroup
, _LEADER_INDEX
, value
);
2686 ICDBStructNode
*getLEADER_INDEXCDBNode()
2688 return _LEADER_INDEX
;
2691 void setSUCCESSOR_INDEX(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
2694 // Check that the value is not out of database precision
2695 STOP_IF(value
> (1<<4)-1, "setSUCCESSOR_INDEX : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 4 bits");
2698 _setProp(dbGroup
, _SUCCESSOR_INDEX
, value
, forceSending
);
2701 uint8
getSUCCESSOR_INDEX(const CCDBSynchronised
&dbGroup
)
2704 _getProp(dbGroup
, _SUCCESSOR_INDEX
, value
);
2709 ICDBStructNode
*getSUCCESSOR_INDEXCDBNode()
2711 return _SUCCESSOR_INDEX
;
2713 TArray
&getArray(uint32 index
)
2715 nlassert(index
< 8);
2716 return _Array
[index
];
2718 TMISSIONS
&getMISSIONS()
2731 ICDBStructNode
*_BranchNode
;
2733 ICDBStructNode
*_TEXT
;
2737 void init(ICDBStructNode
*parent
);
2739 // accessor to branch node
2740 ICDBStructNode
*getCDBNode()
2746 void setTEXT(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
2750 _setProp(dbGroup
, _TEXT
, value
, forceSending
);
2753 uint32
getTEXT(const CCDBSynchronised
&dbGroup
)
2756 _getProp(dbGroup
, _TEXT
, value
);
2761 ICDBStructNode
*getTEXTCDBNode()
2782 ICDBStructNode
*_BranchNode
;
2784 ICDBStructNode
*_SHEET
;
2785 ICDBStructNode
*_QUALITY
;
2786 ICDBStructNode
*_QUANTITY
;
2787 ICDBStructNode
*_CREATE_TIME
;
2788 ICDBStructNode
*_SERIAL
;
2789 ICDBStructNode
*_USER_COLOR
;
2790 ICDBStructNode
*_WEIGHT
;
2791 ICDBStructNode
*_NAMEID
;
2792 ICDBStructNode
*_INFO_VERSION
;
2793 ICDBStructNode
*_ENCHANT
;
2794 ICDBStructNode
*_RM_CLASS_TYPE
;
2795 ICDBStructNode
*_RM_FABER_STAT_TYPE
;
2796 ICDBStructNode
*_PREREQUISIT_VALID
;
2800 void init(ICDBStructNode
*parent
, uint index
);
2802 // accessor to branch node
2803 ICDBStructNode
*getCDBNode()
2809 void setSHEET(CCDBSynchronised
&dbGroup
, NLMISC::CSheetId value
, bool forceSending
= false)
2813 _setProp(dbGroup
, _SHEET
, value
, forceSending
);
2816 NLMISC::CSheetId
getSHEET(const CCDBSynchronised
&dbGroup
)
2818 NLMISC::CSheetId value
;
2819 _getProp(dbGroup
, _SHEET
, value
);
2824 ICDBStructNode
*getSHEETCDBNode()
2829 void setQUALITY(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
2832 // Check that the value is not out of database precision
2833 STOP_IF(value
> (1<<10)-1, "setQUALITY : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 10 bits");
2836 _setProp(dbGroup
, _QUALITY
, value
, forceSending
);
2839 uint16
getQUALITY(const CCDBSynchronised
&dbGroup
)
2842 _getProp(dbGroup
, _QUALITY
, value
);
2847 ICDBStructNode
*getQUALITYCDBNode()
2852 void setQUANTITY(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
2855 // Check that the value is not out of database precision
2856 STOP_IF(value
> (1<<10)-1, "setQUANTITY : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 10 bits");
2859 _setProp(dbGroup
, _QUANTITY
, value
, forceSending
);
2862 uint16
getQUANTITY(const CCDBSynchronised
&dbGroup
)
2865 _getProp(dbGroup
, _QUANTITY
, value
);
2870 ICDBStructNode
*getQUANTITYCDBNode()
2875 void setCREATE_TIME(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
2879 _setProp(dbGroup
, _CREATE_TIME
, value
, forceSending
);
2882 uint32
getCREATE_TIME(const CCDBSynchronised
&dbGroup
)
2885 _getProp(dbGroup
, _CREATE_TIME
, value
);
2890 ICDBStructNode
*getCREATE_TIMECDBNode()
2892 return _CREATE_TIME
;
2895 void setSERIAL(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
2899 _setProp(dbGroup
, _SERIAL
, value
, forceSending
);
2902 uint32
getSERIAL(const CCDBSynchronised
&dbGroup
)
2905 _getProp(dbGroup
, _SERIAL
, value
);
2910 ICDBStructNode
*getSERIALCDBNode()
2915 void setUSER_COLOR(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
2918 // Check that the value is not out of database precision
2919 STOP_IF(value
> (1<<3)-1, "setUSER_COLOR : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 3 bits");
2922 _setProp(dbGroup
, _USER_COLOR
, value
, forceSending
);
2925 uint8
getUSER_COLOR(const CCDBSynchronised
&dbGroup
)
2928 _getProp(dbGroup
, _USER_COLOR
, value
);
2933 ICDBStructNode
*getUSER_COLORCDBNode()
2938 void setWEIGHT(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
2942 _setProp(dbGroup
, _WEIGHT
, value
, forceSending
);
2945 uint16
getWEIGHT(const CCDBSynchronised
&dbGroup
)
2948 _getProp(dbGroup
, _WEIGHT
, value
);
2953 ICDBStructNode
*getWEIGHTCDBNode()
2958 void setNAMEID(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
2962 _setProp(dbGroup
, _NAMEID
, value
, forceSending
);
2965 uint32
getNAMEID(const CCDBSynchronised
&dbGroup
)
2968 _getProp(dbGroup
, _NAMEID
, value
);
2973 ICDBStructNode
*getNAMEIDCDBNode()
2978 void setINFO_VERSION(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
2982 _setProp(dbGroup
, _INFO_VERSION
, value
, forceSending
);
2985 uint8
getINFO_VERSION(const CCDBSynchronised
&dbGroup
)
2988 _getProp(dbGroup
, _INFO_VERSION
, value
);
2993 ICDBStructNode
*getINFO_VERSIONCDBNode()
2995 return _INFO_VERSION
;
2998 void setENCHANT(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
3001 // Check that the value is not out of database precision
3002 STOP_IF(value
> (1<<10)-1, "setENCHANT : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 10 bits");
3005 _setProp(dbGroup
, _ENCHANT
, value
, forceSending
);
3008 uint16
getENCHANT(const CCDBSynchronised
&dbGroup
)
3011 _getProp(dbGroup
, _ENCHANT
, value
);
3016 ICDBStructNode
*getENCHANTCDBNode()
3021 void setRM_CLASS_TYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
3024 // Check that the value is not out of database precision
3025 STOP_IF(value
> (1<<3)-1, "setRM_CLASS_TYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 3 bits");
3028 _setProp(dbGroup
, _RM_CLASS_TYPE
, value
, forceSending
);
3031 uint8
getRM_CLASS_TYPE(const CCDBSynchronised
&dbGroup
)
3034 _getProp(dbGroup
, _RM_CLASS_TYPE
, value
);
3039 ICDBStructNode
*getRM_CLASS_TYPECDBNode()
3041 return _RM_CLASS_TYPE
;
3044 void setRM_FABER_STAT_TYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
3047 // Check that the value is not out of database precision
3048 STOP_IF(value
> (1<<6)-1, "setRM_FABER_STAT_TYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 6 bits");
3051 _setProp(dbGroup
, _RM_FABER_STAT_TYPE
, value
, forceSending
);
3054 uint8
getRM_FABER_STAT_TYPE(const CCDBSynchronised
&dbGroup
)
3057 _getProp(dbGroup
, _RM_FABER_STAT_TYPE
, value
);
3062 ICDBStructNode
*getRM_FABER_STAT_TYPECDBNode()
3064 return _RM_FABER_STAT_TYPE
;
3067 void setPREREQUISIT_VALID(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
3071 _setProp(dbGroup
, _PREREQUISIT_VALID
, value
, forceSending
);
3074 bool getPREREQUISIT_VALID(const CCDBSynchronised
&dbGroup
)
3077 _getProp(dbGroup
, _PREREQUISIT_VALID
, value
);
3082 ICDBStructNode
*getPREREQUISIT_VALIDCDBNode()
3084 return _PREREQUISIT_VALID
;
3091 ICDBStructNode
*_BranchNode
;
3097 void init(ICDBStructNode
*parent
);
3099 // accessor to branch node
3100 ICDBStructNode
*getCDBNode()
3105 TArray
&getArray(uint32 index
)
3107 nlassert(index
< 10);
3108 return _Array
[index
];
3123 ICDBStructNode
*_BranchNode
;
3125 ICDBStructNode
*_SHEET
;
3126 ICDBStructNode
*_QUALITY
;
3127 ICDBStructNode
*_QUANTITY
;
3128 ICDBStructNode
*_CREATE_TIME
;
3129 ICDBStructNode
*_SERIAL
;
3130 ICDBStructNode
*_USER_COLOR
;
3131 ICDBStructNode
*_WEIGHT
;
3132 ICDBStructNode
*_NAMEID
;
3133 ICDBStructNode
*_INFO_VERSION
;
3134 ICDBStructNode
*_ENCHANT
;
3135 ICDBStructNode
*_RM_CLASS_TYPE
;
3136 ICDBStructNode
*_RM_FABER_STAT_TYPE
;
3137 ICDBStructNode
*_PREREQUISIT_VALID
;
3141 void init(ICDBStructNode
*parent
, uint index
);
3143 // accessor to branch node
3144 ICDBStructNode
*getCDBNode()
3150 void setSHEET(CCDBSynchronised
&dbGroup
, NLMISC::CSheetId value
, bool forceSending
= false)
3154 _setProp(dbGroup
, _SHEET
, value
, forceSending
);
3157 NLMISC::CSheetId
getSHEET(const CCDBSynchronised
&dbGroup
)
3159 NLMISC::CSheetId value
;
3160 _getProp(dbGroup
, _SHEET
, value
);
3165 ICDBStructNode
*getSHEETCDBNode()
3170 void setQUALITY(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
3173 // Check that the value is not out of database precision
3174 STOP_IF(value
> (1<<10)-1, "setQUALITY : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 10 bits");
3177 _setProp(dbGroup
, _QUALITY
, value
, forceSending
);
3180 uint16
getQUALITY(const CCDBSynchronised
&dbGroup
)
3183 _getProp(dbGroup
, _QUALITY
, value
);
3188 ICDBStructNode
*getQUALITYCDBNode()
3193 void setQUANTITY(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
3196 // Check that the value is not out of database precision
3197 STOP_IF(value
> (1<<10)-1, "setQUANTITY : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 10 bits");
3200 _setProp(dbGroup
, _QUANTITY
, value
, forceSending
);
3203 uint16
getQUANTITY(const CCDBSynchronised
&dbGroup
)
3206 _getProp(dbGroup
, _QUANTITY
, value
);
3211 ICDBStructNode
*getQUANTITYCDBNode()
3216 void setCREATE_TIME(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
3220 _setProp(dbGroup
, _CREATE_TIME
, value
, forceSending
);
3223 uint32
getCREATE_TIME(const CCDBSynchronised
&dbGroup
)
3226 _getProp(dbGroup
, _CREATE_TIME
, value
);
3231 ICDBStructNode
*getCREATE_TIMECDBNode()
3233 return _CREATE_TIME
;
3236 void setSERIAL(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
3240 _setProp(dbGroup
, _SERIAL
, value
, forceSending
);
3243 uint32
getSERIAL(const CCDBSynchronised
&dbGroup
)
3246 _getProp(dbGroup
, _SERIAL
, value
);
3251 ICDBStructNode
*getSERIALCDBNode()
3256 void setUSER_COLOR(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
3259 // Check that the value is not out of database precision
3260 STOP_IF(value
> (1<<3)-1, "setUSER_COLOR : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 3 bits");
3263 _setProp(dbGroup
, _USER_COLOR
, value
, forceSending
);
3266 uint8
getUSER_COLOR(const CCDBSynchronised
&dbGroup
)
3269 _getProp(dbGroup
, _USER_COLOR
, value
);
3274 ICDBStructNode
*getUSER_COLORCDBNode()
3279 void setWEIGHT(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
3283 _setProp(dbGroup
, _WEIGHT
, value
, forceSending
);
3286 uint16
getWEIGHT(const CCDBSynchronised
&dbGroup
)
3289 _getProp(dbGroup
, _WEIGHT
, value
);
3294 ICDBStructNode
*getWEIGHTCDBNode()
3299 void setNAMEID(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
3303 _setProp(dbGroup
, _NAMEID
, value
, forceSending
);
3306 uint32
getNAMEID(const CCDBSynchronised
&dbGroup
)
3309 _getProp(dbGroup
, _NAMEID
, value
);
3314 ICDBStructNode
*getNAMEIDCDBNode()
3319 void setINFO_VERSION(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
3323 _setProp(dbGroup
, _INFO_VERSION
, value
, forceSending
);
3326 uint8
getINFO_VERSION(const CCDBSynchronised
&dbGroup
)
3329 _getProp(dbGroup
, _INFO_VERSION
, value
);
3334 ICDBStructNode
*getINFO_VERSIONCDBNode()
3336 return _INFO_VERSION
;
3339 void setENCHANT(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
3342 // Check that the value is not out of database precision
3343 STOP_IF(value
> (1<<10)-1, "setENCHANT : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 10 bits");
3346 _setProp(dbGroup
, _ENCHANT
, value
, forceSending
);
3349 uint16
getENCHANT(const CCDBSynchronised
&dbGroup
)
3352 _getProp(dbGroup
, _ENCHANT
, value
);
3357 ICDBStructNode
*getENCHANTCDBNode()
3362 void setRM_CLASS_TYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
3365 // Check that the value is not out of database precision
3366 STOP_IF(value
> (1<<3)-1, "setRM_CLASS_TYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 3 bits");
3369 _setProp(dbGroup
, _RM_CLASS_TYPE
, value
, forceSending
);
3372 uint8
getRM_CLASS_TYPE(const CCDBSynchronised
&dbGroup
)
3375 _getProp(dbGroup
, _RM_CLASS_TYPE
, value
);
3380 ICDBStructNode
*getRM_CLASS_TYPECDBNode()
3382 return _RM_CLASS_TYPE
;
3385 void setRM_FABER_STAT_TYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
3388 // Check that the value is not out of database precision
3389 STOP_IF(value
> (1<<6)-1, "setRM_FABER_STAT_TYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 6 bits");
3392 _setProp(dbGroup
, _RM_FABER_STAT_TYPE
, value
, forceSending
);
3395 uint8
getRM_FABER_STAT_TYPE(const CCDBSynchronised
&dbGroup
)
3398 _getProp(dbGroup
, _RM_FABER_STAT_TYPE
, value
);
3403 ICDBStructNode
*getRM_FABER_STAT_TYPECDBNode()
3405 return _RM_FABER_STAT_TYPE
;
3408 void setPREREQUISIT_VALID(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
3412 _setProp(dbGroup
, _PREREQUISIT_VALID
, value
, forceSending
);
3415 bool getPREREQUISIT_VALID(const CCDBSynchronised
&dbGroup
)
3418 _getProp(dbGroup
, _PREREQUISIT_VALID
, value
);
3423 ICDBStructNode
*getPREREQUISIT_VALIDCDBNode()
3425 return _PREREQUISIT_VALID
;
3432 ICDBStructNode
*_BranchNode
;
3438 void init(ICDBStructNode
*parent
);
3440 // accessor to branch node
3441 ICDBStructNode
*getCDBNode()
3446 TArray
&getArray(uint32 index
)
3448 nlassert(index
< 10);
3449 return _Array
[index
];
3456 ICDBStructNode
*_BranchNode
;
3458 ICDBStructNode
*_TEXT
;
3459 ICDBStructNode
*_ID
;
3460 ICDBStructNode
*_BEGUN
;
3461 ICDBStructNode
*_ACCEPTED
;
3462 ICDBStructNode
*_MONEY
;
3463 ICDBStructNode
*_FORCE_REFUSE
;
3464 ICDBStructNode
*_COUNTER
;
3470 void init(ICDBStructNode
*parent
);
3472 // accessor to branch node
3473 ICDBStructNode
*getCDBNode()
3479 void setTEXT(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
3483 _setProp(dbGroup
, _TEXT
, value
, forceSending
);
3486 uint32
getTEXT(const CCDBSynchronised
&dbGroup
)
3489 _getProp(dbGroup
, _TEXT
, value
);
3494 ICDBStructNode
*getTEXTCDBNode()
3499 void setID(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
3503 _setProp(dbGroup
, _ID
, value
, forceSending
);
3506 uint8
getID(const CCDBSynchronised
&dbGroup
)
3509 _getProp(dbGroup
, _ID
, value
);
3514 ICDBStructNode
*getIDCDBNode()
3519 void setBEGUN(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
3523 _setProp(dbGroup
, _BEGUN
, value
, forceSending
);
3526 bool getBEGUN(const CCDBSynchronised
&dbGroup
)
3529 _getProp(dbGroup
, _BEGUN
, value
);
3534 ICDBStructNode
*getBEGUNCDBNode()
3539 void setACCEPTED(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
3543 _setProp(dbGroup
, _ACCEPTED
, value
, forceSending
);
3546 bool getACCEPTED(const CCDBSynchronised
&dbGroup
)
3549 _getProp(dbGroup
, _ACCEPTED
, value
);
3554 ICDBStructNode
*getACCEPTEDCDBNode()
3559 void setMONEY(CCDBSynchronised
&dbGroup
, uint64 value
, bool forceSending
= false)
3563 _setProp(dbGroup
, _MONEY
, value
, forceSending
);
3566 uint64
getMONEY(const CCDBSynchronised
&dbGroup
)
3569 _getProp(dbGroup
, _MONEY
, value
);
3574 ICDBStructNode
*getMONEYCDBNode()
3579 void setFORCE_REFUSE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
3582 // Check that the value is not out of database precision
3583 STOP_IF(value
> (1<<4)-1, "setFORCE_REFUSE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 4 bits");
3586 _setProp(dbGroup
, _FORCE_REFUSE
, value
, forceSending
);
3589 uint8
getFORCE_REFUSE(const CCDBSynchronised
&dbGroup
)
3592 _getProp(dbGroup
, _FORCE_REFUSE
, value
);
3597 ICDBStructNode
*getFORCE_REFUSECDBNode()
3599 return _FORCE_REFUSE
;
3602 void setCOUNTER(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
3605 // Check that the value is not out of database precision
3606 STOP_IF(value
> (1<<4)-1, "setCOUNTER : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 4 bits");
3609 _setProp(dbGroup
, _COUNTER
, value
, forceSending
);
3612 uint8
getCOUNTER(const CCDBSynchronised
&dbGroup
)
3615 _getProp(dbGroup
, _COUNTER
, value
);
3620 ICDBStructNode
*getCOUNTERCDBNode()
3628 TRECEIVE
&getRECEIVE()
3649 ICDBStructNode
*_BranchNode
;
3651 ICDBStructNode
*_INDEX_IN_BAG
;
3655 void init(ICDBStructNode
*parent
, uint index
);
3657 // accessor to branch node
3658 ICDBStructNode
*getCDBNode()
3664 void setINDEX_IN_BAG(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
3667 // Check that the value is not out of database precision
3668 STOP_IF(value
> (1<<9)-1, "setINDEX_IN_BAG : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 9 bits");
3671 _setProp(dbGroup
, _INDEX_IN_BAG
, value
, forceSending
);
3674 uint16
getINDEX_IN_BAG(const CCDBSynchronised
&dbGroup
)
3677 _getProp(dbGroup
, _INDEX_IN_BAG
, value
);
3682 ICDBStructNode
*getINDEX_IN_BAGCDBNode()
3684 return _INDEX_IN_BAG
;
3691 ICDBStructNode
*_BranchNode
;
3697 void init(ICDBStructNode
*parent
);
3699 // accessor to branch node
3700 ICDBStructNode
*getCDBNode()
3705 TArray
&getArray(uint32 index
)
3707 nlassert(index
< 2);
3708 return _Array
[index
];
3723 ICDBStructNode
*_BranchNode
;
3725 ICDBStructNode
*_INDEX_IN_BAG
;
3729 void init(ICDBStructNode
*parent
, uint index
);
3731 // accessor to branch node
3732 ICDBStructNode
*getCDBNode()
3738 void setINDEX_IN_BAG(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
3741 // Check that the value is not out of database precision
3742 STOP_IF(value
> (1<<9)-1, "setINDEX_IN_BAG : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 9 bits");
3745 _setProp(dbGroup
, _INDEX_IN_BAG
, value
, forceSending
);
3748 uint16
getINDEX_IN_BAG(const CCDBSynchronised
&dbGroup
)
3751 _getProp(dbGroup
, _INDEX_IN_BAG
, value
);
3756 ICDBStructNode
*getINDEX_IN_BAGCDBNode()
3758 return _INDEX_IN_BAG
;
3765 ICDBStructNode
*_BranchNode
;
3771 void init(ICDBStructNode
*parent
);
3773 // accessor to branch node
3774 ICDBStructNode
*getCDBNode()
3779 TArray
&getArray(uint32 index
)
3781 nlassert(index
< 19);
3782 return _Array
[index
];
3797 ICDBStructNode
*_BranchNode
;
3799 ICDBStructNode
*_INDEX_IN_BAG
;
3803 void init(ICDBStructNode
*parent
, uint index
);
3805 // accessor to branch node
3806 ICDBStructNode
*getCDBNode()
3812 void setINDEX_IN_BAG(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
3815 // Check that the value is not out of database precision
3816 STOP_IF(value
> (1<<9)-1, "setINDEX_IN_BAG : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 9 bits");
3819 _setProp(dbGroup
, _INDEX_IN_BAG
, value
, forceSending
);
3822 uint16
getINDEX_IN_BAG(const CCDBSynchronised
&dbGroup
)
3825 _getProp(dbGroup
, _INDEX_IN_BAG
, value
);
3830 ICDBStructNode
*getINDEX_IN_BAGCDBNode()
3832 return _INDEX_IN_BAG
;
3839 ICDBStructNode
*_BranchNode
;
3845 void init(ICDBStructNode
*parent
);
3847 // accessor to branch node
3848 ICDBStructNode
*getCDBNode()
3853 TArray
&getArray(uint32 index
)
3855 nlassert(index
< 5);
3856 return _Array
[index
];
3871 ICDBStructNode
*_BranchNode
;
3873 ICDBStructNode
*_SHEET
;
3874 ICDBStructNode
*_QUALITY
;
3875 ICDBStructNode
*_QUANTITY
;
3876 ICDBStructNode
*_CREATE_TIME
;
3877 ICDBStructNode
*_SERIAL
;
3878 ICDBStructNode
*_USER_COLOR
;
3879 ICDBStructNode
*_WEIGHT
;
3880 ICDBStructNode
*_NAMEID
;
3881 ICDBStructNode
*_INFO_VERSION
;
3882 ICDBStructNode
*_ENCHANT
;
3883 ICDBStructNode
*_RM_CLASS_TYPE
;
3884 ICDBStructNode
*_RM_FABER_STAT_TYPE
;
3885 ICDBStructNode
*_PREREQUISIT_VALID
;
3889 void init(ICDBStructNode
*parent
, uint index
);
3891 // accessor to branch node
3892 ICDBStructNode
*getCDBNode()
3898 void setSHEET(CCDBSynchronised
&dbGroup
, NLMISC::CSheetId value
, bool forceSending
= false)
3902 _setProp(dbGroup
, _SHEET
, value
, forceSending
);
3905 NLMISC::CSheetId
getSHEET(const CCDBSynchronised
&dbGroup
)
3907 NLMISC::CSheetId value
;
3908 _getProp(dbGroup
, _SHEET
, value
);
3913 ICDBStructNode
*getSHEETCDBNode()
3918 void setQUALITY(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
3921 // Check that the value is not out of database precision
3922 STOP_IF(value
> (1<<12)-1, "setQUALITY : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 12 bits");
3925 _setProp(dbGroup
, _QUALITY
, value
, forceSending
);
3928 uint16
getQUALITY(const CCDBSynchronised
&dbGroup
)
3931 _getProp(dbGroup
, _QUALITY
, value
);
3936 ICDBStructNode
*getQUALITYCDBNode()
3941 void setQUANTITY(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
3944 // Check that the value is not out of database precision
3945 STOP_IF(value
> (1<<12)-1, "setQUANTITY : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 12 bits");
3948 _setProp(dbGroup
, _QUANTITY
, value
, forceSending
);
3951 uint16
getQUANTITY(const CCDBSynchronised
&dbGroup
)
3954 _getProp(dbGroup
, _QUANTITY
, value
);
3959 ICDBStructNode
*getQUANTITYCDBNode()
3964 void setCREATE_TIME(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
3968 _setProp(dbGroup
, _CREATE_TIME
, value
, forceSending
);
3971 uint32
getCREATE_TIME(const CCDBSynchronised
&dbGroup
)
3974 _getProp(dbGroup
, _CREATE_TIME
, value
);
3979 ICDBStructNode
*getCREATE_TIMECDBNode()
3981 return _CREATE_TIME
;
3984 void setSERIAL(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
3988 _setProp(dbGroup
, _SERIAL
, value
, forceSending
);
3991 uint32
getSERIAL(const CCDBSynchronised
&dbGroup
)
3994 _getProp(dbGroup
, _SERIAL
, value
);
3999 ICDBStructNode
*getSERIALCDBNode()
4004 void setUSER_COLOR(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
4007 // Check that the value is not out of database precision
4008 STOP_IF(value
> (1<<3)-1, "setUSER_COLOR : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 3 bits");
4011 _setProp(dbGroup
, _USER_COLOR
, value
, forceSending
);
4014 uint8
getUSER_COLOR(const CCDBSynchronised
&dbGroup
)
4017 _getProp(dbGroup
, _USER_COLOR
, value
);
4022 ICDBStructNode
*getUSER_COLORCDBNode()
4027 void setWEIGHT(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
4031 _setProp(dbGroup
, _WEIGHT
, value
, forceSending
);
4034 uint16
getWEIGHT(const CCDBSynchronised
&dbGroup
)
4037 _getProp(dbGroup
, _WEIGHT
, value
);
4042 ICDBStructNode
*getWEIGHTCDBNode()
4047 void setNAMEID(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
4051 _setProp(dbGroup
, _NAMEID
, value
, forceSending
);
4054 uint32
getNAMEID(const CCDBSynchronised
&dbGroup
)
4057 _getProp(dbGroup
, _NAMEID
, value
);
4062 ICDBStructNode
*getNAMEIDCDBNode()
4067 void setINFO_VERSION(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
4071 _setProp(dbGroup
, _INFO_VERSION
, value
, forceSending
);
4074 uint8
getINFO_VERSION(const CCDBSynchronised
&dbGroup
)
4077 _getProp(dbGroup
, _INFO_VERSION
, value
);
4082 ICDBStructNode
*getINFO_VERSIONCDBNode()
4084 return _INFO_VERSION
;
4087 void setENCHANT(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
4090 // Check that the value is not out of database precision
4091 STOP_IF(value
> (1<<10)-1, "setENCHANT : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 10 bits");
4094 _setProp(dbGroup
, _ENCHANT
, value
, forceSending
);
4097 uint16
getENCHANT(const CCDBSynchronised
&dbGroup
)
4100 _getProp(dbGroup
, _ENCHANT
, value
);
4105 ICDBStructNode
*getENCHANTCDBNode()
4110 void setRM_CLASS_TYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
4113 // Check that the value is not out of database precision
4114 STOP_IF(value
> (1<<3)-1, "setRM_CLASS_TYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 3 bits");
4117 _setProp(dbGroup
, _RM_CLASS_TYPE
, value
, forceSending
);
4120 uint8
getRM_CLASS_TYPE(const CCDBSynchronised
&dbGroup
)
4123 _getProp(dbGroup
, _RM_CLASS_TYPE
, value
);
4128 ICDBStructNode
*getRM_CLASS_TYPECDBNode()
4130 return _RM_CLASS_TYPE
;
4133 void setRM_FABER_STAT_TYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
4136 // Check that the value is not out of database precision
4137 STOP_IF(value
> (1<<6)-1, "setRM_FABER_STAT_TYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 6 bits");
4140 _setProp(dbGroup
, _RM_FABER_STAT_TYPE
, value
, forceSending
);
4143 uint8
getRM_FABER_STAT_TYPE(const CCDBSynchronised
&dbGroup
)
4146 _getProp(dbGroup
, _RM_FABER_STAT_TYPE
, value
);
4151 ICDBStructNode
*getRM_FABER_STAT_TYPECDBNode()
4153 return _RM_FABER_STAT_TYPE
;
4156 void setPREREQUISIT_VALID(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
4160 _setProp(dbGroup
, _PREREQUISIT_VALID
, value
, forceSending
);
4163 bool getPREREQUISIT_VALID(const CCDBSynchronised
&dbGroup
)
4166 _getProp(dbGroup
, _PREREQUISIT_VALID
, value
);
4171 ICDBStructNode
*getPREREQUISIT_VALIDCDBNode()
4173 return _PREREQUISIT_VALID
;
4180 ICDBStructNode
*_BranchNode
;
4182 ICDBStructNode
*_TYPE
;
4183 ICDBStructNode
*_ENABLE_TAKE
;
4188 void init(ICDBStructNode
*parent
);
4190 // accessor to branch node
4191 ICDBStructNode
*getCDBNode()
4197 void setTYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
4201 _setProp(dbGroup
, _TYPE
, value
, forceSending
);
4204 uint8
getTYPE(const CCDBSynchronised
&dbGroup
)
4207 _getProp(dbGroup
, _TYPE
, value
);
4212 ICDBStructNode
*getTYPECDBNode()
4217 void setENABLE_TAKE(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
4221 _setProp(dbGroup
, _ENABLE_TAKE
, value
, forceSending
);
4224 bool getENABLE_TAKE(const CCDBSynchronised
&dbGroup
)
4227 _getProp(dbGroup
, _ENABLE_TAKE
, value
);
4232 ICDBStructNode
*getENABLE_TAKECDBNode()
4234 return _ENABLE_TAKE
;
4236 TArray
&getArray(uint32 index
)
4238 nlassert(index
< 16);
4239 return _Array
[index
];
4254 ICDBStructNode
*_BranchNode
;
4256 ICDBStructNode
*_SHEET
;
4257 ICDBStructNode
*_QUALITY
;
4258 ICDBStructNode
*_QUANTITY
;
4259 ICDBStructNode
*_CREATE_TIME
;
4260 ICDBStructNode
*_SERIAL
;
4261 ICDBStructNode
*_USER_COLOR
;
4262 ICDBStructNode
*_WEIGHT
;
4263 ICDBStructNode
*_NAMEID
;
4264 ICDBStructNode
*_INFO_VERSION
;
4265 ICDBStructNode
*_ENCHANT
;
4266 ICDBStructNode
*_RM_CLASS_TYPE
;
4267 ICDBStructNode
*_RM_FABER_STAT_TYPE
;
4268 ICDBStructNode
*_PREREQUISIT_VALID
;
4269 ICDBStructNode
*_NB_MEMBER
;
4270 ICDBStructNode
*_WANTED
;
4271 ICDBStructNode
*_CHANCE
;
4275 void init(ICDBStructNode
*parent
, uint index
);
4277 // accessor to branch node
4278 ICDBStructNode
*getCDBNode()
4284 void setSHEET(CCDBSynchronised
&dbGroup
, NLMISC::CSheetId value
, bool forceSending
= false)
4288 _setProp(dbGroup
, _SHEET
, value
, forceSending
);
4291 NLMISC::CSheetId
getSHEET(const CCDBSynchronised
&dbGroup
)
4293 NLMISC::CSheetId value
;
4294 _getProp(dbGroup
, _SHEET
, value
);
4299 ICDBStructNode
*getSHEETCDBNode()
4304 void setQUALITY(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
4307 // Check that the value is not out of database precision
4308 STOP_IF(value
> (1<<10)-1, "setQUALITY : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 10 bits");
4311 _setProp(dbGroup
, _QUALITY
, value
, forceSending
);
4314 uint16
getQUALITY(const CCDBSynchronised
&dbGroup
)
4317 _getProp(dbGroup
, _QUALITY
, value
);
4322 ICDBStructNode
*getQUALITYCDBNode()
4327 void setQUANTITY(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
4330 // Check that the value is not out of database precision
4331 STOP_IF(value
> (1<<10)-1, "setQUANTITY : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 10 bits");
4334 _setProp(dbGroup
, _QUANTITY
, value
, forceSending
);
4337 uint16
getQUANTITY(const CCDBSynchronised
&dbGroup
)
4340 _getProp(dbGroup
, _QUANTITY
, value
);
4345 ICDBStructNode
*getQUANTITYCDBNode()
4350 void setCREATE_TIME(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
4354 _setProp(dbGroup
, _CREATE_TIME
, value
, forceSending
);
4357 uint32
getCREATE_TIME(const CCDBSynchronised
&dbGroup
)
4360 _getProp(dbGroup
, _CREATE_TIME
, value
);
4365 ICDBStructNode
*getCREATE_TIMECDBNode()
4367 return _CREATE_TIME
;
4370 void setSERIAL(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
4374 _setProp(dbGroup
, _SERIAL
, value
, forceSending
);
4377 uint32
getSERIAL(const CCDBSynchronised
&dbGroup
)
4380 _getProp(dbGroup
, _SERIAL
, value
);
4385 ICDBStructNode
*getSERIALCDBNode()
4390 void setUSER_COLOR(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
4393 // Check that the value is not out of database precision
4394 STOP_IF(value
> (1<<3)-1, "setUSER_COLOR : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 3 bits");
4397 _setProp(dbGroup
, _USER_COLOR
, value
, forceSending
);
4400 uint8
getUSER_COLOR(const CCDBSynchronised
&dbGroup
)
4403 _getProp(dbGroup
, _USER_COLOR
, value
);
4408 ICDBStructNode
*getUSER_COLORCDBNode()
4413 void setWEIGHT(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
4417 _setProp(dbGroup
, _WEIGHT
, value
, forceSending
);
4420 uint16
getWEIGHT(const CCDBSynchronised
&dbGroup
)
4423 _getProp(dbGroup
, _WEIGHT
, value
);
4428 ICDBStructNode
*getWEIGHTCDBNode()
4433 void setNAMEID(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
4437 _setProp(dbGroup
, _NAMEID
, value
, forceSending
);
4440 uint32
getNAMEID(const CCDBSynchronised
&dbGroup
)
4443 _getProp(dbGroup
, _NAMEID
, value
);
4448 ICDBStructNode
*getNAMEIDCDBNode()
4453 void setINFO_VERSION(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
4457 _setProp(dbGroup
, _INFO_VERSION
, value
, forceSending
);
4460 uint8
getINFO_VERSION(const CCDBSynchronised
&dbGroup
)
4463 _getProp(dbGroup
, _INFO_VERSION
, value
);
4468 ICDBStructNode
*getINFO_VERSIONCDBNode()
4470 return _INFO_VERSION
;
4473 void setENCHANT(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
4476 // Check that the value is not out of database precision
4477 STOP_IF(value
> (1<<10)-1, "setENCHANT : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 10 bits");
4480 _setProp(dbGroup
, _ENCHANT
, value
, forceSending
);
4483 uint16
getENCHANT(const CCDBSynchronised
&dbGroup
)
4486 _getProp(dbGroup
, _ENCHANT
, value
);
4491 ICDBStructNode
*getENCHANTCDBNode()
4496 void setRM_CLASS_TYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
4499 // Check that the value is not out of database precision
4500 STOP_IF(value
> (1<<3)-1, "setRM_CLASS_TYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 3 bits");
4503 _setProp(dbGroup
, _RM_CLASS_TYPE
, value
, forceSending
);
4506 uint8
getRM_CLASS_TYPE(const CCDBSynchronised
&dbGroup
)
4509 _getProp(dbGroup
, _RM_CLASS_TYPE
, value
);
4514 ICDBStructNode
*getRM_CLASS_TYPECDBNode()
4516 return _RM_CLASS_TYPE
;
4519 void setRM_FABER_STAT_TYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
4522 // Check that the value is not out of database precision
4523 STOP_IF(value
> (1<<6)-1, "setRM_FABER_STAT_TYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 6 bits");
4526 _setProp(dbGroup
, _RM_FABER_STAT_TYPE
, value
, forceSending
);
4529 uint8
getRM_FABER_STAT_TYPE(const CCDBSynchronised
&dbGroup
)
4532 _getProp(dbGroup
, _RM_FABER_STAT_TYPE
, value
);
4537 ICDBStructNode
*getRM_FABER_STAT_TYPECDBNode()
4539 return _RM_FABER_STAT_TYPE
;
4542 void setPREREQUISIT_VALID(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
4546 _setProp(dbGroup
, _PREREQUISIT_VALID
, value
, forceSending
);
4549 bool getPREREQUISIT_VALID(const CCDBSynchronised
&dbGroup
)
4552 _getProp(dbGroup
, _PREREQUISIT_VALID
, value
);
4557 ICDBStructNode
*getPREREQUISIT_VALIDCDBNode()
4559 return _PREREQUISIT_VALID
;
4562 void setNB_MEMBER(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
4565 // Check that the value is not out of database precision
4566 STOP_IF(value
> (1<<4)-1, "setNB_MEMBER : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 4 bits");
4569 _setProp(dbGroup
, _NB_MEMBER
, value
, forceSending
);
4572 uint8
getNB_MEMBER(const CCDBSynchronised
&dbGroup
)
4575 _getProp(dbGroup
, _NB_MEMBER
, value
);
4580 ICDBStructNode
*getNB_MEMBERCDBNode()
4585 void setWANTED(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
4589 _setProp(dbGroup
, _WANTED
, value
, forceSending
);
4592 bool getWANTED(const CCDBSynchronised
&dbGroup
)
4595 _getProp(dbGroup
, _WANTED
, value
);
4600 ICDBStructNode
*getWANTEDCDBNode()
4605 void setCHANCE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
4608 // Check that the value is not out of database precision
4609 STOP_IF(value
> (1<<7)-1, "setCHANCE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 7 bits");
4612 _setProp(dbGroup
, _CHANCE
, value
, forceSending
);
4615 uint8
getCHANCE(const CCDBSynchronised
&dbGroup
)
4618 _getProp(dbGroup
, _CHANCE
, value
);
4623 ICDBStructNode
*getCHANCECDBNode()
4636 ICDBStructNode
*_BranchNode
;
4638 ICDBStructNode
*_NAME
;
4639 ICDBStructNode
*_VALID
;
4643 void init(ICDBStructNode
*parent
, uint index
);
4645 // accessor to branch node
4646 ICDBStructNode
*getCDBNode()
4652 void setNAME(CCDBSynchronised
&dbGroup
, ucstring value
, bool forceSending
= false)
4656 _setProp(dbGroup
, _NAME
, value
, forceSending
);
4659 ucstring
getNAME(const CCDBSynchronised
&dbGroup
)
4662 _getProp(dbGroup
, _NAME
, value
);
4667 void setNAME(CCDBSynchronised
&dbGroup
, uint32 stringId
, bool forceSending
= false)
4669 _setProp(dbGroup
, _NAME
, stringId
, forceSending
);
4671 uint32
getNAME_id(const CCDBSynchronised
&dbGroup
)
4674 _getProp(dbGroup
, _NAME
, value
);
4679 ICDBStructNode
*getNAMECDBNode()
4684 void setVALID(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
4688 _setProp(dbGroup
, _VALID
, value
, forceSending
);
4691 bool getVALID(const CCDBSynchronised
&dbGroup
)
4694 _getProp(dbGroup
, _VALID
, value
);
4699 ICDBStructNode
*getVALIDCDBNode()
4708 ICDBStructNode
*_BranchNode
;
4710 ICDBStructNode
*_SESSION
;
4716 void init(ICDBStructNode
*parent
);
4718 // accessor to branch node
4719 ICDBStructNode
*getCDBNode()
4725 void setSESSION(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
4729 _setProp(dbGroup
, _SESSION
, value
, forceSending
);
4732 uint8
getSESSION(const CCDBSynchronised
&dbGroup
)
4735 _getProp(dbGroup
, _SESSION
, value
);
4740 ICDBStructNode
*getSESSIONCDBNode()
4744 TArray
&getArray(uint32 index
)
4746 nlassert(index
< 16);
4747 return _Array
[index
];
4749 TTM_
&getTM_(uint32 index
)
4751 nlassert(index
< 8);
4763 ICDBStructNode
*_BranchNode
;
4765 ICDBStructNode
*_SESSION
;
4766 ICDBStructNode
*_BULK_MAX
;
4767 ICDBStructNode
*_MONEY
;
4771 void init(ICDBStructNode
*parent
);
4773 // accessor to branch node
4774 ICDBStructNode
*getCDBNode()
4780 void setSESSION(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
4784 _setProp(dbGroup
, _SESSION
, value
, forceSending
);
4787 uint16
getSESSION(const CCDBSynchronised
&dbGroup
)
4790 _getProp(dbGroup
, _SESSION
, value
);
4795 ICDBStructNode
*getSESSIONCDBNode()
4800 void setBULK_MAX(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
4804 _setProp(dbGroup
, _BULK_MAX
, value
, forceSending
);
4807 uint32
getBULK_MAX(const CCDBSynchronised
&dbGroup
)
4810 _getProp(dbGroup
, _BULK_MAX
, value
);
4815 ICDBStructNode
*getBULK_MAXCDBNode()
4820 void setMONEY(CCDBSynchronised
&dbGroup
, uint64 value
, bool forceSending
= false)
4824 _setProp(dbGroup
, _MONEY
, value
, forceSending
);
4827 uint64
getMONEY(const CCDBSynchronised
&dbGroup
)
4830 _getProp(dbGroup
, _MONEY
, value
);
4835 ICDBStructNode
*getMONEYCDBNode()
4844 ICDBStructNode
*_BranchNode
;
4846 ICDBStructNode
*_MONEY
;
4847 ICDBStructNode
*_COUNTER
;
4857 void init(ICDBStructNode
*parent
);
4859 // accessor to branch node
4860 ICDBStructNode
*getCDBNode()
4866 void setMONEY(CCDBSynchronised
&dbGroup
, uint64 value
, bool forceSending
= false)
4870 _setProp(dbGroup
, _MONEY
, value
, forceSending
);
4873 uint64
getMONEY(const CCDBSynchronised
&dbGroup
)
4876 _getProp(dbGroup
, _MONEY
, value
);
4881 ICDBStructNode
*getMONEYCDBNode()
4886 void setCOUNTER(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
4889 // Check that the value is not out of database precision
4890 STOP_IF(value
> (1<<4)-1, "setCOUNTER : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 4 bits");
4893 _setProp(dbGroup
, _COUNTER
, value
, forceSending
);
4896 uint8
getCOUNTER(const CCDBSynchronised
&dbGroup
)
4899 _getProp(dbGroup
, _COUNTER
, value
);
4904 ICDBStructNode
*getCOUNTERCDBNode()
4916 THOTBAR
&getHOTBAR()
4949 ICDBStructNode
*_BranchNode
;
4951 ICDBStructNode
*_SHEET
;
4952 ICDBStructNode
*_DISABLED
;
4953 ICDBStructNode
*_DISABLED_TIME
;
4957 void init(ICDBStructNode
*parent
, uint index
);
4959 // accessor to branch node
4960 ICDBStructNode
*getCDBNode()
4966 void setSHEET(CCDBSynchronised
&dbGroup
, NLMISC::CSheetId value
, bool forceSending
= false)
4970 _setProp(dbGroup
, _SHEET
, value
, forceSending
);
4973 NLMISC::CSheetId
getSHEET(const CCDBSynchronised
&dbGroup
)
4975 NLMISC::CSheetId value
;
4976 _getProp(dbGroup
, _SHEET
, value
);
4981 ICDBStructNode
*getSHEETCDBNode()
4986 void setDISABLED(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
4990 _setProp(dbGroup
, _DISABLED
, value
, forceSending
);
4993 bool getDISABLED(const CCDBSynchronised
&dbGroup
)
4996 _getProp(dbGroup
, _DISABLED
, value
);
5001 ICDBStructNode
*getDISABLEDCDBNode()
5006 void setDISABLED_TIME(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
5010 _setProp(dbGroup
, _DISABLED_TIME
, value
, forceSending
);
5013 uint32
getDISABLED_TIME(const CCDBSynchronised
&dbGroup
)
5016 _getProp(dbGroup
, _DISABLED_TIME
, value
);
5021 ICDBStructNode
*getDISABLED_TIMECDBNode()
5023 return _DISABLED_TIME
;
5030 ICDBStructNode
*_BranchNode
;
5036 void init(ICDBStructNode
*parent
);
5038 // accessor to branch node
5039 ICDBStructNode
*getCDBNode()
5044 TArray
&getArray(uint32 index
)
5046 nlassert(index
< 12);
5047 return _Array
[index
];
5062 ICDBStructNode
*_BranchNode
;
5064 ICDBStructNode
*_SHEET
;
5065 ICDBStructNode
*_DISABLED
;
5066 ICDBStructNode
*_DISABLED_TIME
;
5070 void init(ICDBStructNode
*parent
, uint index
);
5072 // accessor to branch node
5073 ICDBStructNode
*getCDBNode()
5079 void setSHEET(CCDBSynchronised
&dbGroup
, NLMISC::CSheetId value
, bool forceSending
= false)
5083 _setProp(dbGroup
, _SHEET
, value
, forceSending
);
5086 NLMISC::CSheetId
getSHEET(const CCDBSynchronised
&dbGroup
)
5088 NLMISC::CSheetId value
;
5089 _getProp(dbGroup
, _SHEET
, value
);
5094 ICDBStructNode
*getSHEETCDBNode()
5099 void setDISABLED(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
5103 _setProp(dbGroup
, _DISABLED
, value
, forceSending
);
5106 bool getDISABLED(const CCDBSynchronised
&dbGroup
)
5109 _getProp(dbGroup
, _DISABLED
, value
);
5114 ICDBStructNode
*getDISABLEDCDBNode()
5119 void setDISABLED_TIME(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
5123 _setProp(dbGroup
, _DISABLED_TIME
, value
, forceSending
);
5126 uint32
getDISABLED_TIME(const CCDBSynchronised
&dbGroup
)
5129 _getProp(dbGroup
, _DISABLED_TIME
, value
);
5134 ICDBStructNode
*getDISABLED_TIMECDBNode()
5136 return _DISABLED_TIME
;
5143 ICDBStructNode
*_BranchNode
;
5149 void init(ICDBStructNode
*parent
);
5151 // accessor to branch node
5152 ICDBStructNode
*getCDBNode()
5157 TArray
&getArray(uint32 index
)
5159 nlassert(index
< 12);
5160 return _Array
[index
];
5167 ICDBStructNode
*_BranchNode
;
5169 ICDBStructNode
*_TOTAL_MALUS_EQUIP
;
5175 void init(ICDBStructNode
*parent
);
5177 // accessor to branch node
5178 ICDBStructNode
*getCDBNode()
5184 void setTOTAL_MALUS_EQUIP(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
5188 _setProp(dbGroup
, _TOTAL_MALUS_EQUIP
, value
, forceSending
);
5191 uint8
getTOTAL_MALUS_EQUIP(const CCDBSynchronised
&dbGroup
)
5194 _getProp(dbGroup
, _TOTAL_MALUS_EQUIP
, value
);
5199 ICDBStructNode
*getTOTAL_MALUS_EQUIPCDBNode()
5201 return _TOTAL_MALUS_EQUIP
;
5214 class TDISABLE_CONSUMABLE
5224 ICDBStructNode
*_BranchNode
;
5226 ICDBStructNode
*_FAMILY
;
5227 ICDBStructNode
*_DISABLE_TIME
;
5231 void init(ICDBStructNode
*parent
, uint index
);
5233 // accessor to branch node
5234 ICDBStructNode
*getCDBNode()
5240 void setFAMILY(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
5244 _setProp(dbGroup
, _FAMILY
, value
, forceSending
);
5247 uint16
getFAMILY(const CCDBSynchronised
&dbGroup
)
5250 _getProp(dbGroup
, _FAMILY
, value
);
5255 ICDBStructNode
*getFAMILYCDBNode()
5260 void setDISABLE_TIME(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
5264 _setProp(dbGroup
, _DISABLE_TIME
, value
, forceSending
);
5267 uint32
getDISABLE_TIME(const CCDBSynchronised
&dbGroup
)
5270 _getProp(dbGroup
, _DISABLE_TIME
, value
);
5275 ICDBStructNode
*getDISABLE_TIMECDBNode()
5277 return _DISABLE_TIME
;
5284 ICDBStructNode
*_BranchNode
;
5290 void init(ICDBStructNode
*parent
);
5292 // accessor to branch node
5293 ICDBStructNode
*getCDBNode()
5298 TArray
&getArray(uint32 index
)
5300 nlassert(index
< 12);
5301 return _Array
[index
];
5320 ICDBStructNode
*_BranchNode
;
5322 ICDBStructNode
*_TEXT
;
5326 void init(ICDBStructNode
*parent
, uint index
);
5328 // accessor to branch node
5329 ICDBStructNode
*getCDBNode()
5335 void setTEXT(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
5339 _setProp(dbGroup
, _TEXT
, value
, forceSending
);
5342 uint32
getTEXT(const CCDBSynchronised
&dbGroup
)
5345 _getProp(dbGroup
, _TEXT
, value
);
5350 ICDBStructNode
*getTEXTCDBNode()
5359 ICDBStructNode
*_BranchNode
;
5361 ICDBStructNode
*_TITLE
;
5366 void init(ICDBStructNode
*parent
, uint index
);
5368 // accessor to branch node
5369 ICDBStructNode
*getCDBNode()
5375 void setTITLE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
5379 _setProp(dbGroup
, _TITLE
, value
, forceSending
);
5382 uint32
getTITLE(const CCDBSynchronised
&dbGroup
)
5385 _getProp(dbGroup
, _TITLE
, value
);
5390 ICDBStructNode
*getTITLECDBNode()
5394 TArray
&getArray(uint32 index
)
5396 nlassert(index
< 8);
5397 return _Array
[index
];
5404 ICDBStructNode
*_BranchNode
;
5406 ICDBStructNode
*_PLAYER_GIFT
;
5407 ICDBStructNode
*_CREATE_GUILD
;
5408 ICDBStructNode
*_TRADE
;
5409 ICDBStructNode
*_CHOOSE_MISSION
;
5410 ICDBStructNode
*_DM_TITLE
;
5411 ICDBStructNode
*_DM_DESCRIPTION
;
5412 ICDBStructNode
*_ROLEMASTER_TYPE
;
5413 TDM_CHOICE _DM_CHOICE
[3];
5417 void init(ICDBStructNode
*parent
);
5419 // accessor to branch node
5420 ICDBStructNode
*getCDBNode()
5426 void setPLAYER_GIFT(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
5430 _setProp(dbGroup
, _PLAYER_GIFT
, value
, forceSending
);
5433 uint32
getPLAYER_GIFT(const CCDBSynchronised
&dbGroup
)
5436 _getProp(dbGroup
, _PLAYER_GIFT
, value
);
5441 ICDBStructNode
*getPLAYER_GIFTCDBNode()
5443 return _PLAYER_GIFT
;
5446 void setCREATE_GUILD(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
5450 _setProp(dbGroup
, _CREATE_GUILD
, value
, forceSending
);
5453 uint32
getCREATE_GUILD(const CCDBSynchronised
&dbGroup
)
5456 _getProp(dbGroup
, _CREATE_GUILD
, value
);
5461 ICDBStructNode
*getCREATE_GUILDCDBNode()
5463 return _CREATE_GUILD
;
5466 void setTRADE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
5470 _setProp(dbGroup
, _TRADE
, value
, forceSending
);
5473 uint32
getTRADE(const CCDBSynchronised
&dbGroup
)
5476 _getProp(dbGroup
, _TRADE
, value
);
5481 ICDBStructNode
*getTRADECDBNode()
5486 void setCHOOSE_MISSION(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
5490 _setProp(dbGroup
, _CHOOSE_MISSION
, value
, forceSending
);
5493 uint32
getCHOOSE_MISSION(const CCDBSynchronised
&dbGroup
)
5496 _getProp(dbGroup
, _CHOOSE_MISSION
, value
);
5501 ICDBStructNode
*getCHOOSE_MISSIONCDBNode()
5503 return _CHOOSE_MISSION
;
5506 void setDM_TITLE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
5510 _setProp(dbGroup
, _DM_TITLE
, value
, forceSending
);
5513 uint32
getDM_TITLE(const CCDBSynchronised
&dbGroup
)
5516 _getProp(dbGroup
, _DM_TITLE
, value
);
5521 ICDBStructNode
*getDM_TITLECDBNode()
5526 void setDM_DESCRIPTION(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
5530 _setProp(dbGroup
, _DM_DESCRIPTION
, value
, forceSending
);
5533 uint32
getDM_DESCRIPTION(const CCDBSynchronised
&dbGroup
)
5536 _getProp(dbGroup
, _DM_DESCRIPTION
, value
);
5541 ICDBStructNode
*getDM_DESCRIPTIONCDBNode()
5543 return _DM_DESCRIPTION
;
5546 void setROLEMASTER_TYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
5549 // Check that the value is not out of database precision
5550 STOP_IF(value
> (1<<2)-1, "setROLEMASTER_TYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 2 bits");
5553 _setProp(dbGroup
, _ROLEMASTER_TYPE
, value
, forceSending
);
5556 uint8
getROLEMASTER_TYPE(const CCDBSynchronised
&dbGroup
)
5559 _getProp(dbGroup
, _ROLEMASTER_TYPE
, value
);
5564 ICDBStructNode
*getROLEMASTER_TYPECDBNode()
5566 return _ROLEMASTER_TYPE
;
5568 TDM_CHOICE
&getDM_CHOICE(uint32 index
)
5570 nlassert(index
< 3);
5571 return _DM_CHOICE
[index
];
5586 ICDBStructNode
*_BranchNode
;
5588 ICDBStructNode
*_ICON
;
5589 ICDBStructNode
*_NAME
;
5593 void init(ICDBStructNode
*parent
, uint index
);
5595 // accessor to branch node
5596 ICDBStructNode
*getCDBNode()
5602 void setICON(CCDBSynchronised
&dbGroup
, uint64 value
, bool forceSending
= false)
5606 _setProp(dbGroup
, _ICON
, value
, forceSending
);
5609 uint64
getICON(const CCDBSynchronised
&dbGroup
)
5612 _getProp(dbGroup
, _ICON
, value
);
5617 ICDBStructNode
*getICONCDBNode()
5622 void setNAME(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
5626 _setProp(dbGroup
, _NAME
, value
, forceSending
);
5629 uint32
getNAME(const CCDBSynchronised
&dbGroup
)
5632 _getProp(dbGroup
, _NAME
, value
);
5637 ICDBStructNode
*getNAMECDBNode()
5646 ICDBStructNode
*_BranchNode
;
5648 ICDBStructNode
*_SESSION
;
5649 ICDBStructNode
*_PAGE_ID
;
5650 ICDBStructNode
*_HAS_NEXT
;
5655 void init(ICDBStructNode
*parent
);
5657 // accessor to branch node
5658 ICDBStructNode
*getCDBNode()
5664 void setSESSION(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
5668 _setProp(dbGroup
, _SESSION
, value
, forceSending
);
5671 uint16
getSESSION(const CCDBSynchronised
&dbGroup
)
5674 _getProp(dbGroup
, _SESSION
, value
);
5679 ICDBStructNode
*getSESSIONCDBNode()
5684 void setPAGE_ID(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
5687 // Check that the value is not out of database precision
5688 STOP_IF(value
> (1<<6)-1, "setPAGE_ID : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 6 bits");
5691 _setProp(dbGroup
, _PAGE_ID
, value
, forceSending
);
5694 uint8
getPAGE_ID(const CCDBSynchronised
&dbGroup
)
5697 _getProp(dbGroup
, _PAGE_ID
, value
);
5702 ICDBStructNode
*getPAGE_IDCDBNode()
5707 void setHAS_NEXT(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
5711 _setProp(dbGroup
, _HAS_NEXT
, value
, forceSending
);
5714 bool getHAS_NEXT(const CCDBSynchronised
&dbGroup
)
5717 _getProp(dbGroup
, _HAS_NEXT
, value
);
5722 ICDBStructNode
*getHAS_NEXTCDBNode()
5726 TArray
&getArray(uint32 index
)
5728 nlassert(index
< 8);
5729 return _Array
[index
];
5734 class TCHOOSE_MISSIONS
5744 ICDBStructNode
*_BranchNode
;
5746 ICDBStructNode
*_ICON
;
5747 ICDBStructNode
*_TEXT
;
5748 ICDBStructNode
*_DETAIL_TEXT
;
5749 ICDBStructNode
*_PREREQ_STATE
;
5753 void init(ICDBStructNode
*parent
, uint index
);
5755 // accessor to branch node
5756 ICDBStructNode
*getCDBNode()
5762 void setICON(CCDBSynchronised
&dbGroup
, NLMISC::CSheetId value
, bool forceSending
= false)
5766 _setProp(dbGroup
, _ICON
, value
, forceSending
);
5769 NLMISC::CSheetId
getICON(const CCDBSynchronised
&dbGroup
)
5771 NLMISC::CSheetId value
;
5772 _getProp(dbGroup
, _ICON
, value
);
5777 ICDBStructNode
*getICONCDBNode()
5782 void setTEXT(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
5786 _setProp(dbGroup
, _TEXT
, value
, forceSending
);
5789 uint32
getTEXT(const CCDBSynchronised
&dbGroup
)
5792 _getProp(dbGroup
, _TEXT
, value
);
5797 ICDBStructNode
*getTEXTCDBNode()
5802 void setDETAIL_TEXT(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
5806 _setProp(dbGroup
, _DETAIL_TEXT
, value
, forceSending
);
5809 uint32
getDETAIL_TEXT(const CCDBSynchronised
&dbGroup
)
5812 _getProp(dbGroup
, _DETAIL_TEXT
, value
);
5817 ICDBStructNode
*getDETAIL_TEXTCDBNode()
5819 return _DETAIL_TEXT
;
5822 void setPREREQ_STATE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
5826 _setProp(dbGroup
, _PREREQ_STATE
, value
, forceSending
);
5829 uint8
getPREREQ_STATE(const CCDBSynchronised
&dbGroup
)
5832 _getProp(dbGroup
, _PREREQ_STATE
, value
);
5837 ICDBStructNode
*getPREREQ_STATECDBNode()
5839 return _PREREQ_STATE
;
5846 ICDBStructNode
*_BranchNode
;
5848 ICDBStructNode
*_SESSION
;
5849 ICDBStructNode
*_PAGE_ID
;
5850 ICDBStructNode
*_HAS_NEXT
;
5855 void init(ICDBStructNode
*parent
);
5857 // accessor to branch node
5858 ICDBStructNode
*getCDBNode()
5864 void setSESSION(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
5868 _setProp(dbGroup
, _SESSION
, value
, forceSending
);
5871 uint16
getSESSION(const CCDBSynchronised
&dbGroup
)
5874 _getProp(dbGroup
, _SESSION
, value
);
5879 ICDBStructNode
*getSESSIONCDBNode()
5884 void setPAGE_ID(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
5887 // Check that the value is not out of database precision
5888 STOP_IF(value
> (1<<6)-1, "setPAGE_ID : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 6 bits");
5891 _setProp(dbGroup
, _PAGE_ID
, value
, forceSending
);
5894 uint8
getPAGE_ID(const CCDBSynchronised
&dbGroup
)
5897 _getProp(dbGroup
, _PAGE_ID
, value
);
5902 ICDBStructNode
*getPAGE_IDCDBNode()
5907 void setHAS_NEXT(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
5911 _setProp(dbGroup
, _HAS_NEXT
, value
, forceSending
);
5914 bool getHAS_NEXT(const CCDBSynchronised
&dbGroup
)
5917 _getProp(dbGroup
, _HAS_NEXT
, value
);
5922 ICDBStructNode
*getHAS_NEXTCDBNode()
5926 TArray
&getArray(uint32 index
)
5928 nlassert(index
< 8);
5929 return _Array
[index
];
5944 ICDBStructNode
*_BranchNode
;
5946 ICDBStructNode
*_SHEET
;
5947 ICDBStructNode
*_QUALITY
;
5948 ICDBStructNode
*_QUANTITY
;
5949 ICDBStructNode
*_CREATE_TIME
;
5950 ICDBStructNode
*_SERIAL
;
5951 ICDBStructNode
*_USER_COLOR
;
5952 ICDBStructNode
*_WEIGHT
;
5953 ICDBStructNode
*_NAMEID
;
5954 ICDBStructNode
*_INFO_VERSION
;
5955 ICDBStructNode
*_ENCHANT
;
5956 ICDBStructNode
*_RM_CLASS_TYPE
;
5957 ICDBStructNode
*_RM_FABER_STAT_TYPE
;
5958 ICDBStructNode
*_PREREQUISIT_VALID
;
5959 ICDBStructNode
*_CURRENCY
;
5960 ICDBStructNode
*_RRP_LEVEL
;
5961 ICDBStructNode
*_MONEY_SHEET
;
5962 ICDBStructNode
*_BASE_SKILL
;
5963 ICDBStructNode
*_FACTION_TYPE
;
5964 ICDBStructNode
*_PRICE
;
5965 ICDBStructNode
*_PRICE_RETIRE
;
5966 ICDBStructNode
*_RESALE_TIME_LEFT
;
5967 ICDBStructNode
*_VENDOR_NAMEID
;
5968 ICDBStructNode
*_FACTION_POINT_PRICE
;
5969 ICDBStructNode
*_SLOT_TYPE
;
5970 ICDBStructNode
*_SELLER_TYPE
;
5974 void init(ICDBStructNode
*parent
, uint index
);
5976 // accessor to branch node
5977 ICDBStructNode
*getCDBNode()
5983 void setSHEET(CCDBSynchronised
&dbGroup
, NLMISC::CSheetId value
, bool forceSending
= false)
5987 _setProp(dbGroup
, _SHEET
, value
, forceSending
);
5990 NLMISC::CSheetId
getSHEET(const CCDBSynchronised
&dbGroup
)
5992 NLMISC::CSheetId value
;
5993 _getProp(dbGroup
, _SHEET
, value
);
5998 ICDBStructNode
*getSHEETCDBNode()
6003 void setQUALITY(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
6006 // Check that the value is not out of database precision
6007 STOP_IF(value
> (1<<10)-1, "setQUALITY : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 10 bits");
6010 _setProp(dbGroup
, _QUALITY
, value
, forceSending
);
6013 uint16
getQUALITY(const CCDBSynchronised
&dbGroup
)
6016 _getProp(dbGroup
, _QUALITY
, value
);
6021 ICDBStructNode
*getQUALITYCDBNode()
6026 void setQUANTITY(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
6029 // Check that the value is not out of database precision
6030 STOP_IF(value
> (1<<10)-1, "setQUANTITY : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 10 bits");
6033 _setProp(dbGroup
, _QUANTITY
, value
, forceSending
);
6036 uint16
getQUANTITY(const CCDBSynchronised
&dbGroup
)
6039 _getProp(dbGroup
, _QUANTITY
, value
);
6044 ICDBStructNode
*getQUANTITYCDBNode()
6049 void setCREATE_TIME(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
6053 _setProp(dbGroup
, _CREATE_TIME
, value
, forceSending
);
6056 uint32
getCREATE_TIME(const CCDBSynchronised
&dbGroup
)
6059 _getProp(dbGroup
, _CREATE_TIME
, value
);
6064 ICDBStructNode
*getCREATE_TIMECDBNode()
6066 return _CREATE_TIME
;
6069 void setSERIAL(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
6073 _setProp(dbGroup
, _SERIAL
, value
, forceSending
);
6076 uint32
getSERIAL(const CCDBSynchronised
&dbGroup
)
6079 _getProp(dbGroup
, _SERIAL
, value
);
6084 ICDBStructNode
*getSERIALCDBNode()
6089 void setUSER_COLOR(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
6092 // Check that the value is not out of database precision
6093 STOP_IF(value
> (1<<3)-1, "setUSER_COLOR : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 3 bits");
6096 _setProp(dbGroup
, _USER_COLOR
, value
, forceSending
);
6099 uint8
getUSER_COLOR(const CCDBSynchronised
&dbGroup
)
6102 _getProp(dbGroup
, _USER_COLOR
, value
);
6107 ICDBStructNode
*getUSER_COLORCDBNode()
6112 void setWEIGHT(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
6116 _setProp(dbGroup
, _WEIGHT
, value
, forceSending
);
6119 uint16
getWEIGHT(const CCDBSynchronised
&dbGroup
)
6122 _getProp(dbGroup
, _WEIGHT
, value
);
6127 ICDBStructNode
*getWEIGHTCDBNode()
6132 void setNAMEID(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
6136 _setProp(dbGroup
, _NAMEID
, value
, forceSending
);
6139 uint32
getNAMEID(const CCDBSynchronised
&dbGroup
)
6142 _getProp(dbGroup
, _NAMEID
, value
);
6147 ICDBStructNode
*getNAMEIDCDBNode()
6152 void setINFO_VERSION(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
6156 _setProp(dbGroup
, _INFO_VERSION
, value
, forceSending
);
6159 uint8
getINFO_VERSION(const CCDBSynchronised
&dbGroup
)
6162 _getProp(dbGroup
, _INFO_VERSION
, value
);
6167 ICDBStructNode
*getINFO_VERSIONCDBNode()
6169 return _INFO_VERSION
;
6172 void setENCHANT(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
6175 // Check that the value is not out of database precision
6176 STOP_IF(value
> (1<<10)-1, "setENCHANT : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 10 bits");
6179 _setProp(dbGroup
, _ENCHANT
, value
, forceSending
);
6182 uint16
getENCHANT(const CCDBSynchronised
&dbGroup
)
6185 _getProp(dbGroup
, _ENCHANT
, value
);
6190 ICDBStructNode
*getENCHANTCDBNode()
6195 void setRM_CLASS_TYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
6198 // Check that the value is not out of database precision
6199 STOP_IF(value
> (1<<3)-1, "setRM_CLASS_TYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 3 bits");
6202 _setProp(dbGroup
, _RM_CLASS_TYPE
, value
, forceSending
);
6205 uint8
getRM_CLASS_TYPE(const CCDBSynchronised
&dbGroup
)
6208 _getProp(dbGroup
, _RM_CLASS_TYPE
, value
);
6213 ICDBStructNode
*getRM_CLASS_TYPECDBNode()
6215 return _RM_CLASS_TYPE
;
6218 void setRM_FABER_STAT_TYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
6221 // Check that the value is not out of database precision
6222 STOP_IF(value
> (1<<6)-1, "setRM_FABER_STAT_TYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 6 bits");
6225 _setProp(dbGroup
, _RM_FABER_STAT_TYPE
, value
, forceSending
);
6228 uint8
getRM_FABER_STAT_TYPE(const CCDBSynchronised
&dbGroup
)
6231 _getProp(dbGroup
, _RM_FABER_STAT_TYPE
, value
);
6236 ICDBStructNode
*getRM_FABER_STAT_TYPECDBNode()
6238 return _RM_FABER_STAT_TYPE
;
6241 void setPREREQUISIT_VALID(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
6245 _setProp(dbGroup
, _PREREQUISIT_VALID
, value
, forceSending
);
6248 bool getPREREQUISIT_VALID(const CCDBSynchronised
&dbGroup
)
6251 _getProp(dbGroup
, _PREREQUISIT_VALID
, value
);
6256 ICDBStructNode
*getPREREQUISIT_VALIDCDBNode()
6258 return _PREREQUISIT_VALID
;
6261 void setCURRENCY(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
6264 // Check that the value is not out of database precision
6265 STOP_IF(value
> (1<<4)-1, "setCURRENCY : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 4 bits");
6268 _setProp(dbGroup
, _CURRENCY
, value
, forceSending
);
6271 uint8
getCURRENCY(const CCDBSynchronised
&dbGroup
)
6274 _getProp(dbGroup
, _CURRENCY
, value
);
6279 ICDBStructNode
*getCURRENCYCDBNode()
6284 void setRRP_LEVEL(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
6287 // Check that the value is not out of database precision
6288 STOP_IF(value
> (1<<4)-1, "setRRP_LEVEL : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 4 bits");
6291 _setProp(dbGroup
, _RRP_LEVEL
, value
, forceSending
);
6294 uint8
getRRP_LEVEL(const CCDBSynchronised
&dbGroup
)
6297 _getProp(dbGroup
, _RRP_LEVEL
, value
);
6302 ICDBStructNode
*getRRP_LEVELCDBNode()
6307 void setMONEY_SHEET(CCDBSynchronised
&dbGroup
, NLMISC::CSheetId value
, bool forceSending
= false)
6311 _setProp(dbGroup
, _MONEY_SHEET
, value
, forceSending
);
6314 NLMISC::CSheetId
getMONEY_SHEET(const CCDBSynchronised
&dbGroup
)
6316 NLMISC::CSheetId value
;
6317 _getProp(dbGroup
, _MONEY_SHEET
, value
);
6322 ICDBStructNode
*getMONEY_SHEETCDBNode()
6324 return _MONEY_SHEET
;
6327 void setBASE_SKILL(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
6330 // Check that the value is not out of database precision
6331 STOP_IF(value
> (1<<4)-1, "setBASE_SKILL : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 4 bits");
6334 _setProp(dbGroup
, _BASE_SKILL
, value
, forceSending
);
6337 uint8
getBASE_SKILL(const CCDBSynchronised
&dbGroup
)
6340 _getProp(dbGroup
, _BASE_SKILL
, value
);
6345 ICDBStructNode
*getBASE_SKILLCDBNode()
6350 void setFACTION_TYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
6353 // Check that the value is not out of database precision
6354 STOP_IF(value
> (1<<4)-1, "setFACTION_TYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 4 bits");
6357 _setProp(dbGroup
, _FACTION_TYPE
, value
, forceSending
);
6360 uint8
getFACTION_TYPE(const CCDBSynchronised
&dbGroup
)
6363 _getProp(dbGroup
, _FACTION_TYPE
, value
);
6368 ICDBStructNode
*getFACTION_TYPECDBNode()
6370 return _FACTION_TYPE
;
6373 void setPRICE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
6377 _setProp(dbGroup
, _PRICE
, value
, forceSending
);
6380 uint32
getPRICE(const CCDBSynchronised
&dbGroup
)
6383 _getProp(dbGroup
, _PRICE
, value
);
6388 ICDBStructNode
*getPRICECDBNode()
6393 void setPRICE_RETIRE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
6397 _setProp(dbGroup
, _PRICE_RETIRE
, value
, forceSending
);
6400 uint32
getPRICE_RETIRE(const CCDBSynchronised
&dbGroup
)
6403 _getProp(dbGroup
, _PRICE_RETIRE
, value
);
6408 ICDBStructNode
*getPRICE_RETIRECDBNode()
6410 return _PRICE_RETIRE
;
6413 void setRESALE_TIME_LEFT(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
6417 _setProp(dbGroup
, _RESALE_TIME_LEFT
, value
, forceSending
);
6420 uint16
getRESALE_TIME_LEFT(const CCDBSynchronised
&dbGroup
)
6423 _getProp(dbGroup
, _RESALE_TIME_LEFT
, value
);
6428 ICDBStructNode
*getRESALE_TIME_LEFTCDBNode()
6430 return _RESALE_TIME_LEFT
;
6433 void setVENDOR_NAMEID(CCDBSynchronised
&dbGroup
, ucstring value
, bool forceSending
= false)
6437 _setProp(dbGroup
, _VENDOR_NAMEID
, value
, forceSending
);
6440 ucstring
getVENDOR_NAMEID(const CCDBSynchronised
&dbGroup
)
6443 _getProp(dbGroup
, _VENDOR_NAMEID
, value
);
6448 void setVENDOR_NAMEID(CCDBSynchronised
&dbGroup
, uint32 stringId
, bool forceSending
= false)
6450 _setProp(dbGroup
, _VENDOR_NAMEID
, stringId
, forceSending
);
6452 uint32
getVENDOR_NAMEID_id(const CCDBSynchronised
&dbGroup
)
6455 _getProp(dbGroup
, _VENDOR_NAMEID
, value
);
6460 ICDBStructNode
*getVENDOR_NAMEIDCDBNode()
6462 return _VENDOR_NAMEID
;
6465 void setFACTION_POINT_PRICE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
6469 _setProp(dbGroup
, _FACTION_POINT_PRICE
, value
, forceSending
);
6472 uint32
getFACTION_POINT_PRICE(const CCDBSynchronised
&dbGroup
)
6475 _getProp(dbGroup
, _FACTION_POINT_PRICE
, value
);
6480 ICDBStructNode
*getFACTION_POINT_PRICECDBNode()
6482 return _FACTION_POINT_PRICE
;
6485 void setSLOT_TYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
6488 // Check that the value is not out of database precision
6489 STOP_IF(value
> (1<<2)-1, "setSLOT_TYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 2 bits");
6492 _setProp(dbGroup
, _SLOT_TYPE
, value
, forceSending
);
6495 uint8
getSLOT_TYPE(const CCDBSynchronised
&dbGroup
)
6498 _getProp(dbGroup
, _SLOT_TYPE
, value
);
6503 ICDBStructNode
*getSLOT_TYPECDBNode()
6508 void setSELLER_TYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
6511 // Check that the value is not out of database precision
6512 STOP_IF(value
> (1<<3)-1, "setSELLER_TYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 3 bits");
6515 _setProp(dbGroup
, _SELLER_TYPE
, value
, forceSending
);
6518 uint8
getSELLER_TYPE(const CCDBSynchronised
&dbGroup
)
6521 _getProp(dbGroup
, _SELLER_TYPE
, value
);
6526 ICDBStructNode
*getSELLER_TYPECDBNode()
6528 return _SELLER_TYPE
;
6535 ICDBStructNode
*_BranchNode
;
6537 ICDBStructNode
*_SESSION
;
6538 ICDBStructNode
*_PAGE_ID
;
6539 ICDBStructNode
*_HAS_NEXT
;
6540 ICDBStructNode
*_ROLEMASTER_FLAGS
;
6541 ICDBStructNode
*_ROLEMASTER_RACE
;
6542 ICDBStructNode
*_BUILDING_LOSS_WARNING
;
6543 ICDBStructNode
*_RAW_MATERIAL_SELLER
;
6544 ICDBStructNode
*_ITEM_TYPE_SELLER_BITFILED_0_63
;
6545 ICDBStructNode
*_ITEM_TYPE_SELLER_BITFILED_64_127
;
6546 ICDBStructNode
*_FAME_PRICE_FACTOR
;
6551 void init(ICDBStructNode
*parent
);
6553 // accessor to branch node
6554 ICDBStructNode
*getCDBNode()
6560 void setSESSION(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
6564 _setProp(dbGroup
, _SESSION
, value
, forceSending
);
6567 uint16
getSESSION(const CCDBSynchronised
&dbGroup
)
6570 _getProp(dbGroup
, _SESSION
, value
);
6575 ICDBStructNode
*getSESSIONCDBNode()
6580 void setPAGE_ID(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
6583 // Check that the value is not out of database precision
6584 STOP_IF(value
> (1<<7)-1, "setPAGE_ID : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 7 bits");
6587 _setProp(dbGroup
, _PAGE_ID
, value
, forceSending
);
6590 uint8
getPAGE_ID(const CCDBSynchronised
&dbGroup
)
6593 _getProp(dbGroup
, _PAGE_ID
, value
);
6598 ICDBStructNode
*getPAGE_IDCDBNode()
6603 void setHAS_NEXT(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
6607 _setProp(dbGroup
, _HAS_NEXT
, value
, forceSending
);
6610 bool getHAS_NEXT(const CCDBSynchronised
&dbGroup
)
6613 _getProp(dbGroup
, _HAS_NEXT
, value
);
6618 ICDBStructNode
*getHAS_NEXTCDBNode()
6623 void setROLEMASTER_FLAGS(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
6626 // Check that the value is not out of database precision
6627 STOP_IF(value
> (1<<6)-1, "setROLEMASTER_FLAGS : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 6 bits");
6630 _setProp(dbGroup
, _ROLEMASTER_FLAGS
, value
, forceSending
);
6633 uint8
getROLEMASTER_FLAGS(const CCDBSynchronised
&dbGroup
)
6636 _getProp(dbGroup
, _ROLEMASTER_FLAGS
, value
);
6641 ICDBStructNode
*getROLEMASTER_FLAGSCDBNode()
6643 return _ROLEMASTER_FLAGS
;
6646 void setROLEMASTER_RACE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
6649 // Check that the value is not out of database precision
6650 STOP_IF(value
> (1<<2)-1, "setROLEMASTER_RACE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 2 bits");
6653 _setProp(dbGroup
, _ROLEMASTER_RACE
, value
, forceSending
);
6656 uint8
getROLEMASTER_RACE(const CCDBSynchronised
&dbGroup
)
6659 _getProp(dbGroup
, _ROLEMASTER_RACE
, value
);
6664 ICDBStructNode
*getROLEMASTER_RACECDBNode()
6666 return _ROLEMASTER_RACE
;
6669 void setBUILDING_LOSS_WARNING(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
6673 _setProp(dbGroup
, _BUILDING_LOSS_WARNING
, value
, forceSending
);
6676 bool getBUILDING_LOSS_WARNING(const CCDBSynchronised
&dbGroup
)
6679 _getProp(dbGroup
, _BUILDING_LOSS_WARNING
, value
);
6684 ICDBStructNode
*getBUILDING_LOSS_WARNINGCDBNode()
6686 return _BUILDING_LOSS_WARNING
;
6689 void setRAW_MATERIAL_SELLER(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
6693 _setProp(dbGroup
, _RAW_MATERIAL_SELLER
, value
, forceSending
);
6696 bool getRAW_MATERIAL_SELLER(const CCDBSynchronised
&dbGroup
)
6699 _getProp(dbGroup
, _RAW_MATERIAL_SELLER
, value
);
6704 ICDBStructNode
*getRAW_MATERIAL_SELLERCDBNode()
6706 return _RAW_MATERIAL_SELLER
;
6709 void setITEM_TYPE_SELLER_BITFILED_0_63(CCDBSynchronised
&dbGroup
, uint64 value
, bool forceSending
= false)
6713 _setProp(dbGroup
, _ITEM_TYPE_SELLER_BITFILED_0_63
, value
, forceSending
);
6716 uint64
getITEM_TYPE_SELLER_BITFILED_0_63(const CCDBSynchronised
&dbGroup
)
6719 _getProp(dbGroup
, _ITEM_TYPE_SELLER_BITFILED_0_63
, value
);
6724 ICDBStructNode
*getITEM_TYPE_SELLER_BITFILED_0_63CDBNode()
6726 return _ITEM_TYPE_SELLER_BITFILED_0_63
;
6729 void setITEM_TYPE_SELLER_BITFILED_64_127(CCDBSynchronised
&dbGroup
, uint64 value
, bool forceSending
= false)
6733 _setProp(dbGroup
, _ITEM_TYPE_SELLER_BITFILED_64_127
, value
, forceSending
);
6736 uint64
getITEM_TYPE_SELLER_BITFILED_64_127(const CCDBSynchronised
&dbGroup
)
6739 _getProp(dbGroup
, _ITEM_TYPE_SELLER_BITFILED_64_127
, value
);
6744 ICDBStructNode
*getITEM_TYPE_SELLER_BITFILED_64_127CDBNode()
6746 return _ITEM_TYPE_SELLER_BITFILED_64_127
;
6749 void setFAME_PRICE_FACTOR(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
6753 _setProp(dbGroup
, _FAME_PRICE_FACTOR
, value
, forceSending
);
6756 uint16
getFAME_PRICE_FACTOR(const CCDBSynchronised
&dbGroup
)
6759 _getProp(dbGroup
, _FAME_PRICE_FACTOR
, value
);
6764 ICDBStructNode
*getFAME_PRICE_FACTORCDBNode()
6766 return _FAME_PRICE_FACTOR
;
6768 TArray
&getArray(uint32 index
)
6770 nlassert(index
< 8);
6771 return _Array
[index
];
6786 ICDBStructNode
*_BranchNode
;
6788 ICDBStructNode
*_BRICKS
;
6792 void init(ICDBStructNode
*parent
, uint index
);
6794 // accessor to branch node
6795 ICDBStructNode
*getCDBNode()
6801 void setBRICKS(CCDBSynchronised
&dbGroup
, uint64 value
, bool forceSending
= false)
6805 _setProp(dbGroup
, _BRICKS
, value
, forceSending
);
6808 uint64
getBRICKS(const CCDBSynchronised
&dbGroup
)
6811 _getProp(dbGroup
, _BRICKS
, value
);
6816 ICDBStructNode
*getBRICKSCDBNode()
6825 ICDBStructNode
*_BranchNode
;
6827 TArray _Array
[1024];
6831 void init(ICDBStructNode
*parent
);
6833 // accessor to branch node
6834 ICDBStructNode
*getCDBNode()
6839 TArray
&getArray(uint32 index
)
6841 nlassert(index
< 1024);
6842 return _Array
[index
];
6857 ICDBStructNode
*_BranchNode
;
6859 ICDBStructNode
*_KNOWN
;
6863 void init(ICDBStructNode
*parent
, uint index
);
6865 // accessor to branch node
6866 ICDBStructNode
*getCDBNode()
6872 void setKNOWN(CCDBSynchronised
&dbGroup
, uint64 value
, bool forceSending
= false)
6876 _setProp(dbGroup
, _KNOWN
, value
, forceSending
);
6879 uint64
getKNOWN(const CCDBSynchronised
&dbGroup
)
6882 _getProp(dbGroup
, _KNOWN
, value
);
6887 ICDBStructNode
*getKNOWNCDBNode()
6896 ICDBStructNode
*_BranchNode
;
6902 void init(ICDBStructNode
*parent
);
6904 // accessor to branch node
6905 ICDBStructNode
*getCDBNode()
6910 TArray
&getArray(uint32 index
)
6912 nlassert(index
< 64);
6913 return _Array
[index
];
6936 ICDBStructNode
*_BranchNode
;
6938 ICDBStructNode
*_TEXT
;
6939 ICDBStructNode
*_NPC_ALIAS
;
6943 void init(ICDBStructNode
*parent
, uint index
);
6945 // accessor to branch node
6946 ICDBStructNode
*getCDBNode()
6952 void setTEXT(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
6956 _setProp(dbGroup
, _TEXT
, value
, forceSending
);
6959 uint32
getTEXT(const CCDBSynchronised
&dbGroup
)
6962 _getProp(dbGroup
, _TEXT
, value
);
6967 ICDBStructNode
*getTEXTCDBNode()
6972 void setNPC_ALIAS(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
6976 _setProp(dbGroup
, _NPC_ALIAS
, value
, forceSending
);
6979 uint32
getNPC_ALIAS(const CCDBSynchronised
&dbGroup
)
6982 _getProp(dbGroup
, _NPC_ALIAS
, value
);
6987 ICDBStructNode
*getNPC_ALIASCDBNode()
6996 ICDBStructNode
*_BranchNode
;
7002 void init(ICDBStructNode
*parent
);
7004 // accessor to branch node
7005 ICDBStructNode
*getCDBNode()
7010 TArray
&getArray(uint32 index
)
7012 nlassert(index
< 20);
7013 return _Array
[index
];
7024 ICDBStructNode
*_BranchNode
;
7026 ICDBStructNode
*_TITLE
;
7032 void init(ICDBStructNode
*parent
, uint index
);
7034 // accessor to branch node
7035 ICDBStructNode
*getCDBNode()
7041 void setTITLE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
7045 _setProp(dbGroup
, _TITLE
, value
, forceSending
);
7048 uint32
getTITLE(const CCDBSynchronised
&dbGroup
)
7051 _getProp(dbGroup
, _TITLE
, value
);
7056 ICDBStructNode
*getTITLECDBNode()
7061 void setX(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
7065 _setProp(dbGroup
, _X
, value
, forceSending
);
7068 uint32
getX(const CCDBSynchronised
&dbGroup
)
7071 _getProp(dbGroup
, _X
, value
);
7076 ICDBStructNode
*getXCDBNode()
7081 void setY(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
7085 _setProp(dbGroup
, _Y
, value
, forceSending
);
7088 uint32
getY(const CCDBSynchronised
&dbGroup
)
7091 _getProp(dbGroup
, _Y
, value
);
7096 ICDBStructNode
*getYCDBNode()
7113 ICDBStructNode
*_BranchNode
;
7115 ICDBStructNode
*_TEXT
;
7119 void init(ICDBStructNode
*parent
, uint index
);
7121 // accessor to branch node
7122 ICDBStructNode
*getCDBNode()
7128 void setTEXT(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
7132 _setProp(dbGroup
, _TEXT
, value
, forceSending
);
7135 uint32
getTEXT(const CCDBSynchronised
&dbGroup
)
7138 _getProp(dbGroup
, _TEXT
, value
);
7143 ICDBStructNode
*getTEXTCDBNode()
7152 ICDBStructNode
*_BranchNode
;
7158 void init(ICDBStructNode
*parent
);
7160 // accessor to branch node
7161 ICDBStructNode
*getCDBNode()
7166 TArray
&getArray(uint32 index
)
7168 nlassert(index
< 30);
7169 return _Array
[index
];
7176 ICDBStructNode
*_BranchNode
;
7178 ICDBStructNode
*_TYPE
;
7179 ICDBStructNode
*_ICON
;
7180 ICDBStructNode
*_TITLE
;
7181 ICDBStructNode
*_DETAIL_TEXT
;
7182 ICDBStructNode
*_BEGIN_DATE
;
7183 ICDBStructNode
*_END_DATE
;
7184 ICDBStructNode
*_OR_STEPS
;
7185 ICDBStructNode
*_FINISHED
;
7186 ICDBStructNode
*_ABANDONNABLE
;
7187 ICDBStructNode
*_SLEEP
;
7194 void init(ICDBStructNode
*parent
, uint index
);
7196 // accessor to branch node
7197 ICDBStructNode
*getCDBNode()
7203 void setTYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
7206 // Check that the value is not out of database precision
7207 STOP_IF(value
> (1<<2)-1, "setTYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 2 bits");
7210 _setProp(dbGroup
, _TYPE
, value
, forceSending
);
7213 uint8
getTYPE(const CCDBSynchronised
&dbGroup
)
7216 _getProp(dbGroup
, _TYPE
, value
);
7221 ICDBStructNode
*getTYPECDBNode()
7226 void setICON(CCDBSynchronised
&dbGroup
, NLMISC::CSheetId value
, bool forceSending
= false)
7230 _setProp(dbGroup
, _ICON
, value
, forceSending
);
7233 NLMISC::CSheetId
getICON(const CCDBSynchronised
&dbGroup
)
7235 NLMISC::CSheetId value
;
7236 _getProp(dbGroup
, _ICON
, value
);
7241 ICDBStructNode
*getICONCDBNode()
7246 void setTITLE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
7250 _setProp(dbGroup
, _TITLE
, value
, forceSending
);
7253 uint32
getTITLE(const CCDBSynchronised
&dbGroup
)
7256 _getProp(dbGroup
, _TITLE
, value
);
7261 ICDBStructNode
*getTITLECDBNode()
7266 void setDETAIL_TEXT(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
7270 _setProp(dbGroup
, _DETAIL_TEXT
, value
, forceSending
);
7273 uint32
getDETAIL_TEXT(const CCDBSynchronised
&dbGroup
)
7276 _getProp(dbGroup
, _DETAIL_TEXT
, value
);
7281 ICDBStructNode
*getDETAIL_TEXTCDBNode()
7283 return _DETAIL_TEXT
;
7286 void setBEGIN_DATE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
7290 _setProp(dbGroup
, _BEGIN_DATE
, value
, forceSending
);
7293 uint32
getBEGIN_DATE(const CCDBSynchronised
&dbGroup
)
7296 _getProp(dbGroup
, _BEGIN_DATE
, value
);
7301 ICDBStructNode
*getBEGIN_DATECDBNode()
7306 void setEND_DATE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
7310 _setProp(dbGroup
, _END_DATE
, value
, forceSending
);
7313 uint32
getEND_DATE(const CCDBSynchronised
&dbGroup
)
7316 _getProp(dbGroup
, _END_DATE
, value
);
7321 ICDBStructNode
*getEND_DATECDBNode()
7326 void setOR_STEPS(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
7330 _setProp(dbGroup
, _OR_STEPS
, value
, forceSending
);
7333 bool getOR_STEPS(const CCDBSynchronised
&dbGroup
)
7336 _getProp(dbGroup
, _OR_STEPS
, value
);
7341 ICDBStructNode
*getOR_STEPSCDBNode()
7346 void setFINISHED(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
7349 // Check that the value is not out of database precision
7350 STOP_IF(value
> (1<<2)-1, "setFINISHED : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 2 bits");
7353 _setProp(dbGroup
, _FINISHED
, value
, forceSending
);
7356 uint8
getFINISHED(const CCDBSynchronised
&dbGroup
)
7359 _getProp(dbGroup
, _FINISHED
, value
);
7364 ICDBStructNode
*getFINISHEDCDBNode()
7369 void setABANDONNABLE(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
7373 _setProp(dbGroup
, _ABANDONNABLE
, value
, forceSending
);
7376 bool getABANDONNABLE(const CCDBSynchronised
&dbGroup
)
7379 _getProp(dbGroup
, _ABANDONNABLE
, value
);
7384 ICDBStructNode
*getABANDONNABLECDBNode()
7386 return _ABANDONNABLE
;
7389 void setSLEEP(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
7393 _setProp(dbGroup
, _SLEEP
, value
, forceSending
);
7396 bool getSLEEP(const CCDBSynchronised
&dbGroup
)
7399 _getProp(dbGroup
, _SLEEP
, value
);
7404 ICDBStructNode
*getSLEEPCDBNode()
7412 TTARGET
&getTARGET(uint32 index
)
7414 nlassert(index
< 8);
7415 return _TARGET
[index
];
7426 ICDBStructNode
*_BranchNode
;
7432 void init(ICDBStructNode
*parent
);
7434 // accessor to branch node
7435 ICDBStructNode
*getCDBNode()
7440 TArray
&getArray(uint32 index
)
7442 nlassert(index
< 15);
7443 return _Array
[index
];
7448 class TEXECUTE_PHRASE
7462 ICDBStructNode
*_BranchNode
;
7464 ICDBStructNode
*_PHRASE
;
7465 ICDBStructNode
*_COUNTER
;
7466 ICDBStructNode
*_HP_COST
;
7467 ICDBStructNode
*_SAP_COST
;
7468 ICDBStructNode
*_STA_COST
;
7469 ICDBStructNode
*_TARGET_NAME
;
7470 ICDBStructNode
*_TARGET_HP
;
7471 ICDBStructNode
*_TARGET_SAP
;
7472 ICDBStructNode
*_TARGET_STA
;
7476 void init(ICDBStructNode
*parent
, uint index
);
7478 // accessor to branch node
7479 ICDBStructNode
*getCDBNode()
7485 void setPHRASE(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
7489 _setProp(dbGroup
, _PHRASE
, value
, forceSending
);
7492 uint16
getPHRASE(const CCDBSynchronised
&dbGroup
)
7495 _getProp(dbGroup
, _PHRASE
, value
);
7500 ICDBStructNode
*getPHRASECDBNode()
7505 void setCOUNTER(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
7508 // Check that the value is not out of database precision
7509 STOP_IF(value
> (1<<4)-1, "setCOUNTER : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 4 bits");
7512 _setProp(dbGroup
, _COUNTER
, value
, forceSending
);
7515 uint8
getCOUNTER(const CCDBSynchronised
&dbGroup
)
7518 _getProp(dbGroup
, _COUNTER
, value
);
7523 ICDBStructNode
*getCOUNTERCDBNode()
7528 void setHP_COST(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
7532 _setProp(dbGroup
, _HP_COST
, value
, forceSending
);
7535 uint16
getHP_COST(const CCDBSynchronised
&dbGroup
)
7538 _getProp(dbGroup
, _HP_COST
, value
);
7543 ICDBStructNode
*getHP_COSTCDBNode()
7548 void setSAP_COST(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
7552 _setProp(dbGroup
, _SAP_COST
, value
, forceSending
);
7555 uint16
getSAP_COST(const CCDBSynchronised
&dbGroup
)
7558 _getProp(dbGroup
, _SAP_COST
, value
);
7563 ICDBStructNode
*getSAP_COSTCDBNode()
7568 void setSTA_COST(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
7572 _setProp(dbGroup
, _STA_COST
, value
, forceSending
);
7575 uint16
getSTA_COST(const CCDBSynchronised
&dbGroup
)
7578 _getProp(dbGroup
, _STA_COST
, value
);
7583 ICDBStructNode
*getSTA_COSTCDBNode()
7588 void setTARGET_NAME(CCDBSynchronised
&dbGroup
, ucstring value
, bool forceSending
= false)
7592 _setProp(dbGroup
, _TARGET_NAME
, value
, forceSending
);
7595 ucstring
getTARGET_NAME(const CCDBSynchronised
&dbGroup
)
7598 _getProp(dbGroup
, _TARGET_NAME
, value
);
7603 void setTARGET_NAME(CCDBSynchronised
&dbGroup
, uint32 stringId
, bool forceSending
= false)
7605 _setProp(dbGroup
, _TARGET_NAME
, stringId
, forceSending
);
7607 uint32
getTARGET_NAME_id(const CCDBSynchronised
&dbGroup
)
7610 _getProp(dbGroup
, _TARGET_NAME
, value
);
7615 ICDBStructNode
*getTARGET_NAMECDBNode()
7617 return _TARGET_NAME
;
7620 void setTARGET_HP(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
7623 // Check that the value is not out of database precision
7624 STOP_IF(value
> (1<<7)-1, "setTARGET_HP : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 7 bits");
7627 _setProp(dbGroup
, _TARGET_HP
, value
, forceSending
);
7630 uint8
getTARGET_HP(const CCDBSynchronised
&dbGroup
)
7633 _getProp(dbGroup
, _TARGET_HP
, value
);
7638 ICDBStructNode
*getTARGET_HPCDBNode()
7643 void setTARGET_SAP(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
7646 // Check that the value is not out of database precision
7647 STOP_IF(value
> (1<<7)-1, "setTARGET_SAP : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 7 bits");
7650 _setProp(dbGroup
, _TARGET_SAP
, value
, forceSending
);
7653 uint8
getTARGET_SAP(const CCDBSynchronised
&dbGroup
)
7656 _getProp(dbGroup
, _TARGET_SAP
, value
);
7661 ICDBStructNode
*getTARGET_SAPCDBNode()
7666 void setTARGET_STA(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
7669 // Check that the value is not out of database precision
7670 STOP_IF(value
> (1<<7)-1, "setTARGET_STA : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 7 bits");
7673 _setProp(dbGroup
, _TARGET_STA
, value
, forceSending
);
7676 uint8
getTARGET_STA(const CCDBSynchronised
&dbGroup
)
7679 _getProp(dbGroup
, _TARGET_STA
, value
);
7684 ICDBStructNode
*getTARGET_STACDBNode()
7693 ICDBStructNode
*_BranchNode
;
7699 void init(ICDBStructNode
*parent
);
7701 // accessor to branch node
7702 ICDBStructNode
*getCDBNode()
7707 TArray
&getArray(uint32 index
)
7709 nlassert(index
< 10);
7710 return _Array
[index
];
7717 ICDBStructNode
*_BranchNode
;
7719 ICDBStructNode
*_PHRASE
;
7720 ICDBStructNode
*_SHEET
;
7721 ICDBStructNode
*_NEXT_COUNTER
;
7722 ICDBStructNode
*_CYCLE_COUNTER
;
7727 void init(ICDBStructNode
*parent
);
7729 // accessor to branch node
7730 ICDBStructNode
*getCDBNode()
7736 void setPHRASE(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
7740 _setProp(dbGroup
, _PHRASE
, value
, forceSending
);
7743 uint16
getPHRASE(const CCDBSynchronised
&dbGroup
)
7746 _getProp(dbGroup
, _PHRASE
, value
);
7751 ICDBStructNode
*getPHRASECDBNode()
7756 void setSHEET(CCDBSynchronised
&dbGroup
, NLMISC::CSheetId value
, bool forceSending
= false)
7760 _setProp(dbGroup
, _SHEET
, value
, forceSending
);
7763 NLMISC::CSheetId
getSHEET(const CCDBSynchronised
&dbGroup
)
7765 NLMISC::CSheetId value
;
7766 _getProp(dbGroup
, _SHEET
, value
);
7771 ICDBStructNode
*getSHEETCDBNode()
7776 void setNEXT_COUNTER(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
7780 _setProp(dbGroup
, _NEXT_COUNTER
, value
, forceSending
);
7783 uint8
getNEXT_COUNTER(const CCDBSynchronised
&dbGroup
)
7786 _getProp(dbGroup
, _NEXT_COUNTER
, value
);
7791 ICDBStructNode
*getNEXT_COUNTERCDBNode()
7793 return _NEXT_COUNTER
;
7796 void setCYCLE_COUNTER(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
7800 _setProp(dbGroup
, _CYCLE_COUNTER
, value
, forceSending
);
7803 uint8
getCYCLE_COUNTER(const CCDBSynchronised
&dbGroup
)
7806 _getProp(dbGroup
, _CYCLE_COUNTER
, value
);
7811 ICDBStructNode
*getCYCLE_COUNTERCDBNode()
7813 return _CYCLE_COUNTER
;
7822 class TCHARACTER_INFO
7826 class TCHARACTERISTICS
7832 ICDBStructNode
*_BranchNode
;
7834 ICDBStructNode
*_VALUE
;
7838 void init(ICDBStructNode
*parent
, uint index
);
7840 // accessor to branch node
7841 ICDBStructNode
*getCDBNode()
7847 void setVALUE(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
7850 // Check that the value is not out of database precision
7851 STOP_IF(value
> (1<<12)-1, "setVALUE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 12 bits");
7854 _setProp(dbGroup
, _VALUE
, value
, forceSending
);
7857 uint16
getVALUE(const CCDBSynchronised
&dbGroup
)
7860 _getProp(dbGroup
, _VALUE
, value
);
7865 ICDBStructNode
*getVALUECDBNode()
7878 ICDBStructNode
*_BranchNode
;
7880 ICDBStructNode
*_Base
;
7881 ICDBStructNode
*_Max
;
7882 ICDBStructNode
*_BaseRegen
;
7883 ICDBStructNode
*_Regen
;
7887 void init(ICDBStructNode
*parent
, uint index
);
7889 // accessor to branch node
7890 ICDBStructNode
*getCDBNode()
7896 void setBase(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
7899 // Check that the value is not out of database precision
7900 STOP_IF(value
> (1<<24)-1, "setBase : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 24 bits");
7903 _setProp(dbGroup
, _Base
, value
, forceSending
);
7906 uint32
getBase(const CCDBSynchronised
&dbGroup
)
7909 _getProp(dbGroup
, _Base
, value
);
7914 ICDBStructNode
*getBaseCDBNode()
7919 void setMax(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
7922 // Check that the value is not out of database precision
7923 STOP_IF(value
> (1<<24)-1, "setMax : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 24 bits");
7926 _setProp(dbGroup
, _Max
, value
, forceSending
);
7929 uint32
getMax(const CCDBSynchronised
&dbGroup
)
7932 _getProp(dbGroup
, _Max
, value
);
7937 ICDBStructNode
*getMaxCDBNode()
7942 void setBaseRegen(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
7945 // Check that the value is not out of database precision
7946 STOP_IF(value
> (1<<24)-1, "setBaseRegen : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 24 bits");
7949 _setProp(dbGroup
, _BaseRegen
, value
, forceSending
);
7952 uint32
getBaseRegen(const CCDBSynchronised
&dbGroup
)
7955 _getProp(dbGroup
, _BaseRegen
, value
);
7960 ICDBStructNode
*getBaseRegenCDBNode()
7965 void setRegen(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
7968 // Check that the value is not out of database precision
7969 STOP_IF(value
> (1<<24)-1, "setRegen : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 24 bits");
7972 _setProp(dbGroup
, _Regen
, value
, forceSending
);
7975 uint32
getRegen(const CCDBSynchronised
&dbGroup
)
7978 _getProp(dbGroup
, _Regen
, value
);
7983 ICDBStructNode
*getRegenCDBNode()
7990 class TMAGIC_RESISTANCE
8000 ICDBStructNode
*_BranchNode
;
8002 ICDBStructNode
*_VALUE
;
8006 void init(ICDBStructNode
*parent
, uint index
);
8008 // accessor to branch node
8009 ICDBStructNode
*getCDBNode()
8015 void setVALUE(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
8018 // Check that the value is not out of database precision
8019 STOP_IF(value
> (1<<9)-1, "setVALUE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 9 bits");
8022 _setProp(dbGroup
, _VALUE
, value
, forceSending
);
8025 uint16
getVALUE(const CCDBSynchronised
&dbGroup
)
8028 _getProp(dbGroup
, _VALUE
, value
);
8033 ICDBStructNode
*getVALUECDBNode()
8042 ICDBStructNode
*_BranchNode
;
8044 ICDBStructNode
*_MaxResistanceBonus
;
8049 void init(ICDBStructNode
*parent
);
8051 // accessor to branch node
8052 ICDBStructNode
*getCDBNode()
8058 void setMaxResistanceBonus(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
8061 // Check that the value is not out of database precision
8062 STOP_IF(value
> (1<<9)-1, "setMaxResistanceBonus : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 9 bits");
8065 _setProp(dbGroup
, _MaxResistanceBonus
, value
, forceSending
);
8068 uint16
getMaxResistanceBonus(const CCDBSynchronised
&dbGroup
)
8071 _getProp(dbGroup
, _MaxResistanceBonus
, value
);
8076 ICDBStructNode
*getMaxResistanceBonusCDBNode()
8078 return _MaxResistanceBonus
;
8080 TArray
&getArray(uint32 index
)
8082 nlassert(index
< 5);
8083 return _Array
[index
];
8088 class TMAGIC_PROTECTION
8098 ICDBStructNode
*_BranchNode
;
8100 ICDBStructNode
*_VALUE
;
8104 void init(ICDBStructNode
*parent
, uint index
);
8106 // accessor to branch node
8107 ICDBStructNode
*getCDBNode()
8113 void setVALUE(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
8116 // Check that the value is not out of database precision
8117 STOP_IF(value
> (1<<9)-1, "setVALUE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 9 bits");
8120 _setProp(dbGroup
, _VALUE
, value
, forceSending
);
8123 uint16
getVALUE(const CCDBSynchronised
&dbGroup
)
8126 _getProp(dbGroup
, _VALUE
, value
);
8131 ICDBStructNode
*getVALUECDBNode()
8140 ICDBStructNode
*_BranchNode
;
8142 ICDBStructNode
*_MaxProtectionClampValue
;
8143 ICDBStructNode
*_MaxAbsorptionFactor
;
8148 void init(ICDBStructNode
*parent
);
8150 // accessor to branch node
8151 ICDBStructNode
*getCDBNode()
8157 void setMaxProtectionClampValue(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
8160 // Check that the value is not out of database precision
8161 STOP_IF(value
> (1<<9)-1, "setMaxProtectionClampValue : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 9 bits");
8164 _setProp(dbGroup
, _MaxProtectionClampValue
, value
, forceSending
);
8167 uint16
getMaxProtectionClampValue(const CCDBSynchronised
&dbGroup
)
8170 _getProp(dbGroup
, _MaxProtectionClampValue
, value
);
8175 ICDBStructNode
*getMaxProtectionClampValueCDBNode()
8177 return _MaxProtectionClampValue
;
8180 void setMaxAbsorptionFactor(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
8183 // Check that the value is not out of database precision
8184 STOP_IF(value
> (1<<9)-1, "setMaxAbsorptionFactor : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 9 bits");
8187 _setProp(dbGroup
, _MaxAbsorptionFactor
, value
, forceSending
);
8190 uint16
getMaxAbsorptionFactor(const CCDBSynchronised
&dbGroup
)
8193 _getProp(dbGroup
, _MaxAbsorptionFactor
, value
);
8198 ICDBStructNode
*getMaxAbsorptionFactorCDBNode()
8200 return _MaxAbsorptionFactor
;
8202 TArray
&getArray(uint32 index
)
8204 nlassert(index
< 7);
8205 return _Array
[index
];
8216 ICDBStructNode
*_BranchNode
;
8218 ICDBStructNode
*_Base
;
8219 ICDBStructNode
*_Current
;
8223 void init(ICDBStructNode
*parent
);
8225 // accessor to branch node
8226 ICDBStructNode
*getCDBNode()
8232 void setBase(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
8235 // Check that the value is not out of database precision
8236 STOP_IF(value
> (1<<9)-1, "setBase : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 9 bits");
8239 _setProp(dbGroup
, _Base
, value
, forceSending
);
8242 uint16
getBase(const CCDBSynchronised
&dbGroup
)
8245 _getProp(dbGroup
, _Base
, value
);
8250 ICDBStructNode
*getBaseCDBNode()
8255 void setCurrent(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
8258 // Check that the value is not out of database precision
8259 STOP_IF(value
> (1<<9)-1, "setCurrent : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 9 bits");
8262 _setProp(dbGroup
, _Current
, value
, forceSending
);
8265 uint16
getCurrent(const CCDBSynchronised
&dbGroup
)
8268 _getProp(dbGroup
, _Current
, value
);
8273 ICDBStructNode
*getCurrentCDBNode()
8286 ICDBStructNode
*_BranchNode
;
8288 ICDBStructNode
*_Base
;
8289 ICDBStructNode
*_Current
;
8293 void init(ICDBStructNode
*parent
);
8295 // accessor to branch node
8296 ICDBStructNode
*getCDBNode()
8302 void setBase(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
8305 // Check that the value is not out of database precision
8306 STOP_IF(value
> (1<<9)-1, "setBase : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 9 bits");
8309 _setProp(dbGroup
, _Base
, value
, forceSending
);
8312 uint16
getBase(const CCDBSynchronised
&dbGroup
)
8315 _getProp(dbGroup
, _Base
, value
);
8320 ICDBStructNode
*getBaseCDBNode()
8325 void setCurrent(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
8328 // Check that the value is not out of database precision
8329 STOP_IF(value
> (1<<9)-1, "setCurrent : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 9 bits");
8332 _setProp(dbGroup
, _Current
, value
, forceSending
);
8335 uint16
getCurrent(const CCDBSynchronised
&dbGroup
)
8338 _getProp(dbGroup
, _Current
, value
);
8343 ICDBStructNode
*getCurrentCDBNode()
8360 ICDBStructNode
*_BranchNode
;
8362 ICDBStructNode
*_SKILL
;
8363 ICDBStructNode
*_BaseSKILL
;
8364 ICDBStructNode
*_PROGRESS_BAR
;
8368 void init(ICDBStructNode
*parent
, uint index
);
8370 // accessor to branch node
8371 ICDBStructNode
*getCDBNode()
8377 void setSKILL(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
8380 // Check that the value is not out of database precision
8381 STOP_IF(value
> (1<<12)-1, "setSKILL : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 12 bits");
8384 _setProp(dbGroup
, _SKILL
, value
, forceSending
);
8387 uint16
getSKILL(const CCDBSynchronised
&dbGroup
)
8390 _getProp(dbGroup
, _SKILL
, value
);
8395 ICDBStructNode
*getSKILLCDBNode()
8400 void setBaseSKILL(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
8403 // Check that the value is not out of database precision
8404 STOP_IF(value
> (1<<12)-1, "setBaseSKILL : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 12 bits");
8407 _setProp(dbGroup
, _BaseSKILL
, value
, forceSending
);
8410 uint16
getBaseSKILL(const CCDBSynchronised
&dbGroup
)
8413 _getProp(dbGroup
, _BaseSKILL
, value
);
8418 ICDBStructNode
*getBaseSKILLCDBNode()
8423 void setPROGRESS_BAR(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
8427 _setProp(dbGroup
, _PROGRESS_BAR
, value
, forceSending
);
8430 uint8
getPROGRESS_BAR(const CCDBSynchronised
&dbGroup
)
8433 _getProp(dbGroup
, _PROGRESS_BAR
, value
);
8438 ICDBStructNode
*getPROGRESS_BARCDBNode()
8440 return _PROGRESS_BAR
;
8447 ICDBStructNode
*_BranchNode
;
8453 void init(ICDBStructNode
*parent
);
8455 // accessor to branch node
8456 ICDBStructNode
*getCDBNode()
8461 TArray
&getArray(uint32 index
)
8463 nlassert(index
< 225);
8464 return _Array
[index
];
8475 ICDBStructNode
*_BranchNode
;
8477 ICDBStructNode
*_Level
;
8478 ICDBStructNode
*_Count
;
8482 void init(ICDBStructNode
*parent
);
8484 // accessor to branch node
8485 ICDBStructNode
*getCDBNode()
8491 void setLevel(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
8494 // Check that the value is not out of database precision
8495 STOP_IF(value
> (1<<12)-1, "setLevel : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 12 bits");
8498 _setProp(dbGroup
, _Level
, value
, forceSending
);
8501 uint16
getLevel(const CCDBSynchronised
&dbGroup
)
8504 _getProp(dbGroup
, _Level
, value
);
8509 ICDBStructNode
*getLevelCDBNode()
8514 void setCount(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
8517 // Check that the value is not out of database precision
8518 STOP_IF(value
> (1<<12)-1, "setCount : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 12 bits");
8521 _setProp(dbGroup
, _Count
, value
, forceSending
);
8524 uint16
getCount(const CCDBSynchronised
&dbGroup
)
8527 _getProp(dbGroup
, _Count
, value
);
8532 ICDBStructNode
*getCountCDBNode()
8539 class TRING_XP_CATALYSER
8545 ICDBStructNode
*_BranchNode
;
8547 ICDBStructNode
*_Level
;
8548 ICDBStructNode
*_Count
;
8552 void init(ICDBStructNode
*parent
);
8554 // accessor to branch node
8555 ICDBStructNode
*getCDBNode()
8561 void setLevel(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
8564 // Check that the value is not out of database precision
8565 STOP_IF(value
> (1<<12)-1, "setLevel : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 12 bits");
8568 _setProp(dbGroup
, _Level
, value
, forceSending
);
8571 uint16
getLevel(const CCDBSynchronised
&dbGroup
)
8574 _getProp(dbGroup
, _Level
, value
);
8579 ICDBStructNode
*getLevelCDBNode()
8584 void setCount(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
8587 // Check that the value is not out of database precision
8588 STOP_IF(value
> (1<<12)-1, "setCount : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 12 bits");
8591 _setProp(dbGroup
, _Count
, value
, forceSending
);
8594 uint16
getCount(const CCDBSynchronised
&dbGroup
)
8597 _getProp(dbGroup
, _Count
, value
);
8602 ICDBStructNode
*getCountCDBNode()
8609 class TPVP_FACTION_TAG
8615 ICDBStructNode
*_BranchNode
;
8617 ICDBStructNode
*_TAG_PVP
;
8618 ICDBStructNode
*_ACTIVATION_TIME
;
8619 ICDBStructNode
*_FLAG_PVP_TIME_LEFT
;
8620 ICDBStructNode
*_COUNTER
;
8624 void init(ICDBStructNode
*parent
);
8626 // accessor to branch node
8627 ICDBStructNode
*getCDBNode()
8633 void setTAG_PVP(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
8637 _setProp(dbGroup
, _TAG_PVP
, value
, forceSending
);
8640 bool getTAG_PVP(const CCDBSynchronised
&dbGroup
)
8643 _getProp(dbGroup
, _TAG_PVP
, value
);
8648 ICDBStructNode
*getTAG_PVPCDBNode()
8653 void setACTIVATION_TIME(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
8657 _setProp(dbGroup
, _ACTIVATION_TIME
, value
, forceSending
);
8660 uint32
getACTIVATION_TIME(const CCDBSynchronised
&dbGroup
)
8663 _getProp(dbGroup
, _ACTIVATION_TIME
, value
);
8668 ICDBStructNode
*getACTIVATION_TIMECDBNode()
8670 return _ACTIVATION_TIME
;
8673 void setFLAG_PVP_TIME_LEFT(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
8677 _setProp(dbGroup
, _FLAG_PVP_TIME_LEFT
, value
, forceSending
);
8680 uint32
getFLAG_PVP_TIME_LEFT(const CCDBSynchronised
&dbGroup
)
8683 _getProp(dbGroup
, _FLAG_PVP_TIME_LEFT
, value
);
8688 ICDBStructNode
*getFLAG_PVP_TIME_LEFTCDBNode()
8690 return _FLAG_PVP_TIME_LEFT
;
8693 void setCOUNTER(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
8697 _setProp(dbGroup
, _COUNTER
, value
, forceSending
);
8700 uint8
getCOUNTER(const CCDBSynchronised
&dbGroup
)
8703 _getProp(dbGroup
, _COUNTER
, value
);
8708 ICDBStructNode
*getCOUNTERCDBNode()
8721 ICDBStructNode
*_BranchNode
;
8723 ICDBStructNode
*_FLAG_PVP
;
8724 ICDBStructNode
*_RIGHT_TO_BANISH
;
8725 ICDBStructNode
*_ROUND_LVL_CUR
;
8726 ICDBStructNode
*_ROUND_END_DATE
;
8727 ICDBStructNode
*_FLAG_PVP_TIME_END
;
8731 void init(ICDBStructNode
*parent
);
8733 // accessor to branch node
8734 ICDBStructNode
*getCDBNode()
8740 void setFLAG_PVP(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
8744 _setProp(dbGroup
, _FLAG_PVP
, value
, forceSending
);
8747 bool getFLAG_PVP(const CCDBSynchronised
&dbGroup
)
8750 _getProp(dbGroup
, _FLAG_PVP
, value
);
8755 ICDBStructNode
*getFLAG_PVPCDBNode()
8760 void setRIGHT_TO_BANISH(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
8764 _setProp(dbGroup
, _RIGHT_TO_BANISH
, value
, forceSending
);
8767 bool getRIGHT_TO_BANISH(const CCDBSynchronised
&dbGroup
)
8770 _getProp(dbGroup
, _RIGHT_TO_BANISH
, value
);
8775 ICDBStructNode
*getRIGHT_TO_BANISHCDBNode()
8777 return _RIGHT_TO_BANISH
;
8780 void setROUND_LVL_CUR(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
8784 _setProp(dbGroup
, _ROUND_LVL_CUR
, value
, forceSending
);
8787 uint32
getROUND_LVL_CUR(const CCDBSynchronised
&dbGroup
)
8790 _getProp(dbGroup
, _ROUND_LVL_CUR
, value
);
8795 ICDBStructNode
*getROUND_LVL_CURCDBNode()
8797 return _ROUND_LVL_CUR
;
8800 void setROUND_END_DATE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
8804 _setProp(dbGroup
, _ROUND_END_DATE
, value
, forceSending
);
8807 uint32
getROUND_END_DATE(const CCDBSynchronised
&dbGroup
)
8810 _getProp(dbGroup
, _ROUND_END_DATE
, value
);
8815 ICDBStructNode
*getROUND_END_DATECDBNode()
8817 return _ROUND_END_DATE
;
8820 void setFLAG_PVP_TIME_END(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
8824 _setProp(dbGroup
, _FLAG_PVP_TIME_END
, value
, forceSending
);
8827 uint32
getFLAG_PVP_TIME_END(const CCDBSynchronised
&dbGroup
)
8830 _getProp(dbGroup
, _FLAG_PVP_TIME_END
, value
);
8835 ICDBStructNode
*getFLAG_PVP_TIME_ENDCDBNode()
8837 return _FLAG_PVP_TIME_END
;
8842 class TSUCCESS_MODIFIER
8856 ICDBStructNode
*_BranchNode
;
8858 ICDBStructNode
*_FORAGE
;
8862 void init(ICDBStructNode
*parent
, uint index
);
8864 // accessor to branch node
8865 ICDBStructNode
*getCDBNode()
8871 void setFORAGE(CCDBSynchronised
&dbGroup
, sint16 value
, bool forceSending
= false)
8875 _setProp(dbGroup
, _FORAGE
, value
, forceSending
);
8878 sint16
getFORAGE(const CCDBSynchronised
&dbGroup
)
8881 _getProp(dbGroup
, _FORAGE
, value
);
8886 ICDBStructNode
*getFORAGECDBNode()
8895 ICDBStructNode
*_BranchNode
;
8901 void init(ICDBStructNode
*parent
);
8903 // accessor to branch node
8904 ICDBStructNode
*getCDBNode()
8909 TArray
&getArray(uint32 index
)
8911 nlassert(index
< 7);
8912 return _Array
[index
];
8919 ICDBStructNode
*_BranchNode
;
8921 ICDBStructNode
*_DODGE
;
8922 ICDBStructNode
*_PARRY
;
8923 ICDBStructNode
*_CRAFT
;
8924 ICDBStructNode
*_MELEE
;
8925 ICDBStructNode
*_RANGE
;
8926 ICDBStructNode
*_MAGIC
;
8931 void init(ICDBStructNode
*parent
);
8933 // accessor to branch node
8934 ICDBStructNode
*getCDBNode()
8940 void setDODGE(CCDBSynchronised
&dbGroup
, sint16 value
, bool forceSending
= false)
8944 _setProp(dbGroup
, _DODGE
, value
, forceSending
);
8947 sint16
getDODGE(const CCDBSynchronised
&dbGroup
)
8950 _getProp(dbGroup
, _DODGE
, value
);
8955 ICDBStructNode
*getDODGECDBNode()
8960 void setPARRY(CCDBSynchronised
&dbGroup
, sint16 value
, bool forceSending
= false)
8964 _setProp(dbGroup
, _PARRY
, value
, forceSending
);
8967 sint16
getPARRY(const CCDBSynchronised
&dbGroup
)
8970 _getProp(dbGroup
, _PARRY
, value
);
8975 ICDBStructNode
*getPARRYCDBNode()
8980 void setCRAFT(CCDBSynchronised
&dbGroup
, sint16 value
, bool forceSending
= false)
8984 _setProp(dbGroup
, _CRAFT
, value
, forceSending
);
8987 sint16
getCRAFT(const CCDBSynchronised
&dbGroup
)
8990 _getProp(dbGroup
, _CRAFT
, value
);
8995 ICDBStructNode
*getCRAFTCDBNode()
9000 void setMELEE(CCDBSynchronised
&dbGroup
, sint16 value
, bool forceSending
= false)
9004 _setProp(dbGroup
, _MELEE
, value
, forceSending
);
9007 sint16
getMELEE(const CCDBSynchronised
&dbGroup
)
9010 _getProp(dbGroup
, _MELEE
, value
);
9015 ICDBStructNode
*getMELEECDBNode()
9020 void setRANGE(CCDBSynchronised
&dbGroup
, sint16 value
, bool forceSending
= false)
9024 _setProp(dbGroup
, _RANGE
, value
, forceSending
);
9027 sint16
getRANGE(const CCDBSynchronised
&dbGroup
)
9030 _getProp(dbGroup
, _RANGE
, value
);
9035 ICDBStructNode
*getRANGECDBNode()
9040 void setMAGIC(CCDBSynchronised
&dbGroup
, sint16 value
, bool forceSending
= false)
9044 _setProp(dbGroup
, _MAGIC
, value
, forceSending
);
9047 sint16
getMAGIC(const CCDBSynchronised
&dbGroup
)
9050 _getProp(dbGroup
, _MAGIC
, value
);
9055 ICDBStructNode
*getMAGICCDBNode()
9068 ICDBStructNode
*_BranchNode
;
9070 TCHARACTERISTICS _CHARACTERISTICS
[8];
9072 TMAGIC_RESISTANCE _MAGIC_RESISTANCE
;
9073 TMAGIC_PROTECTION _MAGIC_PROTECTION
;
9077 TXP_CATALYSER _XP_CATALYSER
;
9078 TRING_XP_CATALYSER _RING_XP_CATALYSER
;
9079 TPVP_FACTION_TAG _PVP_FACTION_TAG
;
9080 TPVP_OUTPOST _PVP_OUTPOST
;
9081 TSUCCESS_MODIFIER _SUCCESS_MODIFIER
;
9085 void init(ICDBStructNode
*parent
);
9087 // accessor to branch node
9088 ICDBStructNode
*getCDBNode()
9093 TCHARACTERISTICS
&getCHARACTERISTICS(uint32 index
)
9095 nlassert(index
< 8);
9096 return _CHARACTERISTICS
[index
];
9098 TSCORES
&getSCORES(uint32 index
)
9100 nlassert(index
< 4);
9101 return _SCORES
[index
];
9103 TMAGIC_RESISTANCE
&getMAGIC_RESISTANCE()
9105 return _MAGIC_RESISTANCE
;
9107 TMAGIC_PROTECTION
&getMAGIC_PROTECTION()
9109 return _MAGIC_PROTECTION
;
9119 TSKILLS
&getSKILLS()
9123 TXP_CATALYSER
&getXP_CATALYSER()
9125 return _XP_CATALYSER
;
9127 TRING_XP_CATALYSER
&getRING_XP_CATALYSER()
9129 return _RING_XP_CATALYSER
;
9131 TPVP_FACTION_TAG
&getPVP_FACTION_TAG()
9133 return _PVP_FACTION_TAG
;
9135 TPVP_OUTPOST
&getPVP_OUTPOST()
9137 return _PVP_OUTPOST
;
9139 TSUCCESS_MODIFIER
&getSUCCESS_MODIFIER()
9141 return _SUCCESS_MODIFIER
;
9156 ICDBStructNode
*_BranchNode
;
9158 ICDBStructNode
*_UID
;
9159 ICDBStructNode
*_TYPE
;
9160 ICDBStructNode
*_STATUS
;
9161 ICDBStructNode
*_HP
;
9162 ICDBStructNode
*_BULK_MAX
;
9163 ICDBStructNode
*_POS
;
9164 ICDBStructNode
*_HUNGER
;
9165 ICDBStructNode
*_DESPAWN
;
9166 ICDBStructNode
*_NAME
;
9170 void init(ICDBStructNode
*parent
, uint index
);
9172 // accessor to branch node
9173 ICDBStructNode
*getCDBNode()
9179 void setUID(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
9182 // Check that the value is not out of database precision
9183 STOP_IF(value
> (1<<20)-1, "setUID : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 20 bits");
9186 _setProp(dbGroup
, _UID
, value
, forceSending
);
9189 uint32
getUID(const CCDBSynchronised
&dbGroup
)
9192 _getProp(dbGroup
, _UID
, value
);
9197 ICDBStructNode
*getUIDCDBNode()
9202 void setTYPE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
9205 // Check that the value is not out of database precision
9206 STOP_IF(value
> (1<<4)-1, "setTYPE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 4 bits");
9209 _setProp(dbGroup
, _TYPE
, value
, forceSending
);
9212 uint8
getTYPE(const CCDBSynchronised
&dbGroup
)
9215 _getProp(dbGroup
, _TYPE
, value
);
9220 ICDBStructNode
*getTYPECDBNode()
9225 void setSTATUS(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
9228 // Check that the value is not out of database precision
9229 STOP_IF(value
> (1<<5)-1, "setSTATUS : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 5 bits");
9232 _setProp(dbGroup
, _STATUS
, value
, forceSending
);
9235 uint8
getSTATUS(const CCDBSynchronised
&dbGroup
)
9238 _getProp(dbGroup
, _STATUS
, value
);
9243 ICDBStructNode
*getSTATUSCDBNode()
9248 void setHP(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
9251 // Check that the value is not out of database precision
9252 STOP_IF(value
> (1<<7)-1, "setHP : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 7 bits");
9255 _setProp(dbGroup
, _HP
, value
, forceSending
);
9258 uint8
getHP(const CCDBSynchronised
&dbGroup
)
9261 _getProp(dbGroup
, _HP
, value
);
9266 ICDBStructNode
*getHPCDBNode()
9271 void setBULK_MAX(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
9275 _setProp(dbGroup
, _BULK_MAX
, value
, forceSending
);
9278 uint32
getBULK_MAX(const CCDBSynchronised
&dbGroup
)
9281 _getProp(dbGroup
, _BULK_MAX
, value
);
9286 ICDBStructNode
*getBULK_MAXCDBNode()
9291 void setPOS(CCDBSynchronised
&dbGroup
, uint64 value
, bool forceSending
= false)
9295 _setProp(dbGroup
, _POS
, value
, forceSending
);
9298 uint64
getPOS(const CCDBSynchronised
&dbGroup
)
9301 _getProp(dbGroup
, _POS
, value
);
9306 ICDBStructNode
*getPOSCDBNode()
9311 void setHUNGER(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
9314 // Check that the value is not out of database precision
9315 STOP_IF(value
> (1<<5)-1, "setHUNGER : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 5 bits");
9318 _setProp(dbGroup
, _HUNGER
, value
, forceSending
);
9321 uint8
getHUNGER(const CCDBSynchronised
&dbGroup
)
9324 _getProp(dbGroup
, _HUNGER
, value
);
9329 ICDBStructNode
*getHUNGERCDBNode()
9334 void setDESPAWN(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
9337 // Check that the value is not out of database precision
9338 STOP_IF(value
> (1<<7)-1, "setDESPAWN : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 7 bits");
9341 _setProp(dbGroup
, _DESPAWN
, value
, forceSending
);
9344 uint8
getDESPAWN(const CCDBSynchronised
&dbGroup
)
9347 _getProp(dbGroup
, _DESPAWN
, value
);
9352 ICDBStructNode
*getDESPAWNCDBNode()
9357 void setNAME(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
9361 _setProp(dbGroup
, _NAME
, value
, forceSending
);
9364 uint32
getNAME(const CCDBSynchronised
&dbGroup
)
9367 _getProp(dbGroup
, _NAME
, value
);
9372 ICDBStructNode
*getNAMECDBNode()
9381 ICDBStructNode
*_BranchNode
;
9387 void init(ICDBStructNode
*parent
);
9389 // accessor to branch node
9390 ICDBStructNode
*getCDBNode()
9395 TBEAST
&getBEAST(uint32 index
)
9397 nlassert(index
< 7);
9398 return _BEAST
[index
];
9409 ICDBStructNode
*_BranchNode
;
9411 ICDBStructNode
*_Ping
;
9415 void init(ICDBStructNode
*parent
);
9417 // accessor to branch node
9418 ICDBStructNode
*getCDBNode()
9424 void setPing(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
9428 _setProp(dbGroup
, _Ping
, value
, forceSending
);
9431 uint32
getPing(const CCDBSynchronised
&dbGroup
)
9434 _getProp(dbGroup
, _Ping
, value
);
9439 ICDBStructNode
*getPingCDBNode()
9456 ICDBStructNode
*_BranchNode
;
9458 ICDBStructNode
*_VALID
;
9459 ICDBStructNode
*_SMALL_SEED
;
9460 ICDBStructNode
*_MEDIUM_SEED
;
9461 ICDBStructNode
*_BIG_SEED
;
9462 ICDBStructNode
*_VERY_BIG_SEED
;
9463 ICDBStructNode
*_EXPIRY_DATE
;
9467 void init(ICDBStructNode
*parent
);
9469 // accessor to branch node
9470 ICDBStructNode
*getCDBNode()
9476 void setVALID(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
9480 _setProp(dbGroup
, _VALID
, value
, forceSending
);
9483 bool getVALID(const CCDBSynchronised
&dbGroup
)
9486 _getProp(dbGroup
, _VALID
, value
);
9491 ICDBStructNode
*getVALIDCDBNode()
9496 void setSMALL_SEED(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
9500 _setProp(dbGroup
, _SMALL_SEED
, value
, forceSending
);
9503 uint32
getSMALL_SEED(const CCDBSynchronised
&dbGroup
)
9506 _getProp(dbGroup
, _SMALL_SEED
, value
);
9511 ICDBStructNode
*getSMALL_SEEDCDBNode()
9516 void setMEDIUM_SEED(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
9520 _setProp(dbGroup
, _MEDIUM_SEED
, value
, forceSending
);
9523 uint32
getMEDIUM_SEED(const CCDBSynchronised
&dbGroup
)
9526 _getProp(dbGroup
, _MEDIUM_SEED
, value
);
9531 ICDBStructNode
*getMEDIUM_SEEDCDBNode()
9533 return _MEDIUM_SEED
;
9536 void setBIG_SEED(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
9540 _setProp(dbGroup
, _BIG_SEED
, value
, forceSending
);
9543 uint32
getBIG_SEED(const CCDBSynchronised
&dbGroup
)
9546 _getProp(dbGroup
, _BIG_SEED
, value
);
9551 ICDBStructNode
*getBIG_SEEDCDBNode()
9556 void setVERY_BIG_SEED(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
9560 _setProp(dbGroup
, _VERY_BIG_SEED
, value
, forceSending
);
9563 uint32
getVERY_BIG_SEED(const CCDBSynchronised
&dbGroup
)
9566 _getProp(dbGroup
, _VERY_BIG_SEED
, value
);
9571 ICDBStructNode
*getVERY_BIG_SEEDCDBNode()
9573 return _VERY_BIG_SEED
;
9576 void setEXPIRY_DATE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
9580 _setProp(dbGroup
, _EXPIRY_DATE
, value
, forceSending
);
9583 uint32
getEXPIRY_DATE(const CCDBSynchronised
&dbGroup
)
9586 _getProp(dbGroup
, _EXPIRY_DATE
, value
);
9591 ICDBStructNode
*getEXPIRY_DATECDBNode()
9593 return _EXPIRY_DATE
;
9598 class TRESULT_CRITICAL
9604 ICDBStructNode
*_BranchNode
;
9606 ICDBStructNode
*_VALID
;
9607 ICDBStructNode
*_SMALL_SEED
;
9608 ICDBStructNode
*_MEDIUM_SEED
;
9609 ICDBStructNode
*_BIG_SEED
;
9610 ICDBStructNode
*_VERY_BIG_SEED
;
9611 ICDBStructNode
*_EXPIRY_DATE
;
9615 void init(ICDBStructNode
*parent
);
9617 // accessor to branch node
9618 ICDBStructNode
*getCDBNode()
9624 void setVALID(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
9628 _setProp(dbGroup
, _VALID
, value
, forceSending
);
9631 bool getVALID(const CCDBSynchronised
&dbGroup
)
9634 _getProp(dbGroup
, _VALID
, value
);
9639 ICDBStructNode
*getVALIDCDBNode()
9644 void setSMALL_SEED(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
9648 _setProp(dbGroup
, _SMALL_SEED
, value
, forceSending
);
9651 uint32
getSMALL_SEED(const CCDBSynchronised
&dbGroup
)
9654 _getProp(dbGroup
, _SMALL_SEED
, value
);
9659 ICDBStructNode
*getSMALL_SEEDCDBNode()
9664 void setMEDIUM_SEED(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
9668 _setProp(dbGroup
, _MEDIUM_SEED
, value
, forceSending
);
9671 uint32
getMEDIUM_SEED(const CCDBSynchronised
&dbGroup
)
9674 _getProp(dbGroup
, _MEDIUM_SEED
, value
);
9679 ICDBStructNode
*getMEDIUM_SEEDCDBNode()
9681 return _MEDIUM_SEED
;
9684 void setBIG_SEED(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
9688 _setProp(dbGroup
, _BIG_SEED
, value
, forceSending
);
9691 uint32
getBIG_SEED(const CCDBSynchronised
&dbGroup
)
9694 _getProp(dbGroup
, _BIG_SEED
, value
);
9699 ICDBStructNode
*getBIG_SEEDCDBNode()
9704 void setVERY_BIG_SEED(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
9708 _setProp(dbGroup
, _VERY_BIG_SEED
, value
, forceSending
);
9711 uint32
getVERY_BIG_SEED(const CCDBSynchronised
&dbGroup
)
9714 _getProp(dbGroup
, _VERY_BIG_SEED
, value
);
9719 ICDBStructNode
*getVERY_BIG_SEEDCDBNode()
9721 return _VERY_BIG_SEED
;
9724 void setEXPIRY_DATE(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
9728 _setProp(dbGroup
, _EXPIRY_DATE
, value
, forceSending
);
9731 uint32
getEXPIRY_DATE(const CCDBSynchronised
&dbGroup
)
9734 _getProp(dbGroup
, _EXPIRY_DATE
, value
);
9739 ICDBStructNode
*getEXPIRY_DATECDBNode()
9741 return _EXPIRY_DATE
;
9748 ICDBStructNode
*_BranchNode
;
9750 ICDBStructNode
*_COST
;
9752 TRESULT_CRITICAL _RESULT_CRITICAL
;
9756 void init(ICDBStructNode
*parent
);
9758 // accessor to branch node
9759 ICDBStructNode
*getCDBNode()
9765 void setCOST(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
9769 _setProp(dbGroup
, _COST
, value
, forceSending
);
9772 uint32
getCOST(const CCDBSynchronised
&dbGroup
)
9775 _getProp(dbGroup
, _COST
, value
);
9780 ICDBStructNode
*getCOSTCDBNode()
9784 TRESULT
&getRESULT()
9788 TRESULT_CRITICAL
&getRESULT_CRITICAL()
9790 return _RESULT_CRITICAL
;
9801 ICDBStructNode
*_BranchNode
;
9803 ICDBStructNode
*_HOME_POINT
;
9804 ICDBStructNode
*_BIND_POINT
;
9805 ICDBStructNode
*_TARGET
;
9809 void init(ICDBStructNode
*parent
);
9811 // accessor to branch node
9812 ICDBStructNode
*getCDBNode()
9818 void setHOME_POINT(CCDBSynchronised
&dbGroup
, uint64 value
, bool forceSending
= false)
9822 _setProp(dbGroup
, _HOME_POINT
, value
, forceSending
);
9825 uint64
getHOME_POINT(const CCDBSynchronised
&dbGroup
)
9828 _getProp(dbGroup
, _HOME_POINT
, value
);
9833 ICDBStructNode
*getHOME_POINTCDBNode()
9838 void setBIND_POINT(CCDBSynchronised
&dbGroup
, uint64 value
, bool forceSending
= false)
9842 _setProp(dbGroup
, _BIND_POINT
, value
, forceSending
);
9845 uint64
getBIND_POINT(const CCDBSynchronised
&dbGroup
)
9848 _getProp(dbGroup
, _BIND_POINT
, value
);
9853 ICDBStructNode
*getBIND_POINTCDBNode()
9858 void setTARGET(CCDBSynchronised
&dbGroup
, uint64 value
, bool forceSending
= false)
9862 _setProp(dbGroup
, _TARGET
, value
, forceSending
);
9865 uint64
getTARGET(const CCDBSynchronised
&dbGroup
)
9868 _getProp(dbGroup
, _TARGET
, value
);
9873 ICDBStructNode
*getTARGETCDBNode()
9890 ICDBStructNode
*_BranchNode
;
9892 ICDBStructNode
*_VALUE
;
9893 ICDBStructNode
*_THRESHOLD
;
9894 ICDBStructNode
*_TREND
;
9898 void init(ICDBStructNode
*parent
, uint index
);
9900 // accessor to branch node
9901 ICDBStructNode
*getCDBNode()
9907 void setVALUE(CCDBSynchronised
&dbGroup
, sint8 value
, bool forceSending
= false)
9911 _setProp(dbGroup
, _VALUE
, value
, forceSending
);
9914 sint8
getVALUE(const CCDBSynchronised
&dbGroup
)
9917 _getProp(dbGroup
, _VALUE
, value
);
9922 ICDBStructNode
*getVALUECDBNode()
9927 void setTHRESHOLD(CCDBSynchronised
&dbGroup
, sint8 value
, bool forceSending
= false)
9931 _setProp(dbGroup
, _THRESHOLD
, value
, forceSending
);
9934 sint8
getTHRESHOLD(const CCDBSynchronised
&dbGroup
)
9937 _getProp(dbGroup
, _THRESHOLD
, value
);
9942 ICDBStructNode
*getTHRESHOLDCDBNode()
9947 void setTREND(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
9951 _setProp(dbGroup
, _TREND
, value
, forceSending
);
9954 uint8
getTREND(const CCDBSynchronised
&dbGroup
)
9957 _getProp(dbGroup
, _TREND
, value
);
9962 ICDBStructNode
*getTRENDCDBNode()
9975 ICDBStructNode
*_BranchNode
;
9977 ICDBStructNode
*_VALUE
;
9978 ICDBStructNode
*_THRESHOLD
;
9979 ICDBStructNode
*_TREND
;
9983 void init(ICDBStructNode
*parent
, uint index
);
9985 // accessor to branch node
9986 ICDBStructNode
*getCDBNode()
9992 void setVALUE(CCDBSynchronised
&dbGroup
, sint8 value
, bool forceSending
= false)
9996 _setProp(dbGroup
, _VALUE
, value
, forceSending
);
9999 sint8
getVALUE(const CCDBSynchronised
&dbGroup
)
10002 _getProp(dbGroup
, _VALUE
, value
);
10007 ICDBStructNode
*getVALUECDBNode()
10012 void setTHRESHOLD(CCDBSynchronised
&dbGroup
, sint8 value
, bool forceSending
= false)
10016 _setProp(dbGroup
, _THRESHOLD
, value
, forceSending
);
10019 sint8
getTHRESHOLD(const CCDBSynchronised
&dbGroup
)
10022 _getProp(dbGroup
, _THRESHOLD
, value
);
10027 ICDBStructNode
*getTHRESHOLDCDBNode()
10032 void setTREND(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
10036 _setProp(dbGroup
, _TREND
, value
, forceSending
);
10039 uint8
getTREND(const CCDBSynchronised
&dbGroup
)
10042 _getProp(dbGroup
, _TREND
, value
);
10047 ICDBStructNode
*getTRENDCDBNode()
10056 ICDBStructNode
*_BranchNode
;
10058 ICDBStructNode
*_CULT_ALLEGIANCE
;
10059 ICDBStructNode
*_CIV_ALLEGIANCE
;
10060 ICDBStructNode
*_THRESHOLD_TRADE
;
10061 ICDBStructNode
*_THRESHOLD_KOS
;
10062 TPLAYER _PLAYER
[7];
10067 void init(ICDBStructNode
*parent
);
10069 // accessor to branch node
10070 ICDBStructNode
*getCDBNode()
10072 return _BranchNode
;
10076 void setCULT_ALLEGIANCE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
10079 // Check that the value is not out of database precision
10080 STOP_IF(value
> (1<<3)-1, "setCULT_ALLEGIANCE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 3 bits");
10083 _setProp(dbGroup
, _CULT_ALLEGIANCE
, value
, forceSending
);
10086 uint8
getCULT_ALLEGIANCE(const CCDBSynchronised
&dbGroup
)
10089 _getProp(dbGroup
, _CULT_ALLEGIANCE
, value
);
10094 ICDBStructNode
*getCULT_ALLEGIANCECDBNode()
10096 return _CULT_ALLEGIANCE
;
10099 void setCIV_ALLEGIANCE(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
10102 // Check that the value is not out of database precision
10103 STOP_IF(value
> (1<<3)-1, "setCIV_ALLEGIANCE : Value out of bound : trying to store "<<value
<<" in a unsigned field limited to 3 bits");
10106 _setProp(dbGroup
, _CIV_ALLEGIANCE
, value
, forceSending
);
10109 uint8
getCIV_ALLEGIANCE(const CCDBSynchronised
&dbGroup
)
10112 _getProp(dbGroup
, _CIV_ALLEGIANCE
, value
);
10117 ICDBStructNode
*getCIV_ALLEGIANCECDBNode()
10119 return _CIV_ALLEGIANCE
;
10122 void setTHRESHOLD_TRADE(CCDBSynchronised
&dbGroup
, sint8 value
, bool forceSending
= false)
10126 _setProp(dbGroup
, _THRESHOLD_TRADE
, value
, forceSending
);
10129 sint8
getTHRESHOLD_TRADE(const CCDBSynchronised
&dbGroup
)
10132 _getProp(dbGroup
, _THRESHOLD_TRADE
, value
);
10137 ICDBStructNode
*getTHRESHOLD_TRADECDBNode()
10139 return _THRESHOLD_TRADE
;
10142 void setTHRESHOLD_KOS(CCDBSynchronised
&dbGroup
, sint8 value
, bool forceSending
= false)
10146 _setProp(dbGroup
, _THRESHOLD_KOS
, value
, forceSending
);
10149 sint8
getTHRESHOLD_KOS(const CCDBSynchronised
&dbGroup
)
10152 _getProp(dbGroup
, _THRESHOLD_KOS
, value
);
10157 ICDBStructNode
*getTHRESHOLD_KOSCDBNode()
10159 return _THRESHOLD_KOS
;
10161 TPLAYER
&getPLAYER(uint32 index
)
10163 nlassert(index
< 7);
10164 return _PLAYER
[index
];
10166 TTRIBE
&getTRIBE(uint32 index
)
10168 nlassert(index
< 53);
10169 return _TRIBE
[index
];
10180 ICDBStructNode
*_BranchNode
;
10182 ICDBStructNode
*_BAG_BULK_MAX
;
10186 void init(ICDBStructNode
*parent
);
10188 // accessor to branch node
10189 ICDBStructNode
*getCDBNode()
10191 return _BranchNode
;
10195 void setBAG_BULK_MAX(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
10199 _setProp(dbGroup
, _BAG_BULK_MAX
, value
, forceSending
);
10202 uint32
getBAG_BULK_MAX(const CCDBSynchronised
&dbGroup
)
10205 _getProp(dbGroup
, _BAG_BULK_MAX
, value
);
10210 ICDBStructNode
*getBAG_BULK_MAXCDBNode()
10212 return _BAG_BULK_MAX
;
10227 ICDBStructNode
*_BranchNode
;
10229 ICDBStructNode
*_NAME
;
10230 ICDBStructNode
*_ID
;
10231 ICDBStructNode
*_WRITE_RIGHT
;
10235 void init(ICDBStructNode
*parent
, uint index
);
10237 // accessor to branch node
10238 ICDBStructNode
*getCDBNode()
10240 return _BranchNode
;
10244 void setNAME(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
10248 _setProp(dbGroup
, _NAME
, value
, forceSending
);
10251 uint32
getNAME(const CCDBSynchronised
&dbGroup
)
10254 _getProp(dbGroup
, _NAME
, value
);
10259 ICDBStructNode
*getNAMECDBNode()
10264 void setID(CCDBSynchronised
&dbGroup
, uint64 value
, bool forceSending
= false)
10268 _setProp(dbGroup
, _ID
, value
, forceSending
);
10271 uint64
getID(const CCDBSynchronised
&dbGroup
)
10274 _getProp(dbGroup
, _ID
, value
);
10279 ICDBStructNode
*getIDCDBNode()
10284 void setWRITE_RIGHT(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
10288 _setProp(dbGroup
, _WRITE_RIGHT
, value
, forceSending
);
10291 bool getWRITE_RIGHT(const CCDBSynchronised
&dbGroup
)
10294 _getProp(dbGroup
, _WRITE_RIGHT
, value
);
10299 ICDBStructNode
*getWRITE_RIGHTCDBNode()
10301 return _WRITE_RIGHT
;
10308 ICDBStructNode
*_BranchNode
;
10310 TCHANNEL _CHANNEL
[8];
10314 void init(ICDBStructNode
*parent
);
10316 // accessor to branch node
10317 ICDBStructNode
*getCDBNode()
10319 return _BranchNode
;
10322 TCHANNEL
&getCHANNEL(uint32 index
)
10324 nlassert(index
< 8);
10325 return _CHANNEL
[index
];
10334 class TPVP_FACTION_POINTS
10340 ICDBStructNode
*_BranchNode
;
10342 ICDBStructNode
*_CIV
;
10343 ICDBStructNode
*_CIV_POINTS
;
10344 ICDBStructNode
*_CULT
;
10345 ICDBStructNode
*_CULT_POINTS
;
10349 void init(ICDBStructNode
*parent
);
10351 // accessor to branch node
10352 ICDBStructNode
*getCDBNode()
10354 return _BranchNode
;
10358 void setCIV(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
10362 _setProp(dbGroup
, _CIV
, value
, forceSending
);
10365 uint8
getCIV(const CCDBSynchronised
&dbGroup
)
10368 _getProp(dbGroup
, _CIV
, value
);
10373 ICDBStructNode
*getCIVCDBNode()
10378 void setCIV_POINTS(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
10382 _setProp(dbGroup
, _CIV_POINTS
, value
, forceSending
);
10385 uint32
getCIV_POINTS(const CCDBSynchronised
&dbGroup
)
10388 _getProp(dbGroup
, _CIV_POINTS
, value
);
10393 ICDBStructNode
*getCIV_POINTSCDBNode()
10395 return _CIV_POINTS
;
10398 void setCULT(CCDBSynchronised
&dbGroup
, uint8 value
, bool forceSending
= false)
10402 _setProp(dbGroup
, _CULT
, value
, forceSending
);
10405 uint8
getCULT(const CCDBSynchronised
&dbGroup
)
10408 _getProp(dbGroup
, _CULT
, value
);
10413 ICDBStructNode
*getCULTCDBNode()
10418 void setCULT_POINTS(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
10422 _setProp(dbGroup
, _CULT_POINTS
, value
, forceSending
);
10425 uint32
getCULT_POINTS(const CCDBSynchronised
&dbGroup
)
10428 _getProp(dbGroup
, _CULT_POINTS
, value
);
10433 ICDBStructNode
*getCULT_POINTSCDBNode()
10435 return _CULT_POINTS
;
10446 ICDBStructNode
*_BranchNode
;
10448 ICDBStructNode
*_ID
;
10449 ICDBStructNode
*_ISBONUS
;
10450 ICDBStructNode
*_PARAM
;
10454 void init(ICDBStructNode
*parent
, uint index
);
10456 // accessor to branch node
10457 ICDBStructNode
*getCDBNode()
10459 return _BranchNode
;
10463 void setID(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
10467 _setProp(dbGroup
, _ID
, value
, forceSending
);
10470 uint32
getID(const CCDBSynchronised
&dbGroup
)
10473 _getProp(dbGroup
, _ID
, value
);
10478 ICDBStructNode
*getIDCDBNode()
10483 void setISBONUS(CCDBSynchronised
&dbGroup
, bool value
, bool forceSending
= false)
10487 _setProp(dbGroup
, _ISBONUS
, value
, forceSending
);
10490 bool getISBONUS(const CCDBSynchronised
&dbGroup
)
10493 _getProp(dbGroup
, _ISBONUS
, value
);
10498 ICDBStructNode
*getISBONUSCDBNode()
10503 void setPARAM(CCDBSynchronised
&dbGroup
, uint32 value
, bool forceSending
= false)
10507 _setProp(dbGroup
, _PARAM
, value
, forceSending
);
10510 uint32
getPARAM(const CCDBSynchronised
&dbGroup
)
10513 _getProp(dbGroup
, _PARAM
, value
);
10518 ICDBStructNode
*getPARAMCDBNode()
10527 ICDBStructNode
*_BranchNode
;
10529 TPVP_FACTION_POINTS _PVP_FACTION_POINTS
;
10534 void init(ICDBStructNode
*parent
);
10536 // accessor to branch node
10537 ICDBStructNode
*getCDBNode()
10539 return _BranchNode
;
10542 TPVP_FACTION_POINTS
&getPVP_FACTION_POINTS()
10544 return _PVP_FACTION_POINTS
;
10546 TArray
&getArray(uint32 index
)
10548 nlassert(index
< 59);
10549 return _Array
[index
];
10560 ICDBStructNode
*_BranchNode
;
10562 ICDBStructNode
*_VALUE
;
10566 void init(ICDBStructNode
*parent
);
10568 // accessor to branch node
10569 ICDBStructNode
*getCDBNode()
10571 return _BranchNode
;
10575 void setVALUE(CCDBSynchronised
&dbGroup
, uint16 value
, bool forceSending
= false)
10579 _setProp(dbGroup
, _VALUE
, value
, forceSending
);
10582 uint16
getVALUE(const CCDBSynchronised
&dbGroup
)
10585 _getProp(dbGroup
, _VALUE
, value
);
10590 ICDBStructNode
*getVALUECDBNode()
10597 static TGameTime _GameTime
;
10599 static TINTERFACES _INTERFACES
;
10601 static TUSER _USER
;
10603 static TDEFENSE _DEFENSE
;
10605 static TFLAGS _FLAGS
;
10607 static TTARGET _TARGET
;
10609 static TGROUP _GROUP
;
10611 static TDM_GIFT _DM_GIFT
;
10613 static TEXCHANGE _EXCHANGE
;
10615 static TINVENTORY _INVENTORY
;
10617 static TMODIFIERS _MODIFIERS
;
10619 static TDISABLE_CONSUMABLE _DISABLE_CONSUMABLE
;
10621 static TBOTCHAT _BOTCHAT
;
10623 static TASCENSOR _ASCENSOR
;
10625 static TCHOOSE_MISSIONS _CHOOSE_MISSIONS
;
10627 static TTRADING _TRADING
;
10629 static TBRICK_FAMILY _BRICK_FAMILY
;
10631 static TFABER_PLANS _FABER_PLANS
;
10633 static TMISSIONS _MISSIONS
;
10635 static TEXECUTE_PHRASE _EXECUTE_PHRASE
;
10637 static TCHARACTER_INFO _CHARACTER_INFO
;
10639 static TPACK_ANIMAL _PACK_ANIMAL
;
10641 static TDEBUG_INFO _DEBUG_INFO
;
10643 static TMP_EVAL _MP_EVAL
;
10645 static TCOMPASS _COMPASS
;
10647 static TFAME _FAME
;
10649 static TSTATIC_DATA _STATIC_DATA
;
10651 static TDYN_CHAT _DYN_CHAT
;
10653 static TPVP_EFFECTS _PVP_EFFECTS
;
10655 static TWEATHER _WEATHER
;
10661 CBankAccessor_PLR()
10663 // make sure the static tree is initialised (some kind of lazy initialisation)
10666 // init the base class
10667 CCDBSynchronised::init(BankTag
);
10671 static void init();
10673 static TGameTime
&getGameTime()
10677 static TINTERFACES
&getINTERFACES()
10679 return _INTERFACES
;
10681 static TUSER
&getUSER()
10685 static TDEFENSE
&getDEFENSE()
10689 static TFLAGS
&getFLAGS()
10693 static TTARGET
&getTARGET()
10697 static TGROUP
&getGROUP()
10701 static TDM_GIFT
&getDM_GIFT()
10705 static TEXCHANGE
&getEXCHANGE()
10709 static TINVENTORY
&getINVENTORY()
10713 static TMODIFIERS
&getMODIFIERS()
10717 static TDISABLE_CONSUMABLE
&getDISABLE_CONSUMABLE()
10719 return _DISABLE_CONSUMABLE
;
10721 static TBOTCHAT
&getBOTCHAT()
10725 static TASCENSOR
&getASCENSOR()
10729 static TCHOOSE_MISSIONS
&getCHOOSE_MISSIONS()
10731 return _CHOOSE_MISSIONS
;
10733 static TTRADING
&getTRADING()
10737 static TBRICK_FAMILY
&getBRICK_FAMILY()
10739 return _BRICK_FAMILY
;
10741 static TFABER_PLANS
&getFABER_PLANS()
10743 return _FABER_PLANS
;
10745 static TMISSIONS
&getMISSIONS()
10749 static TEXECUTE_PHRASE
&getEXECUTE_PHRASE()
10751 return _EXECUTE_PHRASE
;
10753 static TCHARACTER_INFO
&getCHARACTER_INFO()
10755 return _CHARACTER_INFO
;
10757 static TPACK_ANIMAL
&getPACK_ANIMAL()
10759 return _PACK_ANIMAL
;
10761 static TDEBUG_INFO
&getDEBUG_INFO()
10763 return _DEBUG_INFO
;
10765 static TMP_EVAL
&getMP_EVAL()
10769 static TCOMPASS
&getCOMPASS()
10773 static TFAME
&getFAME()
10777 static TSTATIC_DATA
&getSTATIC_DATA()
10779 return _STATIC_DATA
;
10781 static TDYN_CHAT
&getDYN_CHAT()
10785 static TPVP_EFFECTS
&getPVP_EFFECTS()
10787 return _PVP_EFFECTS
;
10789 static TWEATHER
&getWEATHER()
10798 #endif // INCLUDED_DATABASE_database_PLR_H