Fix
[ryzomcore.git] / ryzom / server / src / entities_game_service / database_plr.h
blob89af126c854d1859b6bd460478e3314400445735
3 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
4 // Copyright (C) 2010 Winch Gate Property Limited
5 //
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
140 public:
141 static TCDBBank BankTag;
144 class TGameTime
146 public:
149 private:
150 ICDBStructNode *_BranchNode;
152 ICDBStructNode *_Hours;
155 public:
156 void init(ICDBStructNode *parent);
158 // accessor to branch node
159 ICDBStructNode *getCDBNode()
161 return _BranchNode;
165 void setHours(CCDBSynchronised &dbGroup, uint16 value, bool forceSending = false)
169 _setProp(dbGroup, _Hours, value, forceSending);
172 uint16 getHours(const CCDBSynchronised &dbGroup)
174 uint16 value;
175 _getProp(dbGroup, _Hours, value);
177 return value;
180 ICDBStructNode *getHoursCDBNode()
182 return _Hours;
187 class TINTERFACES
189 public:
192 private:
193 ICDBStructNode *_BranchNode;
195 ICDBStructNode *_FLAGS;
196 ICDBStructNode *_NB_BONUS_LANDMARKS;
199 public:
200 void init(ICDBStructNode *parent);
202 // accessor to branch node
203 ICDBStructNode *getCDBNode()
205 return _BranchNode;
209 void setFLAGS(CCDBSynchronised &dbGroup, uint64 value, bool forceSending = false)
213 _setProp(dbGroup, _FLAGS, value, forceSending);
216 uint64 getFLAGS(const CCDBSynchronised &dbGroup)
218 uint64 value;
219 _getProp(dbGroup, _FLAGS, value);
221 return value;
224 ICDBStructNode *getFLAGSCDBNode()
226 return _FLAGS;
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)
238 uint16 value;
239 _getProp(dbGroup, _NB_BONUS_LANDMARKS, value);
241 return value;
244 ICDBStructNode *getNB_BONUS_LANDMARKSCDBNode()
246 return _NB_BONUS_LANDMARKS;
251 class TUSER
253 public:
255 class TSKILL_POINTS_
257 public:
260 private:
261 ICDBStructNode *_BranchNode;
263 ICDBStructNode *_VALUE;
266 public:
267 void init(ICDBStructNode *parent, uint index);
269 // accessor to branch node
270 ICDBStructNode *getCDBNode()
272 return _BranchNode;
276 void setVALUE(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
280 _setProp(dbGroup, _VALUE, value, forceSending);
283 uint32 getVALUE(const CCDBSynchronised &dbGroup)
285 uint32 value;
286 _getProp(dbGroup, _VALUE, value);
288 return value;
291 ICDBStructNode *getVALUECDBNode()
293 return _VALUE;
298 class TFACTION_POINTS_
300 public:
303 private:
304 ICDBStructNode *_BranchNode;
306 ICDBStructNode *_VALUE;
309 public:
310 void init(ICDBStructNode *parent, uint index);
312 // accessor to branch node
313 ICDBStructNode *getCDBNode()
315 return _BranchNode;
319 void setVALUE(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
323 _setProp(dbGroup, _VALUE, value, forceSending);
326 uint32 getVALUE(const CCDBSynchronised &dbGroup)
328 uint32 value;
329 _getProp(dbGroup, _VALUE, value);
331 return value;
334 ICDBStructNode *getVALUECDBNode()
336 return _VALUE;
341 class TRRPS_LEVELS
343 public:
346 private:
347 ICDBStructNode *_BranchNode;
349 ICDBStructNode *_VALUE;
352 public:
353 void init(ICDBStructNode *parent, uint index);
355 // accessor to branch node
356 ICDBStructNode *getCDBNode()
358 return _BranchNode;
362 void setVALUE(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
366 _setProp(dbGroup, _VALUE, value, forceSending);
369 uint32 getVALUE(const CCDBSynchronised &dbGroup)
371 uint32 value;
372 _getProp(dbGroup, _VALUE, value);
374 return value;
377 ICDBStructNode *getVALUECDBNode()
379 return _VALUE;
384 class TNPC_CONTROL
386 public:
389 private:
390 ICDBStructNode *_BranchNode;
392 ICDBStructNode *_SHEET;
393 ICDBStructNode *_RUN;
394 ICDBStructNode *_WALK;
397 public:
398 void init(ICDBStructNode *parent);
400 // accessor to branch node
401 ICDBStructNode *getCDBNode()
403 return _BranchNode;
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);
419 return value;
422 ICDBStructNode *getSHEETCDBNode()
424 return _SHEET;
427 void setRUN(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
431 _setProp(dbGroup, _RUN, value, forceSending);
434 uint32 getRUN(const CCDBSynchronised &dbGroup)
436 uint32 value;
437 _getProp(dbGroup, _RUN, value);
439 return value;
442 ICDBStructNode *getRUNCDBNode()
444 return _RUN;
447 void setWALK(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
451 _setProp(dbGroup, _WALK, value, forceSending);
454 uint32 getWALK(const CCDBSynchronised &dbGroup)
456 uint32 value;
457 _getProp(dbGroup, _WALK, value);
459 return value;
462 ICDBStructNode *getWALKCDBNode()
464 return _WALK;
470 private:
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;
503 public:
504 void init(ICDBStructNode *parent);
506 // accessor to branch node
507 ICDBStructNode *getCDBNode()
509 return _BranchNode;
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)
522 uint8 value;
523 _getProp(dbGroup, _HAIR_TYPE, value);
525 return value;
528 ICDBStructNode *getHAIR_TYPECDBNode()
530 return _HAIR_TYPE;
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)
545 uint8 value;
546 _getProp(dbGroup, _HAIR_COLOR, value);
548 return value;
551 ICDBStructNode *getHAIR_COLORCDBNode()
553 return _HAIR_COLOR;
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)
565 uint8 value;
566 _getProp(dbGroup, _DEATH_XP_MALUS, value);
568 return 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)
585 bool value;
586 _getProp(dbGroup, _IN_DUEL, value);
588 return value;
591 ICDBStructNode *getIN_DUELCDBNode()
593 return _IN_DUEL;
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)
605 bool value;
606 _getProp(dbGroup, _IN_PVP_CHALLENGE, value);
608 return 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)
625 uint16 value;
626 _getProp(dbGroup, _MOUNT_WALK_SPEED, value);
628 return 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)
645 uint16 value;
646 _getProp(dbGroup, _MOUNT_RUN_SPEED, value);
648 return 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)
665 bool value;
666 _getProp(dbGroup, _TEAM_MEMBER, value);
668 return value;
671 ICDBStructNode *getTEAM_MEMBERCDBNode()
673 return _TEAM_MEMBER;
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)
685 bool value;
686 _getProp(dbGroup, _TEAM_LEADER, value);
688 return value;
691 ICDBStructNode *getTEAM_LEADERCDBNode()
693 return _TEAM_LEADER;
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)
705 bool value;
706 _getProp(dbGroup, _OUTPOST_ADMIN, value);
708 return 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)
725 bool value;
726 _getProp(dbGroup, _BERSERK, value);
728 return value;
731 ICDBStructNode *getBERSERKCDBNode()
733 return _BERSERK;
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)
745 uint32 value;
746 _getProp(dbGroup, _ACT_TSTART, value);
748 return value;
751 ICDBStructNode *getACT_TSTARTCDBNode()
753 return _ACT_TSTART;
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)
765 uint32 value;
766 _getProp(dbGroup, _ACT_TEND, value);
768 return value;
771 ICDBStructNode *getACT_TENDCDBNode()
773 return _ACT_TEND;
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)
788 uint8 value;
789 _getProp(dbGroup, _ACT_TYPE, value);
791 return value;
794 ICDBStructNode *getACT_TYPECDBNode()
796 return _ACT_TYPE;
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)
808 uint8 value;
809 _getProp(dbGroup, _ACT_NUMBER, value);
811 return value;
814 ICDBStructNode *getACT_NUMBERCDBNode()
816 return _ACT_NUMBER;
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)
828 uint8 value;
829 _getProp(dbGroup, _ACT_REFUSED_NUM, value);
831 return 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)
848 uint8 value;
849 _getProp(dbGroup, _ACT_CANCELED_NUM, value);
851 return 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)
868 uint8 value;
869 _getProp(dbGroup, _SPEED_FACTOR, value);
871 return 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)
888 uint32 value;
889 _getProp(dbGroup, _SKILL_POINTS, value);
891 return 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)
908 bool value;
909 _getProp(dbGroup, _IS_NEWBIE, value);
911 return value;
914 ICDBStructNode *getIS_NEWBIECDBNode()
916 return _IS_NEWBIE;
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)
928 bool value;
929 _getProp(dbGroup, _IS_TRIAL, value);
931 return value;
934 ICDBStructNode *getIS_TRIALCDBNode()
936 return _IS_TRIAL;
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)
948 uint32 value;
949 _getProp(dbGroup, _DEFAULT_WEIGHT_HANDS, value);
951 return 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)
968 bool value;
969 _getProp(dbGroup, _IS_INVISIBLE, value);
971 return 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)
991 uint8 value;
992 _getProp(dbGroup, _COUNTER, value);
994 return value;
997 ICDBStructNode *getCOUNTERCDBNode()
999 return _COUNTER;
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;
1023 class TDEFENSE
1025 public:
1027 class TSLOTS
1029 public:
1031 class TArray
1033 public:
1036 private:
1037 ICDBStructNode *_BranchNode;
1039 ICDBStructNode *_MODIFIER;
1042 public:
1043 void init(ICDBStructNode *parent, uint index);
1045 // accessor to branch node
1046 ICDBStructNode *getCDBNode()
1048 return _BranchNode;
1052 void setMODIFIER(CCDBSynchronised &dbGroup, sint8 value, bool forceSending = false)
1056 _setProp(dbGroup, _MODIFIER, value, forceSending);
1059 sint8 getMODIFIER(const CCDBSynchronised &dbGroup)
1061 sint8 value;
1062 _getProp(dbGroup, _MODIFIER, value);
1064 return value;
1067 ICDBStructNode *getMODIFIERCDBNode()
1069 return _MODIFIER;
1075 private:
1076 ICDBStructNode *_BranchNode;
1078 TArray _Array[6];
1081 public:
1082 void init(ICDBStructNode *parent);
1084 // accessor to branch node
1085 ICDBStructNode *getCDBNode()
1087 return _BranchNode;
1090 TArray &getArray(uint32 index)
1092 nlassert(index < 6);
1093 return _Array[index];
1099 private:
1100 ICDBStructNode *_BranchNode;
1102 ICDBStructNode *_DEFENSE_MODE;
1103 ICDBStructNode *_PROTECTED_SLOT;
1104 TSLOTS _SLOTS;
1107 public:
1108 void init(ICDBStructNode *parent);
1110 // accessor to branch node
1111 ICDBStructNode *getCDBNode()
1113 return _BranchNode;
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)
1126 bool value;
1127 _getProp(dbGroup, _DEFENSE_MODE, value);
1129 return 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)
1149 uint8 value;
1150 _getProp(dbGroup, _PROTECTED_SLOT, value);
1152 return value;
1155 ICDBStructNode *getPROTECTED_SLOTCDBNode()
1157 return _PROTECTED_SLOT;
1159 TSLOTS &getSLOTS()
1161 return _SLOTS;
1166 class TFLAGS
1168 public:
1170 class TBRICK_TICK_RANGE
1172 public:
1174 class TArray
1176 public:
1179 private:
1180 ICDBStructNode *_BranchNode;
1182 ICDBStructNode *_TICK_RANGE;
1185 public:
1186 void init(ICDBStructNode *parent, uint index);
1188 // accessor to branch node
1189 ICDBStructNode *getCDBNode()
1191 return _BranchNode;
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)
1204 uint64 value;
1205 _getProp(dbGroup, _TICK_RANGE, value);
1207 return value;
1210 ICDBStructNode *getTICK_RANGECDBNode()
1212 return _TICK_RANGE;
1218 private:
1219 ICDBStructNode *_BranchNode;
1221 TArray _Array[64];
1224 public:
1225 void init(ICDBStructNode *parent);
1227 // accessor to branch node
1228 ICDBStructNode *getCDBNode()
1230 return _BranchNode;
1233 TArray &getArray(uint32 index)
1235 nlassert(index < 64);
1236 return _Array[index];
1242 private:
1243 ICDBStructNode *_BranchNode;
1245 ICDBStructNode *_CRITICAL;
1246 ICDBStructNode *_PARRY;
1247 ICDBStructNode *_DODGE;
1248 TBRICK_TICK_RANGE _BRICK_TICK_RANGE;
1251 public:
1252 void init(ICDBStructNode *parent);
1254 // accessor to branch node
1255 ICDBStructNode *getCDBNode()
1257 return _BranchNode;
1261 void setCRITICAL(CCDBSynchronised &dbGroup, uint8 value, bool forceSending = false)
1265 _setProp(dbGroup, _CRITICAL, value, forceSending);
1268 uint8 getCRITICAL(const CCDBSynchronised &dbGroup)
1270 uint8 value;
1271 _getProp(dbGroup, _CRITICAL, value);
1273 return value;
1276 ICDBStructNode *getCRITICALCDBNode()
1278 return _CRITICAL;
1281 void setPARRY(CCDBSynchronised &dbGroup, uint8 value, bool forceSending = false)
1285 _setProp(dbGroup, _PARRY, value, forceSending);
1288 uint8 getPARRY(const CCDBSynchronised &dbGroup)
1290 uint8 value;
1291 _getProp(dbGroup, _PARRY, value);
1293 return value;
1296 ICDBStructNode *getPARRYCDBNode()
1298 return _PARRY;
1301 void setDODGE(CCDBSynchronised &dbGroup, uint8 value, bool forceSending = false)
1305 _setProp(dbGroup, _DODGE, value, forceSending);
1308 uint8 getDODGE(const CCDBSynchronised &dbGroup)
1310 uint8 value;
1311 _getProp(dbGroup, _DODGE, value);
1313 return value;
1316 ICDBStructNode *getDODGECDBNode()
1318 return _DODGE;
1320 TBRICK_TICK_RANGE &getBRICK_TICK_RANGE()
1322 return _BRICK_TICK_RANGE;
1327 class TTARGET
1329 public:
1331 class TBARS
1333 public:
1336 private:
1337 ICDBStructNode *_BranchNode;
1339 ICDBStructNode *_UID;
1340 ICDBStructNode *_HP;
1341 ICDBStructNode *_SAP;
1342 ICDBStructNode *_STA;
1343 ICDBStructNode *_FOCUS;
1344 ICDBStructNode *_PLAYER_LEVEL;
1347 public:
1348 void init(ICDBStructNode *parent);
1350 // accessor to branch node
1351 ICDBStructNode *getCDBNode()
1353 return _BranchNode;
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)
1369 uint32 value;
1370 _getProp(dbGroup, _UID, value);
1372 return value;
1375 ICDBStructNode *getUIDCDBNode()
1377 return _UID;
1380 void setHP(CCDBSynchronised &dbGroup, sint8 value, bool forceSending = false)
1384 _setProp(dbGroup, _HP, value, forceSending);
1387 sint8 getHP(const CCDBSynchronised &dbGroup)
1389 sint8 value;
1390 _getProp(dbGroup, _HP, value);
1392 return value;
1395 ICDBStructNode *getHPCDBNode()
1397 return _HP;
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)
1412 uint8 value;
1413 _getProp(dbGroup, _SAP, value);
1415 return value;
1418 ICDBStructNode *getSAPCDBNode()
1420 return _SAP;
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)
1435 uint8 value;
1436 _getProp(dbGroup, _STA, value);
1438 return value;
1441 ICDBStructNode *getSTACDBNode()
1443 return _STA;
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)
1458 uint8 value;
1459 _getProp(dbGroup, _FOCUS, value);
1461 return value;
1464 ICDBStructNode *getFOCUSCDBNode()
1466 return _FOCUS;
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)
1478 uint8 value;
1479 _getProp(dbGroup, _PLAYER_LEVEL, value);
1481 return value;
1484 ICDBStructNode *getPLAYER_LEVELCDBNode()
1486 return _PLAYER_LEVEL;
1491 class TCONTEXT_MENU
1493 public:
1495 class TMISSIONS_OPTIONS
1497 public:
1499 class TArray
1501 public:
1504 private:
1505 ICDBStructNode *_BranchNode;
1507 ICDBStructNode *_TITLE;
1508 ICDBStructNode *_PLAYER_GIFT_NEEDED;
1509 ICDBStructNode *_PRIORITY;
1512 public:
1513 void init(ICDBStructNode *parent, uint index);
1515 // accessor to branch node
1516 ICDBStructNode *getCDBNode()
1518 return _BranchNode;
1522 void setTITLE(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
1526 _setProp(dbGroup, _TITLE, value, forceSending);
1529 uint32 getTITLE(const CCDBSynchronised &dbGroup)
1531 uint32 value;
1532 _getProp(dbGroup, _TITLE, value);
1534 return value;
1537 ICDBStructNode *getTITLECDBNode()
1539 return _TITLE;
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)
1551 bool value;
1552 _getProp(dbGroup, _PLAYER_GIFT_NEEDED, value);
1554 return 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)
1574 uint8 value;
1575 _getProp(dbGroup, _PRIORITY, value);
1577 return value;
1580 ICDBStructNode *getPRIORITYCDBNode()
1582 return _PRIORITY;
1588 private:
1589 ICDBStructNode *_BranchNode;
1591 TArray _Array[8];
1594 public:
1595 void init(ICDBStructNode *parent);
1597 // accessor to branch node
1598 ICDBStructNode *getCDBNode()
1600 return _BranchNode;
1603 TArray &getArray(uint32 index)
1605 nlassert(index < 8);
1606 return _Array[index];
1611 class TMISSION_RING
1613 public:
1615 class TArray
1617 public:
1620 private:
1621 ICDBStructNode *_BranchNode;
1623 ICDBStructNode *_TITLE;
1624 ICDBStructNode *_ID;
1627 public:
1628 void init(ICDBStructNode *parent, uint index);
1630 // accessor to branch node
1631 ICDBStructNode *getCDBNode()
1633 return _BranchNode;
1637 void setTITLE(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
1641 _setProp(dbGroup, _TITLE, value, forceSending);
1644 uint32 getTITLE(const CCDBSynchronised &dbGroup)
1646 uint32 value;
1647 _getProp(dbGroup, _TITLE, value);
1649 return value;
1652 ICDBStructNode *getTITLECDBNode()
1654 return _TITLE;
1657 void setID(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
1661 _setProp(dbGroup, _ID, value, forceSending);
1664 uint32 getID(const CCDBSynchronised &dbGroup)
1666 uint32 value;
1667 _getProp(dbGroup, _ID, value);
1669 return value;
1672 ICDBStructNode *getIDCDBNode()
1674 return _ID;
1680 private:
1681 ICDBStructNode *_BranchNode;
1683 TArray _Array[4];
1686 public:
1687 void init(ICDBStructNode *parent);
1689 // accessor to branch node
1690 ICDBStructNode *getCDBNode()
1692 return _BranchNode;
1695 TArray &getArray(uint32 index)
1697 nlassert(index < 4);
1698 return _Array[index];
1704 private:
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;
1716 public:
1717 void init(ICDBStructNode *parent);
1719 // accessor to branch node
1720 ICDBStructNode *getCDBNode()
1722 return _BranchNode;
1726 void setPROGRAMMES(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
1730 _setProp(dbGroup, _PROGRAMMES, value, forceSending);
1733 uint32 getPROGRAMMES(const CCDBSynchronised &dbGroup)
1735 uint32 value;
1736 _getProp(dbGroup, _PROGRAMMES, value);
1738 return value;
1741 ICDBStructNode *getPROGRAMMESCDBNode()
1743 return _PROGRAMMES;
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)
1755 uint32 value;
1756 _getProp(dbGroup, _WEB_PAGE_TITLE, value);
1758 return 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)
1775 uint32 value;
1776 _getProp(dbGroup, _WEB_PAGE_URL, value);
1778 return 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);
1798 return value;
1801 ICDBStructNode *getOUTPOSTCDBNode()
1803 return _OUTPOST;
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)
1818 uint8 value;
1819 _getProp(dbGroup, _COUNTER, value);
1821 return value;
1824 ICDBStructNode *getCOUNTERCDBNode()
1826 return _COUNTER;
1828 TMISSIONS_OPTIONS &getMISSIONS_OPTIONS()
1830 return _MISSIONS_OPTIONS;
1832 TMISSION_RING &getMISSION_RING()
1834 return _MISSION_RING;
1840 private:
1841 ICDBStructNode *_BranchNode;
1843 ICDBStructNode *_CONTEXT_VAL;
1844 ICDBStructNode *_AGGRESSIVE;
1845 ICDBStructNode *_FORCE_RATIO;
1846 TBARS _BARS;
1847 TCONTEXT_MENU _CONTEXT_MENU;
1850 public:
1851 void init(ICDBStructNode *parent);
1853 // accessor to branch node
1854 ICDBStructNode *getCDBNode()
1856 return _BranchNode;
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)
1869 uint16 value;
1870 _getProp(dbGroup, _CONTEXT_VAL, value);
1872 return 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)
1892 uint8 value;
1893 _getProp(dbGroup, _AGGRESSIVE, value);
1895 return value;
1898 ICDBStructNode *getAGGRESSIVECDBNode()
1900 return _AGGRESSIVE;
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)
1915 uint8 value;
1916 _getProp(dbGroup, _FORCE_RATIO, value);
1918 return value;
1921 ICDBStructNode *getFORCE_RATIOCDBNode()
1923 return _FORCE_RATIO;
1925 TBARS &getBARS()
1927 return _BARS;
1929 TCONTEXT_MENU &getCONTEXT_MENU()
1931 return _CONTEXT_MENU;
1936 class TGROUP
1938 public:
1940 class TArray
1942 public:
1945 private:
1946 ICDBStructNode *_BranchNode;
1948 ICDBStructNode *_PRESENT;
1949 ICDBStructNode *_UID;
1950 ICDBStructNode *_NAME;
1951 ICDBStructNode *_HP;
1952 ICDBStructNode *_SAP;
1953 ICDBStructNode *_STA;
1954 ICDBStructNode *_POS;
1957 public:
1958 void init(ICDBStructNode *parent, uint index);
1960 // accessor to branch node
1961 ICDBStructNode *getCDBNode()
1963 return _BranchNode;
1967 void setPRESENT(CCDBSynchronised &dbGroup, bool value, bool forceSending = false)
1971 _setProp(dbGroup, _PRESENT, value, forceSending);
1974 bool getPRESENT(const CCDBSynchronised &dbGroup)
1976 bool value;
1977 _getProp(dbGroup, _PRESENT, value);
1979 return value;
1982 ICDBStructNode *getPRESENTCDBNode()
1984 return _PRESENT;
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)
1999 uint32 value;
2000 _getProp(dbGroup, _UID, value);
2002 return value;
2005 ICDBStructNode *getUIDCDBNode()
2007 return _UID;
2010 void setNAME(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
2014 _setProp(dbGroup, _NAME, value, forceSending);
2017 uint32 getNAME(const CCDBSynchronised &dbGroup)
2019 uint32 value;
2020 _getProp(dbGroup, _NAME, value);
2022 return value;
2025 ICDBStructNode *getNAMECDBNode()
2027 return _NAME;
2030 void setHP(CCDBSynchronised &dbGroup, sint8 value, bool forceSending = false)
2034 _setProp(dbGroup, _HP, value, forceSending);
2037 sint8 getHP(const CCDBSynchronised &dbGroup)
2039 sint8 value;
2040 _getProp(dbGroup, _HP, value);
2042 return value;
2045 ICDBStructNode *getHPCDBNode()
2047 return _HP;
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)
2062 uint8 value;
2063 _getProp(dbGroup, _SAP, value);
2065 return value;
2068 ICDBStructNode *getSAPCDBNode()
2070 return _SAP;
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)
2085 uint8 value;
2086 _getProp(dbGroup, _STA, value);
2088 return value;
2091 ICDBStructNode *getSTACDBNode()
2093 return _STA;
2096 void setPOS(CCDBSynchronised &dbGroup, uint64 value, bool forceSending = false)
2100 _setProp(dbGroup, _POS, value, forceSending);
2103 uint64 getPOS(const CCDBSynchronised &dbGroup)
2105 uint64 value;
2106 _getProp(dbGroup, _POS, value);
2108 return value;
2111 ICDBStructNode *getPOSCDBNode()
2113 return _POS;
2118 class TMISSIONS
2120 public:
2122 class TArray
2124 public:
2126 class TGOALS
2128 public:
2130 class TArray
2132 public:
2135 private:
2136 ICDBStructNode *_BranchNode;
2138 ICDBStructNode *_TEXT;
2139 ICDBStructNode *_NPC_ALIAS;
2142 public:
2143 void init(ICDBStructNode *parent, uint index);
2145 // accessor to branch node
2146 ICDBStructNode *getCDBNode()
2148 return _BranchNode;
2152 void setTEXT(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
2156 _setProp(dbGroup, _TEXT, value, forceSending);
2159 uint32 getTEXT(const CCDBSynchronised &dbGroup)
2161 uint32 value;
2162 _getProp(dbGroup, _TEXT, value);
2164 return value;
2167 ICDBStructNode *getTEXTCDBNode()
2169 return _TEXT;
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)
2181 uint32 value;
2182 _getProp(dbGroup, _NPC_ALIAS, value);
2184 return value;
2187 ICDBStructNode *getNPC_ALIASCDBNode()
2189 return _NPC_ALIAS;
2195 private:
2196 ICDBStructNode *_BranchNode;
2198 TArray _Array[20];
2201 public:
2202 void init(ICDBStructNode *parent);
2204 // accessor to branch node
2205 ICDBStructNode *getCDBNode()
2207 return _BranchNode;
2210 TArray &getArray(uint32 index)
2212 nlassert(index < 20);
2213 return _Array[index];
2218 class TTARGET
2220 public:
2223 private:
2224 ICDBStructNode *_BranchNode;
2226 ICDBStructNode *_TITLE;
2227 ICDBStructNode *_X;
2228 ICDBStructNode *_Y;
2231 public:
2232 void init(ICDBStructNode *parent, uint index);
2234 // accessor to branch node
2235 ICDBStructNode *getCDBNode()
2237 return _BranchNode;
2241 void setTITLE(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
2245 _setProp(dbGroup, _TITLE, value, forceSending);
2248 uint32 getTITLE(const CCDBSynchronised &dbGroup)
2250 uint32 value;
2251 _getProp(dbGroup, _TITLE, value);
2253 return value;
2256 ICDBStructNode *getTITLECDBNode()
2258 return _TITLE;
2261 void setX(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
2265 _setProp(dbGroup, _X, value, forceSending);
2268 uint32 getX(const CCDBSynchronised &dbGroup)
2270 uint32 value;
2271 _getProp(dbGroup, _X, value);
2273 return value;
2276 ICDBStructNode *getXCDBNode()
2278 return _X;
2281 void setY(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
2285 _setProp(dbGroup, _Y, value, forceSending);
2288 uint32 getY(const CCDBSynchronised &dbGroup)
2290 uint32 value;
2291 _getProp(dbGroup, _Y, value);
2293 return value;
2296 ICDBStructNode *getYCDBNode()
2298 return _Y;
2303 class THISTO
2305 public:
2307 class TArray
2309 public:
2312 private:
2313 ICDBStructNode *_BranchNode;
2315 ICDBStructNode *_TEXT;
2318 public:
2319 void init(ICDBStructNode *parent, uint index);
2321 // accessor to branch node
2322 ICDBStructNode *getCDBNode()
2324 return _BranchNode;
2328 void setTEXT(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
2332 _setProp(dbGroup, _TEXT, value, forceSending);
2335 uint32 getTEXT(const CCDBSynchronised &dbGroup)
2337 uint32 value;
2338 _getProp(dbGroup, _TEXT, value);
2340 return value;
2343 ICDBStructNode *getTEXTCDBNode()
2345 return _TEXT;
2351 private:
2352 ICDBStructNode *_BranchNode;
2354 TArray _Array[30];
2357 public:
2358 void init(ICDBStructNode *parent);
2360 // accessor to branch node
2361 ICDBStructNode *getCDBNode()
2363 return _BranchNode;
2366 TArray &getArray(uint32 index)
2368 nlassert(index < 30);
2369 return _Array[index];
2375 private:
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;
2388 TGOALS _GOALS;
2389 TTARGET _TARGET[8];
2390 THISTO _HISTO;
2393 public:
2394 void init(ICDBStructNode *parent, uint index);
2396 // accessor to branch node
2397 ICDBStructNode *getCDBNode()
2399 return _BranchNode;
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)
2415 uint8 value;
2416 _getProp(dbGroup, _TYPE, value);
2418 return value;
2421 ICDBStructNode *getTYPECDBNode()
2423 return _TYPE;
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);
2438 return value;
2441 ICDBStructNode *getICONCDBNode()
2443 return _ICON;
2446 void setTITLE(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
2450 _setProp(dbGroup, _TITLE, value, forceSending);
2453 uint32 getTITLE(const CCDBSynchronised &dbGroup)
2455 uint32 value;
2456 _getProp(dbGroup, _TITLE, value);
2458 return value;
2461 ICDBStructNode *getTITLECDBNode()
2463 return _TITLE;
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)
2475 uint32 value;
2476 _getProp(dbGroup, _DETAIL_TEXT, value);
2478 return 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)
2495 uint32 value;
2496 _getProp(dbGroup, _BEGIN_DATE, value);
2498 return value;
2501 ICDBStructNode *getBEGIN_DATECDBNode()
2503 return _BEGIN_DATE;
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)
2515 uint32 value;
2516 _getProp(dbGroup, _END_DATE, value);
2518 return value;
2521 ICDBStructNode *getEND_DATECDBNode()
2523 return _END_DATE;
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)
2535 bool value;
2536 _getProp(dbGroup, _OR_STEPS, value);
2538 return value;
2541 ICDBStructNode *getOR_STEPSCDBNode()
2543 return _OR_STEPS;
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)
2558 uint8 value;
2559 _getProp(dbGroup, _FINISHED, value);
2561 return value;
2564 ICDBStructNode *getFINISHEDCDBNode()
2566 return _FINISHED;
2569 void setABANDONNABLE(CCDBSynchronised &dbGroup, bool value, bool forceSending = false)
2573 _setProp(dbGroup, _ABANDONNABLE, value, forceSending);
2576 bool getABANDONNABLE(const CCDBSynchronised &dbGroup)
2578 bool value;
2579 _getProp(dbGroup, _ABANDONNABLE, value);
2581 return 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)
2598 bool value;
2599 _getProp(dbGroup, _SLEEP, value);
2601 return value;
2604 ICDBStructNode *getSLEEPCDBNode()
2606 return _SLEEP;
2608 TGOALS &getGOALS()
2610 return _GOALS;
2612 TTARGET &getTARGET(uint32 index)
2614 nlassert(index < 8);
2615 return _TARGET[index];
2617 THISTO &getHISTO()
2619 return _HISTO;
2625 private:
2626 ICDBStructNode *_BranchNode;
2628 TArray _Array[15];
2631 public:
2632 void init(ICDBStructNode *parent);
2634 // accessor to branch node
2635 ICDBStructNode *getCDBNode()
2637 return _BranchNode;
2640 TArray &getArray(uint32 index)
2642 nlassert(index < 15);
2643 return _Array[index];
2649 private:
2650 ICDBStructNode *_BranchNode;
2652 ICDBStructNode *_LEADER_INDEX;
2653 ICDBStructNode *_SUCCESSOR_INDEX;
2654 TArray _Array[8];
2655 TMISSIONS _MISSIONS;
2658 public:
2659 void init(ICDBStructNode *parent);
2661 // accessor to branch node
2662 ICDBStructNode *getCDBNode()
2664 return _BranchNode;
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)
2680 uint8 value;
2681 _getProp(dbGroup, _LEADER_INDEX, value);
2683 return 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)
2703 uint8 value;
2704 _getProp(dbGroup, _SUCCESSOR_INDEX, value);
2706 return 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()
2720 return _MISSIONS;
2725 class TDM_GIFT
2727 public:
2730 private:
2731 ICDBStructNode *_BranchNode;
2733 ICDBStructNode *_TEXT;
2736 public:
2737 void init(ICDBStructNode *parent);
2739 // accessor to branch node
2740 ICDBStructNode *getCDBNode()
2742 return _BranchNode;
2746 void setTEXT(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
2750 _setProp(dbGroup, _TEXT, value, forceSending);
2753 uint32 getTEXT(const CCDBSynchronised &dbGroup)
2755 uint32 value;
2756 _getProp(dbGroup, _TEXT, value);
2758 return value;
2761 ICDBStructNode *getTEXTCDBNode()
2763 return _TEXT;
2768 class TEXCHANGE
2770 public:
2772 class TGIVE
2774 public:
2776 class TArray
2778 public:
2781 private:
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;
2799 public:
2800 void init(ICDBStructNode *parent, uint index);
2802 // accessor to branch node
2803 ICDBStructNode *getCDBNode()
2805 return _BranchNode;
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);
2821 return value;
2824 ICDBStructNode *getSHEETCDBNode()
2826 return _SHEET;
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)
2841 uint16 value;
2842 _getProp(dbGroup, _QUALITY, value);
2844 return value;
2847 ICDBStructNode *getQUALITYCDBNode()
2849 return _QUALITY;
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)
2864 uint16 value;
2865 _getProp(dbGroup, _QUANTITY, value);
2867 return value;
2870 ICDBStructNode *getQUANTITYCDBNode()
2872 return _QUANTITY;
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)
2884 uint32 value;
2885 _getProp(dbGroup, _CREATE_TIME, value);
2887 return 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)
2904 uint32 value;
2905 _getProp(dbGroup, _SERIAL, value);
2907 return value;
2910 ICDBStructNode *getSERIALCDBNode()
2912 return _SERIAL;
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)
2927 uint8 value;
2928 _getProp(dbGroup, _USER_COLOR, value);
2930 return value;
2933 ICDBStructNode *getUSER_COLORCDBNode()
2935 return _USER_COLOR;
2938 void setWEIGHT(CCDBSynchronised &dbGroup, uint16 value, bool forceSending = false)
2942 _setProp(dbGroup, _WEIGHT, value, forceSending);
2945 uint16 getWEIGHT(const CCDBSynchronised &dbGroup)
2947 uint16 value;
2948 _getProp(dbGroup, _WEIGHT, value);
2950 return value;
2953 ICDBStructNode *getWEIGHTCDBNode()
2955 return _WEIGHT;
2958 void setNAMEID(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
2962 _setProp(dbGroup, _NAMEID, value, forceSending);
2965 uint32 getNAMEID(const CCDBSynchronised &dbGroup)
2967 uint32 value;
2968 _getProp(dbGroup, _NAMEID, value);
2970 return value;
2973 ICDBStructNode *getNAMEIDCDBNode()
2975 return _NAMEID;
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)
2987 uint8 value;
2988 _getProp(dbGroup, _INFO_VERSION, value);
2990 return 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)
3010 uint16 value;
3011 _getProp(dbGroup, _ENCHANT, value);
3013 return value;
3016 ICDBStructNode *getENCHANTCDBNode()
3018 return _ENCHANT;
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)
3033 uint8 value;
3034 _getProp(dbGroup, _RM_CLASS_TYPE, value);
3036 return 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)
3056 uint8 value;
3057 _getProp(dbGroup, _RM_FABER_STAT_TYPE, value);
3059 return 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)
3076 bool value;
3077 _getProp(dbGroup, _PREREQUISIT_VALID, value);
3079 return value;
3082 ICDBStructNode *getPREREQUISIT_VALIDCDBNode()
3084 return _PREREQUISIT_VALID;
3090 private:
3091 ICDBStructNode *_BranchNode;
3093 TArray _Array[10];
3096 public:
3097 void init(ICDBStructNode *parent);
3099 // accessor to branch node
3100 ICDBStructNode *getCDBNode()
3102 return _BranchNode;
3105 TArray &getArray(uint32 index)
3107 nlassert(index < 10);
3108 return _Array[index];
3113 class TRECEIVE
3115 public:
3117 class TArray
3119 public:
3122 private:
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;
3140 public:
3141 void init(ICDBStructNode *parent, uint index);
3143 // accessor to branch node
3144 ICDBStructNode *getCDBNode()
3146 return _BranchNode;
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);
3162 return value;
3165 ICDBStructNode *getSHEETCDBNode()
3167 return _SHEET;
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)
3182 uint16 value;
3183 _getProp(dbGroup, _QUALITY, value);
3185 return value;
3188 ICDBStructNode *getQUALITYCDBNode()
3190 return _QUALITY;
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)
3205 uint16 value;
3206 _getProp(dbGroup, _QUANTITY, value);
3208 return value;
3211 ICDBStructNode *getQUANTITYCDBNode()
3213 return _QUANTITY;
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)
3225 uint32 value;
3226 _getProp(dbGroup, _CREATE_TIME, value);
3228 return 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)
3245 uint32 value;
3246 _getProp(dbGroup, _SERIAL, value);
3248 return value;
3251 ICDBStructNode *getSERIALCDBNode()
3253 return _SERIAL;
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)
3268 uint8 value;
3269 _getProp(dbGroup, _USER_COLOR, value);
3271 return value;
3274 ICDBStructNode *getUSER_COLORCDBNode()
3276 return _USER_COLOR;
3279 void setWEIGHT(CCDBSynchronised &dbGroup, uint16 value, bool forceSending = false)
3283 _setProp(dbGroup, _WEIGHT, value, forceSending);
3286 uint16 getWEIGHT(const CCDBSynchronised &dbGroup)
3288 uint16 value;
3289 _getProp(dbGroup, _WEIGHT, value);
3291 return value;
3294 ICDBStructNode *getWEIGHTCDBNode()
3296 return _WEIGHT;
3299 void setNAMEID(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
3303 _setProp(dbGroup, _NAMEID, value, forceSending);
3306 uint32 getNAMEID(const CCDBSynchronised &dbGroup)
3308 uint32 value;
3309 _getProp(dbGroup, _NAMEID, value);
3311 return value;
3314 ICDBStructNode *getNAMEIDCDBNode()
3316 return _NAMEID;
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)
3328 uint8 value;
3329 _getProp(dbGroup, _INFO_VERSION, value);
3331 return 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)
3351 uint16 value;
3352 _getProp(dbGroup, _ENCHANT, value);
3354 return value;
3357 ICDBStructNode *getENCHANTCDBNode()
3359 return _ENCHANT;
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)
3374 uint8 value;
3375 _getProp(dbGroup, _RM_CLASS_TYPE, value);
3377 return 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)
3397 uint8 value;
3398 _getProp(dbGroup, _RM_FABER_STAT_TYPE, value);
3400 return 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)
3417 bool value;
3418 _getProp(dbGroup, _PREREQUISIT_VALID, value);
3420 return value;
3423 ICDBStructNode *getPREREQUISIT_VALIDCDBNode()
3425 return _PREREQUISIT_VALID;
3431 private:
3432 ICDBStructNode *_BranchNode;
3434 TArray _Array[10];
3437 public:
3438 void init(ICDBStructNode *parent);
3440 // accessor to branch node
3441 ICDBStructNode *getCDBNode()
3443 return _BranchNode;
3446 TArray &getArray(uint32 index)
3448 nlassert(index < 10);
3449 return _Array[index];
3455 private:
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;
3465 TGIVE _GIVE;
3466 TRECEIVE _RECEIVE;
3469 public:
3470 void init(ICDBStructNode *parent);
3472 // accessor to branch node
3473 ICDBStructNode *getCDBNode()
3475 return _BranchNode;
3479 void setTEXT(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
3483 _setProp(dbGroup, _TEXT, value, forceSending);
3486 uint32 getTEXT(const CCDBSynchronised &dbGroup)
3488 uint32 value;
3489 _getProp(dbGroup, _TEXT, value);
3491 return value;
3494 ICDBStructNode *getTEXTCDBNode()
3496 return _TEXT;
3499 void setID(CCDBSynchronised &dbGroup, uint8 value, bool forceSending = false)
3503 _setProp(dbGroup, _ID, value, forceSending);
3506 uint8 getID(const CCDBSynchronised &dbGroup)
3508 uint8 value;
3509 _getProp(dbGroup, _ID, value);
3511 return value;
3514 ICDBStructNode *getIDCDBNode()
3516 return _ID;
3519 void setBEGUN(CCDBSynchronised &dbGroup, bool value, bool forceSending = false)
3523 _setProp(dbGroup, _BEGUN, value, forceSending);
3526 bool getBEGUN(const CCDBSynchronised &dbGroup)
3528 bool value;
3529 _getProp(dbGroup, _BEGUN, value);
3531 return value;
3534 ICDBStructNode *getBEGUNCDBNode()
3536 return _BEGUN;
3539 void setACCEPTED(CCDBSynchronised &dbGroup, bool value, bool forceSending = false)
3543 _setProp(dbGroup, _ACCEPTED, value, forceSending);
3546 bool getACCEPTED(const CCDBSynchronised &dbGroup)
3548 bool value;
3549 _getProp(dbGroup, _ACCEPTED, value);
3551 return value;
3554 ICDBStructNode *getACCEPTEDCDBNode()
3556 return _ACCEPTED;
3559 void setMONEY(CCDBSynchronised &dbGroup, uint64 value, bool forceSending = false)
3563 _setProp(dbGroup, _MONEY, value, forceSending);
3566 uint64 getMONEY(const CCDBSynchronised &dbGroup)
3568 uint64 value;
3569 _getProp(dbGroup, _MONEY, value);
3571 return value;
3574 ICDBStructNode *getMONEYCDBNode()
3576 return _MONEY;
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)
3591 uint8 value;
3592 _getProp(dbGroup, _FORCE_REFUSE, value);
3594 return 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)
3614 uint8 value;
3615 _getProp(dbGroup, _COUNTER, value);
3617 return value;
3620 ICDBStructNode *getCOUNTERCDBNode()
3622 return _COUNTER;
3624 TGIVE &getGIVE()
3626 return _GIVE;
3628 TRECEIVE &getRECEIVE()
3630 return _RECEIVE;
3635 class TINVENTORY
3637 public:
3639 class THAND
3641 public:
3643 class TArray
3645 public:
3648 private:
3649 ICDBStructNode *_BranchNode;
3651 ICDBStructNode *_INDEX_IN_BAG;
3654 public:
3655 void init(ICDBStructNode *parent, uint index);
3657 // accessor to branch node
3658 ICDBStructNode *getCDBNode()
3660 return _BranchNode;
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)
3676 uint16 value;
3677 _getProp(dbGroup, _INDEX_IN_BAG, value);
3679 return value;
3682 ICDBStructNode *getINDEX_IN_BAGCDBNode()
3684 return _INDEX_IN_BAG;
3690 private:
3691 ICDBStructNode *_BranchNode;
3693 TArray _Array[2];
3696 public:
3697 void init(ICDBStructNode *parent);
3699 // accessor to branch node
3700 ICDBStructNode *getCDBNode()
3702 return _BranchNode;
3705 TArray &getArray(uint32 index)
3707 nlassert(index < 2);
3708 return _Array[index];
3713 class TEQUIP
3715 public:
3717 class TArray
3719 public:
3722 private:
3723 ICDBStructNode *_BranchNode;
3725 ICDBStructNode *_INDEX_IN_BAG;
3728 public:
3729 void init(ICDBStructNode *parent, uint index);
3731 // accessor to branch node
3732 ICDBStructNode *getCDBNode()
3734 return _BranchNode;
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)
3750 uint16 value;
3751 _getProp(dbGroup, _INDEX_IN_BAG, value);
3753 return value;
3756 ICDBStructNode *getINDEX_IN_BAGCDBNode()
3758 return _INDEX_IN_BAG;
3764 private:
3765 ICDBStructNode *_BranchNode;
3767 TArray _Array[19];
3770 public:
3771 void init(ICDBStructNode *parent);
3773 // accessor to branch node
3774 ICDBStructNode *getCDBNode()
3776 return _BranchNode;
3779 TArray &getArray(uint32 index)
3781 nlassert(index < 19);
3782 return _Array[index];
3787 class THOTBAR
3789 public:
3791 class TArray
3793 public:
3796 private:
3797 ICDBStructNode *_BranchNode;
3799 ICDBStructNode *_INDEX_IN_BAG;
3802 public:
3803 void init(ICDBStructNode *parent, uint index);
3805 // accessor to branch node
3806 ICDBStructNode *getCDBNode()
3808 return _BranchNode;
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)
3824 uint16 value;
3825 _getProp(dbGroup, _INDEX_IN_BAG, value);
3827 return value;
3830 ICDBStructNode *getINDEX_IN_BAGCDBNode()
3832 return _INDEX_IN_BAG;
3838 private:
3839 ICDBStructNode *_BranchNode;
3841 TArray _Array[5];
3844 public:
3845 void init(ICDBStructNode *parent);
3847 // accessor to branch node
3848 ICDBStructNode *getCDBNode()
3850 return _BranchNode;
3853 TArray &getArray(uint32 index)
3855 nlassert(index < 5);
3856 return _Array[index];
3861 class TTEMP
3863 public:
3865 class TArray
3867 public:
3870 private:
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;
3888 public:
3889 void init(ICDBStructNode *parent, uint index);
3891 // accessor to branch node
3892 ICDBStructNode *getCDBNode()
3894 return _BranchNode;
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);
3910 return value;
3913 ICDBStructNode *getSHEETCDBNode()
3915 return _SHEET;
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)
3930 uint16 value;
3931 _getProp(dbGroup, _QUALITY, value);
3933 return value;
3936 ICDBStructNode *getQUALITYCDBNode()
3938 return _QUALITY;
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)
3953 uint16 value;
3954 _getProp(dbGroup, _QUANTITY, value);
3956 return value;
3959 ICDBStructNode *getQUANTITYCDBNode()
3961 return _QUANTITY;
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)
3973 uint32 value;
3974 _getProp(dbGroup, _CREATE_TIME, value);
3976 return 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)
3993 uint32 value;
3994 _getProp(dbGroup, _SERIAL, value);
3996 return value;
3999 ICDBStructNode *getSERIALCDBNode()
4001 return _SERIAL;
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)
4016 uint8 value;
4017 _getProp(dbGroup, _USER_COLOR, value);
4019 return value;
4022 ICDBStructNode *getUSER_COLORCDBNode()
4024 return _USER_COLOR;
4027 void setWEIGHT(CCDBSynchronised &dbGroup, uint16 value, bool forceSending = false)
4031 _setProp(dbGroup, _WEIGHT, value, forceSending);
4034 uint16 getWEIGHT(const CCDBSynchronised &dbGroup)
4036 uint16 value;
4037 _getProp(dbGroup, _WEIGHT, value);
4039 return value;
4042 ICDBStructNode *getWEIGHTCDBNode()
4044 return _WEIGHT;
4047 void setNAMEID(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
4051 _setProp(dbGroup, _NAMEID, value, forceSending);
4054 uint32 getNAMEID(const CCDBSynchronised &dbGroup)
4056 uint32 value;
4057 _getProp(dbGroup, _NAMEID, value);
4059 return value;
4062 ICDBStructNode *getNAMEIDCDBNode()
4064 return _NAMEID;
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)
4076 uint8 value;
4077 _getProp(dbGroup, _INFO_VERSION, value);
4079 return 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)
4099 uint16 value;
4100 _getProp(dbGroup, _ENCHANT, value);
4102 return value;
4105 ICDBStructNode *getENCHANTCDBNode()
4107 return _ENCHANT;
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)
4122 uint8 value;
4123 _getProp(dbGroup, _RM_CLASS_TYPE, value);
4125 return 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)
4145 uint8 value;
4146 _getProp(dbGroup, _RM_FABER_STAT_TYPE, value);
4148 return 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)
4165 bool value;
4166 _getProp(dbGroup, _PREREQUISIT_VALID, value);
4168 return value;
4171 ICDBStructNode *getPREREQUISIT_VALIDCDBNode()
4173 return _PREREQUISIT_VALID;
4179 private:
4180 ICDBStructNode *_BranchNode;
4182 ICDBStructNode *_TYPE;
4183 ICDBStructNode *_ENABLE_TAKE;
4184 TArray _Array[16];
4187 public:
4188 void init(ICDBStructNode *parent);
4190 // accessor to branch node
4191 ICDBStructNode *getCDBNode()
4193 return _BranchNode;
4197 void setTYPE(CCDBSynchronised &dbGroup, uint8 value, bool forceSending = false)
4201 _setProp(dbGroup, _TYPE, value, forceSending);
4204 uint8 getTYPE(const CCDBSynchronised &dbGroup)
4206 uint8 value;
4207 _getProp(dbGroup, _TYPE, value);
4209 return value;
4212 ICDBStructNode *getTYPECDBNode()
4214 return _TYPE;
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)
4226 bool value;
4227 _getProp(dbGroup, _ENABLE_TAKE, value);
4229 return value;
4232 ICDBStructNode *getENABLE_TAKECDBNode()
4234 return _ENABLE_TAKE;
4236 TArray &getArray(uint32 index)
4238 nlassert(index < 16);
4239 return _Array[index];
4244 class TSHARE
4246 public:
4248 class TArray
4250 public:
4253 private:
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;
4274 public:
4275 void init(ICDBStructNode *parent, uint index);
4277 // accessor to branch node
4278 ICDBStructNode *getCDBNode()
4280 return _BranchNode;
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);
4296 return value;
4299 ICDBStructNode *getSHEETCDBNode()
4301 return _SHEET;
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)
4316 uint16 value;
4317 _getProp(dbGroup, _QUALITY, value);
4319 return value;
4322 ICDBStructNode *getQUALITYCDBNode()
4324 return _QUALITY;
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)
4339 uint16 value;
4340 _getProp(dbGroup, _QUANTITY, value);
4342 return value;
4345 ICDBStructNode *getQUANTITYCDBNode()
4347 return _QUANTITY;
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)
4359 uint32 value;
4360 _getProp(dbGroup, _CREATE_TIME, value);
4362 return 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)
4379 uint32 value;
4380 _getProp(dbGroup, _SERIAL, value);
4382 return value;
4385 ICDBStructNode *getSERIALCDBNode()
4387 return _SERIAL;
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)
4402 uint8 value;
4403 _getProp(dbGroup, _USER_COLOR, value);
4405 return value;
4408 ICDBStructNode *getUSER_COLORCDBNode()
4410 return _USER_COLOR;
4413 void setWEIGHT(CCDBSynchronised &dbGroup, uint16 value, bool forceSending = false)
4417 _setProp(dbGroup, _WEIGHT, value, forceSending);
4420 uint16 getWEIGHT(const CCDBSynchronised &dbGroup)
4422 uint16 value;
4423 _getProp(dbGroup, _WEIGHT, value);
4425 return value;
4428 ICDBStructNode *getWEIGHTCDBNode()
4430 return _WEIGHT;
4433 void setNAMEID(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
4437 _setProp(dbGroup, _NAMEID, value, forceSending);
4440 uint32 getNAMEID(const CCDBSynchronised &dbGroup)
4442 uint32 value;
4443 _getProp(dbGroup, _NAMEID, value);
4445 return value;
4448 ICDBStructNode *getNAMEIDCDBNode()
4450 return _NAMEID;
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)
4462 uint8 value;
4463 _getProp(dbGroup, _INFO_VERSION, value);
4465 return 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)
4485 uint16 value;
4486 _getProp(dbGroup, _ENCHANT, value);
4488 return value;
4491 ICDBStructNode *getENCHANTCDBNode()
4493 return _ENCHANT;
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)
4508 uint8 value;
4509 _getProp(dbGroup, _RM_CLASS_TYPE, value);
4511 return 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)
4531 uint8 value;
4532 _getProp(dbGroup, _RM_FABER_STAT_TYPE, value);
4534 return 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)
4551 bool value;
4552 _getProp(dbGroup, _PREREQUISIT_VALID, value);
4554 return 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)
4574 uint8 value;
4575 _getProp(dbGroup, _NB_MEMBER, value);
4577 return value;
4580 ICDBStructNode *getNB_MEMBERCDBNode()
4582 return _NB_MEMBER;
4585 void setWANTED(CCDBSynchronised &dbGroup, bool value, bool forceSending = false)
4589 _setProp(dbGroup, _WANTED, value, forceSending);
4592 bool getWANTED(const CCDBSynchronised &dbGroup)
4594 bool value;
4595 _getProp(dbGroup, _WANTED, value);
4597 return value;
4600 ICDBStructNode *getWANTEDCDBNode()
4602 return _WANTED;
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)
4617 uint8 value;
4618 _getProp(dbGroup, _CHANCE, value);
4620 return value;
4623 ICDBStructNode *getCHANCECDBNode()
4625 return _CHANCE;
4630 class TTM_
4632 public:
4635 private:
4636 ICDBStructNode *_BranchNode;
4638 ICDBStructNode *_NAME;
4639 ICDBStructNode *_VALID;
4642 public:
4643 void init(ICDBStructNode *parent, uint index);
4645 // accessor to branch node
4646 ICDBStructNode *getCDBNode()
4648 return _BranchNode;
4652 void setNAME(CCDBSynchronised &dbGroup, ucstring value, bool forceSending = false)
4656 _setProp(dbGroup, _NAME, value, forceSending);
4659 ucstring getNAME(const CCDBSynchronised &dbGroup)
4661 ucstring value;
4662 _getProp(dbGroup, _NAME, value);
4664 return value;
4667 void setNAME(CCDBSynchronised &dbGroup, uint32 stringId, bool forceSending = false)
4669 _setProp(dbGroup, _NAME, stringId, forceSending);
4671 uint32 getNAME_id(const CCDBSynchronised &dbGroup)
4673 uint32 value;
4674 _getProp(dbGroup, _NAME, value);
4676 return value;
4679 ICDBStructNode *getNAMECDBNode()
4681 return _NAME;
4684 void setVALID(CCDBSynchronised &dbGroup, bool value, bool forceSending = false)
4688 _setProp(dbGroup, _VALID, value, forceSending);
4691 bool getVALID(const CCDBSynchronised &dbGroup)
4693 bool value;
4694 _getProp(dbGroup, _VALID, value);
4696 return value;
4699 ICDBStructNode *getVALIDCDBNode()
4701 return _VALID;
4707 private:
4708 ICDBStructNode *_BranchNode;
4710 ICDBStructNode *_SESSION;
4711 TArray _Array[16];
4712 TTM_ _TM_[8];
4715 public:
4716 void init(ICDBStructNode *parent);
4718 // accessor to branch node
4719 ICDBStructNode *getCDBNode()
4721 return _BranchNode;
4725 void setSESSION(CCDBSynchronised &dbGroup, uint8 value, bool forceSending = false)
4729 _setProp(dbGroup, _SESSION, value, forceSending);
4732 uint8 getSESSION(const CCDBSynchronised &dbGroup)
4734 uint8 value;
4735 _getProp(dbGroup, _SESSION, value);
4737 return value;
4740 ICDBStructNode *getSESSIONCDBNode()
4742 return _SESSION;
4744 TArray &getArray(uint32 index)
4746 nlassert(index < 16);
4747 return _Array[index];
4749 TTM_ &getTM_(uint32 index)
4751 nlassert(index < 8);
4752 return _TM_[index];
4757 class TROOM
4759 public:
4762 private:
4763 ICDBStructNode *_BranchNode;
4765 ICDBStructNode *_SESSION;
4766 ICDBStructNode *_BULK_MAX;
4767 ICDBStructNode *_MONEY;
4770 public:
4771 void init(ICDBStructNode *parent);
4773 // accessor to branch node
4774 ICDBStructNode *getCDBNode()
4776 return _BranchNode;
4780 void setSESSION(CCDBSynchronised &dbGroup, uint16 value, bool forceSending = false)
4784 _setProp(dbGroup, _SESSION, value, forceSending);
4787 uint16 getSESSION(const CCDBSynchronised &dbGroup)
4789 uint16 value;
4790 _getProp(dbGroup, _SESSION, value);
4792 return value;
4795 ICDBStructNode *getSESSIONCDBNode()
4797 return _SESSION;
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)
4809 uint32 value;
4810 _getProp(dbGroup, _BULK_MAX, value);
4812 return value;
4815 ICDBStructNode *getBULK_MAXCDBNode()
4817 return _BULK_MAX;
4820 void setMONEY(CCDBSynchronised &dbGroup, uint64 value, bool forceSending = false)
4824 _setProp(dbGroup, _MONEY, value, forceSending);
4827 uint64 getMONEY(const CCDBSynchronised &dbGroup)
4829 uint64 value;
4830 _getProp(dbGroup, _MONEY, value);
4832 return value;
4835 ICDBStructNode *getMONEYCDBNode()
4837 return _MONEY;
4843 private:
4844 ICDBStructNode *_BranchNode;
4846 ICDBStructNode *_MONEY;
4847 ICDBStructNode *_COUNTER;
4848 THAND _HAND;
4849 TEQUIP _EQUIP;
4850 THOTBAR _HOTBAR;
4851 TTEMP _TEMP;
4852 TSHARE _SHARE;
4853 TROOM _ROOM;
4856 public:
4857 void init(ICDBStructNode *parent);
4859 // accessor to branch node
4860 ICDBStructNode *getCDBNode()
4862 return _BranchNode;
4866 void setMONEY(CCDBSynchronised &dbGroup, uint64 value, bool forceSending = false)
4870 _setProp(dbGroup, _MONEY, value, forceSending);
4873 uint64 getMONEY(const CCDBSynchronised &dbGroup)
4875 uint64 value;
4876 _getProp(dbGroup, _MONEY, value);
4878 return value;
4881 ICDBStructNode *getMONEYCDBNode()
4883 return _MONEY;
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)
4898 uint8 value;
4899 _getProp(dbGroup, _COUNTER, value);
4901 return value;
4904 ICDBStructNode *getCOUNTERCDBNode()
4906 return _COUNTER;
4908 THAND &getHAND()
4910 return _HAND;
4912 TEQUIP &getEQUIP()
4914 return _EQUIP;
4916 THOTBAR &getHOTBAR()
4918 return _HOTBAR;
4920 TTEMP &getTEMP()
4922 return _TEMP;
4924 TSHARE &getSHARE()
4926 return _SHARE;
4928 TROOM &getROOM()
4930 return _ROOM;
4935 class TMODIFIERS
4937 public:
4939 class TBONUS
4941 public:
4943 class TArray
4945 public:
4948 private:
4949 ICDBStructNode *_BranchNode;
4951 ICDBStructNode *_SHEET;
4952 ICDBStructNode *_DISABLED;
4953 ICDBStructNode *_DISABLED_TIME;
4956 public:
4957 void init(ICDBStructNode *parent, uint index);
4959 // accessor to branch node
4960 ICDBStructNode *getCDBNode()
4962 return _BranchNode;
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);
4978 return value;
4981 ICDBStructNode *getSHEETCDBNode()
4983 return _SHEET;
4986 void setDISABLED(CCDBSynchronised &dbGroup, bool value, bool forceSending = false)
4990 _setProp(dbGroup, _DISABLED, value, forceSending);
4993 bool getDISABLED(const CCDBSynchronised &dbGroup)
4995 bool value;
4996 _getProp(dbGroup, _DISABLED, value);
4998 return value;
5001 ICDBStructNode *getDISABLEDCDBNode()
5003 return _DISABLED;
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)
5015 uint32 value;
5016 _getProp(dbGroup, _DISABLED_TIME, value);
5018 return value;
5021 ICDBStructNode *getDISABLED_TIMECDBNode()
5023 return _DISABLED_TIME;
5029 private:
5030 ICDBStructNode *_BranchNode;
5032 TArray _Array[12];
5035 public:
5036 void init(ICDBStructNode *parent);
5038 // accessor to branch node
5039 ICDBStructNode *getCDBNode()
5041 return _BranchNode;
5044 TArray &getArray(uint32 index)
5046 nlassert(index < 12);
5047 return _Array[index];
5052 class TMALUS
5054 public:
5056 class TArray
5058 public:
5061 private:
5062 ICDBStructNode *_BranchNode;
5064 ICDBStructNode *_SHEET;
5065 ICDBStructNode *_DISABLED;
5066 ICDBStructNode *_DISABLED_TIME;
5069 public:
5070 void init(ICDBStructNode *parent, uint index);
5072 // accessor to branch node
5073 ICDBStructNode *getCDBNode()
5075 return _BranchNode;
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);
5091 return value;
5094 ICDBStructNode *getSHEETCDBNode()
5096 return _SHEET;
5099 void setDISABLED(CCDBSynchronised &dbGroup, bool value, bool forceSending = false)
5103 _setProp(dbGroup, _DISABLED, value, forceSending);
5106 bool getDISABLED(const CCDBSynchronised &dbGroup)
5108 bool value;
5109 _getProp(dbGroup, _DISABLED, value);
5111 return value;
5114 ICDBStructNode *getDISABLEDCDBNode()
5116 return _DISABLED;
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)
5128 uint32 value;
5129 _getProp(dbGroup, _DISABLED_TIME, value);
5131 return value;
5134 ICDBStructNode *getDISABLED_TIMECDBNode()
5136 return _DISABLED_TIME;
5142 private:
5143 ICDBStructNode *_BranchNode;
5145 TArray _Array[12];
5148 public:
5149 void init(ICDBStructNode *parent);
5151 // accessor to branch node
5152 ICDBStructNode *getCDBNode()
5154 return _BranchNode;
5157 TArray &getArray(uint32 index)
5159 nlassert(index < 12);
5160 return _Array[index];
5166 private:
5167 ICDBStructNode *_BranchNode;
5169 ICDBStructNode *_TOTAL_MALUS_EQUIP;
5170 TBONUS _BONUS;
5171 TMALUS _MALUS;
5174 public:
5175 void init(ICDBStructNode *parent);
5177 // accessor to branch node
5178 ICDBStructNode *getCDBNode()
5180 return _BranchNode;
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)
5193 uint8 value;
5194 _getProp(dbGroup, _TOTAL_MALUS_EQUIP, value);
5196 return value;
5199 ICDBStructNode *getTOTAL_MALUS_EQUIPCDBNode()
5201 return _TOTAL_MALUS_EQUIP;
5203 TBONUS &getBONUS()
5205 return _BONUS;
5207 TMALUS &getMALUS()
5209 return _MALUS;
5214 class TDISABLE_CONSUMABLE
5216 public:
5218 class TArray
5220 public:
5223 private:
5224 ICDBStructNode *_BranchNode;
5226 ICDBStructNode *_FAMILY;
5227 ICDBStructNode *_DISABLE_TIME;
5230 public:
5231 void init(ICDBStructNode *parent, uint index);
5233 // accessor to branch node
5234 ICDBStructNode *getCDBNode()
5236 return _BranchNode;
5240 void setFAMILY(CCDBSynchronised &dbGroup, uint16 value, bool forceSending = false)
5244 _setProp(dbGroup, _FAMILY, value, forceSending);
5247 uint16 getFAMILY(const CCDBSynchronised &dbGroup)
5249 uint16 value;
5250 _getProp(dbGroup, _FAMILY, value);
5252 return value;
5255 ICDBStructNode *getFAMILYCDBNode()
5257 return _FAMILY;
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)
5269 uint32 value;
5270 _getProp(dbGroup, _DISABLE_TIME, value);
5272 return value;
5275 ICDBStructNode *getDISABLE_TIMECDBNode()
5277 return _DISABLE_TIME;
5283 private:
5284 ICDBStructNode *_BranchNode;
5286 TArray _Array[12];
5289 public:
5290 void init(ICDBStructNode *parent);
5292 // accessor to branch node
5293 ICDBStructNode *getCDBNode()
5295 return _BranchNode;
5298 TArray &getArray(uint32 index)
5300 nlassert(index < 12);
5301 return _Array[index];
5306 class TBOTCHAT
5308 public:
5310 class TDM_CHOICE
5312 public:
5314 class TArray
5316 public:
5319 private:
5320 ICDBStructNode *_BranchNode;
5322 ICDBStructNode *_TEXT;
5325 public:
5326 void init(ICDBStructNode *parent, uint index);
5328 // accessor to branch node
5329 ICDBStructNode *getCDBNode()
5331 return _BranchNode;
5335 void setTEXT(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
5339 _setProp(dbGroup, _TEXT, value, forceSending);
5342 uint32 getTEXT(const CCDBSynchronised &dbGroup)
5344 uint32 value;
5345 _getProp(dbGroup, _TEXT, value);
5347 return value;
5350 ICDBStructNode *getTEXTCDBNode()
5352 return _TEXT;
5358 private:
5359 ICDBStructNode *_BranchNode;
5361 ICDBStructNode *_TITLE;
5362 TArray _Array[8];
5365 public:
5366 void init(ICDBStructNode *parent, uint index);
5368 // accessor to branch node
5369 ICDBStructNode *getCDBNode()
5371 return _BranchNode;
5375 void setTITLE(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
5379 _setProp(dbGroup, _TITLE, value, forceSending);
5382 uint32 getTITLE(const CCDBSynchronised &dbGroup)
5384 uint32 value;
5385 _getProp(dbGroup, _TITLE, value);
5387 return value;
5390 ICDBStructNode *getTITLECDBNode()
5392 return _TITLE;
5394 TArray &getArray(uint32 index)
5396 nlassert(index < 8);
5397 return _Array[index];
5403 private:
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];
5416 public:
5417 void init(ICDBStructNode *parent);
5419 // accessor to branch node
5420 ICDBStructNode *getCDBNode()
5422 return _BranchNode;
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)
5435 uint32 value;
5436 _getProp(dbGroup, _PLAYER_GIFT, value);
5438 return 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)
5455 uint32 value;
5456 _getProp(dbGroup, _CREATE_GUILD, value);
5458 return 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)
5475 uint32 value;
5476 _getProp(dbGroup, _TRADE, value);
5478 return value;
5481 ICDBStructNode *getTRADECDBNode()
5483 return _TRADE;
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)
5495 uint32 value;
5496 _getProp(dbGroup, _CHOOSE_MISSION, value);
5498 return 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)
5515 uint32 value;
5516 _getProp(dbGroup, _DM_TITLE, value);
5518 return value;
5521 ICDBStructNode *getDM_TITLECDBNode()
5523 return _DM_TITLE;
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)
5535 uint32 value;
5536 _getProp(dbGroup, _DM_DESCRIPTION, value);
5538 return 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)
5558 uint8 value;
5559 _getProp(dbGroup, _ROLEMASTER_TYPE, value);
5561 return 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];
5576 class TASCENSOR
5578 public:
5580 class TArray
5582 public:
5585 private:
5586 ICDBStructNode *_BranchNode;
5588 ICDBStructNode *_ICON;
5589 ICDBStructNode *_NAME;
5592 public:
5593 void init(ICDBStructNode *parent, uint index);
5595 // accessor to branch node
5596 ICDBStructNode *getCDBNode()
5598 return _BranchNode;
5602 void setICON(CCDBSynchronised &dbGroup, uint64 value, bool forceSending = false)
5606 _setProp(dbGroup, _ICON, value, forceSending);
5609 uint64 getICON(const CCDBSynchronised &dbGroup)
5611 uint64 value;
5612 _getProp(dbGroup, _ICON, value);
5614 return value;
5617 ICDBStructNode *getICONCDBNode()
5619 return _ICON;
5622 void setNAME(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
5626 _setProp(dbGroup, _NAME, value, forceSending);
5629 uint32 getNAME(const CCDBSynchronised &dbGroup)
5631 uint32 value;
5632 _getProp(dbGroup, _NAME, value);
5634 return value;
5637 ICDBStructNode *getNAMECDBNode()
5639 return _NAME;
5645 private:
5646 ICDBStructNode *_BranchNode;
5648 ICDBStructNode *_SESSION;
5649 ICDBStructNode *_PAGE_ID;
5650 ICDBStructNode *_HAS_NEXT;
5651 TArray _Array[8];
5654 public:
5655 void init(ICDBStructNode *parent);
5657 // accessor to branch node
5658 ICDBStructNode *getCDBNode()
5660 return _BranchNode;
5664 void setSESSION(CCDBSynchronised &dbGroup, uint16 value, bool forceSending = false)
5668 _setProp(dbGroup, _SESSION, value, forceSending);
5671 uint16 getSESSION(const CCDBSynchronised &dbGroup)
5673 uint16 value;
5674 _getProp(dbGroup, _SESSION, value);
5676 return value;
5679 ICDBStructNode *getSESSIONCDBNode()
5681 return _SESSION;
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)
5696 uint8 value;
5697 _getProp(dbGroup, _PAGE_ID, value);
5699 return value;
5702 ICDBStructNode *getPAGE_IDCDBNode()
5704 return _PAGE_ID;
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)
5716 bool value;
5717 _getProp(dbGroup, _HAS_NEXT, value);
5719 return value;
5722 ICDBStructNode *getHAS_NEXTCDBNode()
5724 return _HAS_NEXT;
5726 TArray &getArray(uint32 index)
5728 nlassert(index < 8);
5729 return _Array[index];
5734 class TCHOOSE_MISSIONS
5736 public:
5738 class TArray
5740 public:
5743 private:
5744 ICDBStructNode *_BranchNode;
5746 ICDBStructNode *_ICON;
5747 ICDBStructNode *_TEXT;
5748 ICDBStructNode *_DETAIL_TEXT;
5749 ICDBStructNode *_PREREQ_STATE;
5752 public:
5753 void init(ICDBStructNode *parent, uint index);
5755 // accessor to branch node
5756 ICDBStructNode *getCDBNode()
5758 return _BranchNode;
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);
5774 return value;
5777 ICDBStructNode *getICONCDBNode()
5779 return _ICON;
5782 void setTEXT(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
5786 _setProp(dbGroup, _TEXT, value, forceSending);
5789 uint32 getTEXT(const CCDBSynchronised &dbGroup)
5791 uint32 value;
5792 _getProp(dbGroup, _TEXT, value);
5794 return value;
5797 ICDBStructNode *getTEXTCDBNode()
5799 return _TEXT;
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)
5811 uint32 value;
5812 _getProp(dbGroup, _DETAIL_TEXT, value);
5814 return 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)
5831 uint8 value;
5832 _getProp(dbGroup, _PREREQ_STATE, value);
5834 return value;
5837 ICDBStructNode *getPREREQ_STATECDBNode()
5839 return _PREREQ_STATE;
5845 private:
5846 ICDBStructNode *_BranchNode;
5848 ICDBStructNode *_SESSION;
5849 ICDBStructNode *_PAGE_ID;
5850 ICDBStructNode *_HAS_NEXT;
5851 TArray _Array[8];
5854 public:
5855 void init(ICDBStructNode *parent);
5857 // accessor to branch node
5858 ICDBStructNode *getCDBNode()
5860 return _BranchNode;
5864 void setSESSION(CCDBSynchronised &dbGroup, uint16 value, bool forceSending = false)
5868 _setProp(dbGroup, _SESSION, value, forceSending);
5871 uint16 getSESSION(const CCDBSynchronised &dbGroup)
5873 uint16 value;
5874 _getProp(dbGroup, _SESSION, value);
5876 return value;
5879 ICDBStructNode *getSESSIONCDBNode()
5881 return _SESSION;
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)
5896 uint8 value;
5897 _getProp(dbGroup, _PAGE_ID, value);
5899 return value;
5902 ICDBStructNode *getPAGE_IDCDBNode()
5904 return _PAGE_ID;
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)
5916 bool value;
5917 _getProp(dbGroup, _HAS_NEXT, value);
5919 return value;
5922 ICDBStructNode *getHAS_NEXTCDBNode()
5924 return _HAS_NEXT;
5926 TArray &getArray(uint32 index)
5928 nlassert(index < 8);
5929 return _Array[index];
5934 class TTRADING
5936 public:
5938 class TArray
5940 public:
5943 private:
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;
5973 public:
5974 void init(ICDBStructNode *parent, uint index);
5976 // accessor to branch node
5977 ICDBStructNode *getCDBNode()
5979 return _BranchNode;
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);
5995 return value;
5998 ICDBStructNode *getSHEETCDBNode()
6000 return _SHEET;
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)
6015 uint16 value;
6016 _getProp(dbGroup, _QUALITY, value);
6018 return value;
6021 ICDBStructNode *getQUALITYCDBNode()
6023 return _QUALITY;
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)
6038 uint16 value;
6039 _getProp(dbGroup, _QUANTITY, value);
6041 return value;
6044 ICDBStructNode *getQUANTITYCDBNode()
6046 return _QUANTITY;
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)
6058 uint32 value;
6059 _getProp(dbGroup, _CREATE_TIME, value);
6061 return 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)
6078 uint32 value;
6079 _getProp(dbGroup, _SERIAL, value);
6081 return value;
6084 ICDBStructNode *getSERIALCDBNode()
6086 return _SERIAL;
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)
6101 uint8 value;
6102 _getProp(dbGroup, _USER_COLOR, value);
6104 return value;
6107 ICDBStructNode *getUSER_COLORCDBNode()
6109 return _USER_COLOR;
6112 void setWEIGHT(CCDBSynchronised &dbGroup, uint16 value, bool forceSending = false)
6116 _setProp(dbGroup, _WEIGHT, value, forceSending);
6119 uint16 getWEIGHT(const CCDBSynchronised &dbGroup)
6121 uint16 value;
6122 _getProp(dbGroup, _WEIGHT, value);
6124 return value;
6127 ICDBStructNode *getWEIGHTCDBNode()
6129 return _WEIGHT;
6132 void setNAMEID(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
6136 _setProp(dbGroup, _NAMEID, value, forceSending);
6139 uint32 getNAMEID(const CCDBSynchronised &dbGroup)
6141 uint32 value;
6142 _getProp(dbGroup, _NAMEID, value);
6144 return value;
6147 ICDBStructNode *getNAMEIDCDBNode()
6149 return _NAMEID;
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)
6161 uint8 value;
6162 _getProp(dbGroup, _INFO_VERSION, value);
6164 return 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)
6184 uint16 value;
6185 _getProp(dbGroup, _ENCHANT, value);
6187 return value;
6190 ICDBStructNode *getENCHANTCDBNode()
6192 return _ENCHANT;
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)
6207 uint8 value;
6208 _getProp(dbGroup, _RM_CLASS_TYPE, value);
6210 return 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)
6230 uint8 value;
6231 _getProp(dbGroup, _RM_FABER_STAT_TYPE, value);
6233 return 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)
6250 bool value;
6251 _getProp(dbGroup, _PREREQUISIT_VALID, value);
6253 return 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)
6273 uint8 value;
6274 _getProp(dbGroup, _CURRENCY, value);
6276 return value;
6279 ICDBStructNode *getCURRENCYCDBNode()
6281 return _CURRENCY;
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)
6296 uint8 value;
6297 _getProp(dbGroup, _RRP_LEVEL, value);
6299 return value;
6302 ICDBStructNode *getRRP_LEVELCDBNode()
6304 return _RRP_LEVEL;
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);
6319 return 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)
6339 uint8 value;
6340 _getProp(dbGroup, _BASE_SKILL, value);
6342 return value;
6345 ICDBStructNode *getBASE_SKILLCDBNode()
6347 return _BASE_SKILL;
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)
6362 uint8 value;
6363 _getProp(dbGroup, _FACTION_TYPE, value);
6365 return 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)
6382 uint32 value;
6383 _getProp(dbGroup, _PRICE, value);
6385 return value;
6388 ICDBStructNode *getPRICECDBNode()
6390 return _PRICE;
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)
6402 uint32 value;
6403 _getProp(dbGroup, _PRICE_RETIRE, value);
6405 return 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)
6422 uint16 value;
6423 _getProp(dbGroup, _RESALE_TIME_LEFT, value);
6425 return 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)
6442 ucstring value;
6443 _getProp(dbGroup, _VENDOR_NAMEID, value);
6445 return 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)
6454 uint32 value;
6455 _getProp(dbGroup, _VENDOR_NAMEID, value);
6457 return 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)
6474 uint32 value;
6475 _getProp(dbGroup, _FACTION_POINT_PRICE, value);
6477 return 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)
6497 uint8 value;
6498 _getProp(dbGroup, _SLOT_TYPE, value);
6500 return value;
6503 ICDBStructNode *getSLOT_TYPECDBNode()
6505 return _SLOT_TYPE;
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)
6520 uint8 value;
6521 _getProp(dbGroup, _SELLER_TYPE, value);
6523 return value;
6526 ICDBStructNode *getSELLER_TYPECDBNode()
6528 return _SELLER_TYPE;
6534 private:
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;
6547 TArray _Array[8];
6550 public:
6551 void init(ICDBStructNode *parent);
6553 // accessor to branch node
6554 ICDBStructNode *getCDBNode()
6556 return _BranchNode;
6560 void setSESSION(CCDBSynchronised &dbGroup, uint16 value, bool forceSending = false)
6564 _setProp(dbGroup, _SESSION, value, forceSending);
6567 uint16 getSESSION(const CCDBSynchronised &dbGroup)
6569 uint16 value;
6570 _getProp(dbGroup, _SESSION, value);
6572 return value;
6575 ICDBStructNode *getSESSIONCDBNode()
6577 return _SESSION;
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)
6592 uint8 value;
6593 _getProp(dbGroup, _PAGE_ID, value);
6595 return value;
6598 ICDBStructNode *getPAGE_IDCDBNode()
6600 return _PAGE_ID;
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)
6612 bool value;
6613 _getProp(dbGroup, _HAS_NEXT, value);
6615 return value;
6618 ICDBStructNode *getHAS_NEXTCDBNode()
6620 return _HAS_NEXT;
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)
6635 uint8 value;
6636 _getProp(dbGroup, _ROLEMASTER_FLAGS, value);
6638 return 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)
6658 uint8 value;
6659 _getProp(dbGroup, _ROLEMASTER_RACE, value);
6661 return 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)
6678 bool value;
6679 _getProp(dbGroup, _BUILDING_LOSS_WARNING, value);
6681 return 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)
6698 bool value;
6699 _getProp(dbGroup, _RAW_MATERIAL_SELLER, value);
6701 return 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)
6718 uint64 value;
6719 _getProp(dbGroup, _ITEM_TYPE_SELLER_BITFILED_0_63, value);
6721 return 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)
6738 uint64 value;
6739 _getProp(dbGroup, _ITEM_TYPE_SELLER_BITFILED_64_127, value);
6741 return 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)
6758 uint16 value;
6759 _getProp(dbGroup, _FAME_PRICE_FACTOR, value);
6761 return value;
6764 ICDBStructNode *getFAME_PRICE_FACTORCDBNode()
6766 return _FAME_PRICE_FACTOR;
6768 TArray &getArray(uint32 index)
6770 nlassert(index < 8);
6771 return _Array[index];
6776 class TBRICK_FAMILY
6778 public:
6780 class TArray
6782 public:
6785 private:
6786 ICDBStructNode *_BranchNode;
6788 ICDBStructNode *_BRICKS;
6791 public:
6792 void init(ICDBStructNode *parent, uint index);
6794 // accessor to branch node
6795 ICDBStructNode *getCDBNode()
6797 return _BranchNode;
6801 void setBRICKS(CCDBSynchronised &dbGroup, uint64 value, bool forceSending = false)
6805 _setProp(dbGroup, _BRICKS, value, forceSending);
6808 uint64 getBRICKS(const CCDBSynchronised &dbGroup)
6810 uint64 value;
6811 _getProp(dbGroup, _BRICKS, value);
6813 return value;
6816 ICDBStructNode *getBRICKSCDBNode()
6818 return _BRICKS;
6824 private:
6825 ICDBStructNode *_BranchNode;
6827 TArray _Array[1024];
6830 public:
6831 void init(ICDBStructNode *parent);
6833 // accessor to branch node
6834 ICDBStructNode *getCDBNode()
6836 return _BranchNode;
6839 TArray &getArray(uint32 index)
6841 nlassert(index < 1024);
6842 return _Array[index];
6847 class TFABER_PLANS
6849 public:
6851 class TArray
6853 public:
6856 private:
6857 ICDBStructNode *_BranchNode;
6859 ICDBStructNode *_KNOWN;
6862 public:
6863 void init(ICDBStructNode *parent, uint index);
6865 // accessor to branch node
6866 ICDBStructNode *getCDBNode()
6868 return _BranchNode;
6872 void setKNOWN(CCDBSynchronised &dbGroup, uint64 value, bool forceSending = false)
6876 _setProp(dbGroup, _KNOWN, value, forceSending);
6879 uint64 getKNOWN(const CCDBSynchronised &dbGroup)
6881 uint64 value;
6882 _getProp(dbGroup, _KNOWN, value);
6884 return value;
6887 ICDBStructNode *getKNOWNCDBNode()
6889 return _KNOWN;
6895 private:
6896 ICDBStructNode *_BranchNode;
6898 TArray _Array[64];
6901 public:
6902 void init(ICDBStructNode *parent);
6904 // accessor to branch node
6905 ICDBStructNode *getCDBNode()
6907 return _BranchNode;
6910 TArray &getArray(uint32 index)
6912 nlassert(index < 64);
6913 return _Array[index];
6918 class TMISSIONS
6920 public:
6922 class TArray
6924 public:
6926 class TGOALS
6928 public:
6930 class TArray
6932 public:
6935 private:
6936 ICDBStructNode *_BranchNode;
6938 ICDBStructNode *_TEXT;
6939 ICDBStructNode *_NPC_ALIAS;
6942 public:
6943 void init(ICDBStructNode *parent, uint index);
6945 // accessor to branch node
6946 ICDBStructNode *getCDBNode()
6948 return _BranchNode;
6952 void setTEXT(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
6956 _setProp(dbGroup, _TEXT, value, forceSending);
6959 uint32 getTEXT(const CCDBSynchronised &dbGroup)
6961 uint32 value;
6962 _getProp(dbGroup, _TEXT, value);
6964 return value;
6967 ICDBStructNode *getTEXTCDBNode()
6969 return _TEXT;
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)
6981 uint32 value;
6982 _getProp(dbGroup, _NPC_ALIAS, value);
6984 return value;
6987 ICDBStructNode *getNPC_ALIASCDBNode()
6989 return _NPC_ALIAS;
6995 private:
6996 ICDBStructNode *_BranchNode;
6998 TArray _Array[20];
7001 public:
7002 void init(ICDBStructNode *parent);
7004 // accessor to branch node
7005 ICDBStructNode *getCDBNode()
7007 return _BranchNode;
7010 TArray &getArray(uint32 index)
7012 nlassert(index < 20);
7013 return _Array[index];
7018 class TTARGET
7020 public:
7023 private:
7024 ICDBStructNode *_BranchNode;
7026 ICDBStructNode *_TITLE;
7027 ICDBStructNode *_X;
7028 ICDBStructNode *_Y;
7031 public:
7032 void init(ICDBStructNode *parent, uint index);
7034 // accessor to branch node
7035 ICDBStructNode *getCDBNode()
7037 return _BranchNode;
7041 void setTITLE(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
7045 _setProp(dbGroup, _TITLE, value, forceSending);
7048 uint32 getTITLE(const CCDBSynchronised &dbGroup)
7050 uint32 value;
7051 _getProp(dbGroup, _TITLE, value);
7053 return value;
7056 ICDBStructNode *getTITLECDBNode()
7058 return _TITLE;
7061 void setX(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
7065 _setProp(dbGroup, _X, value, forceSending);
7068 uint32 getX(const CCDBSynchronised &dbGroup)
7070 uint32 value;
7071 _getProp(dbGroup, _X, value);
7073 return value;
7076 ICDBStructNode *getXCDBNode()
7078 return _X;
7081 void setY(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
7085 _setProp(dbGroup, _Y, value, forceSending);
7088 uint32 getY(const CCDBSynchronised &dbGroup)
7090 uint32 value;
7091 _getProp(dbGroup, _Y, value);
7093 return value;
7096 ICDBStructNode *getYCDBNode()
7098 return _Y;
7103 class THISTO
7105 public:
7107 class TArray
7109 public:
7112 private:
7113 ICDBStructNode *_BranchNode;
7115 ICDBStructNode *_TEXT;
7118 public:
7119 void init(ICDBStructNode *parent, uint index);
7121 // accessor to branch node
7122 ICDBStructNode *getCDBNode()
7124 return _BranchNode;
7128 void setTEXT(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
7132 _setProp(dbGroup, _TEXT, value, forceSending);
7135 uint32 getTEXT(const CCDBSynchronised &dbGroup)
7137 uint32 value;
7138 _getProp(dbGroup, _TEXT, value);
7140 return value;
7143 ICDBStructNode *getTEXTCDBNode()
7145 return _TEXT;
7151 private:
7152 ICDBStructNode *_BranchNode;
7154 TArray _Array[30];
7157 public:
7158 void init(ICDBStructNode *parent);
7160 // accessor to branch node
7161 ICDBStructNode *getCDBNode()
7163 return _BranchNode;
7166 TArray &getArray(uint32 index)
7168 nlassert(index < 30);
7169 return _Array[index];
7175 private:
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;
7188 TGOALS _GOALS;
7189 TTARGET _TARGET[8];
7190 THISTO _HISTO;
7193 public:
7194 void init(ICDBStructNode *parent, uint index);
7196 // accessor to branch node
7197 ICDBStructNode *getCDBNode()
7199 return _BranchNode;
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)
7215 uint8 value;
7216 _getProp(dbGroup, _TYPE, value);
7218 return value;
7221 ICDBStructNode *getTYPECDBNode()
7223 return _TYPE;
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);
7238 return value;
7241 ICDBStructNode *getICONCDBNode()
7243 return _ICON;
7246 void setTITLE(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
7250 _setProp(dbGroup, _TITLE, value, forceSending);
7253 uint32 getTITLE(const CCDBSynchronised &dbGroup)
7255 uint32 value;
7256 _getProp(dbGroup, _TITLE, value);
7258 return value;
7261 ICDBStructNode *getTITLECDBNode()
7263 return _TITLE;
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)
7275 uint32 value;
7276 _getProp(dbGroup, _DETAIL_TEXT, value);
7278 return 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)
7295 uint32 value;
7296 _getProp(dbGroup, _BEGIN_DATE, value);
7298 return value;
7301 ICDBStructNode *getBEGIN_DATECDBNode()
7303 return _BEGIN_DATE;
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)
7315 uint32 value;
7316 _getProp(dbGroup, _END_DATE, value);
7318 return value;
7321 ICDBStructNode *getEND_DATECDBNode()
7323 return _END_DATE;
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)
7335 bool value;
7336 _getProp(dbGroup, _OR_STEPS, value);
7338 return value;
7341 ICDBStructNode *getOR_STEPSCDBNode()
7343 return _OR_STEPS;
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)
7358 uint8 value;
7359 _getProp(dbGroup, _FINISHED, value);
7361 return value;
7364 ICDBStructNode *getFINISHEDCDBNode()
7366 return _FINISHED;
7369 void setABANDONNABLE(CCDBSynchronised &dbGroup, bool value, bool forceSending = false)
7373 _setProp(dbGroup, _ABANDONNABLE, value, forceSending);
7376 bool getABANDONNABLE(const CCDBSynchronised &dbGroup)
7378 bool value;
7379 _getProp(dbGroup, _ABANDONNABLE, value);
7381 return 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)
7398 bool value;
7399 _getProp(dbGroup, _SLEEP, value);
7401 return value;
7404 ICDBStructNode *getSLEEPCDBNode()
7406 return _SLEEP;
7408 TGOALS &getGOALS()
7410 return _GOALS;
7412 TTARGET &getTARGET(uint32 index)
7414 nlassert(index < 8);
7415 return _TARGET[index];
7417 THISTO &getHISTO()
7419 return _HISTO;
7425 private:
7426 ICDBStructNode *_BranchNode;
7428 TArray _Array[15];
7431 public:
7432 void init(ICDBStructNode *parent);
7434 // accessor to branch node
7435 ICDBStructNode *getCDBNode()
7437 return _BranchNode;
7440 TArray &getArray(uint32 index)
7442 nlassert(index < 15);
7443 return _Array[index];
7448 class TEXECUTE_PHRASE
7450 public:
7452 class TLINK
7454 public:
7456 class TArray
7458 public:
7461 private:
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;
7475 public:
7476 void init(ICDBStructNode *parent, uint index);
7478 // accessor to branch node
7479 ICDBStructNode *getCDBNode()
7481 return _BranchNode;
7485 void setPHRASE(CCDBSynchronised &dbGroup, uint16 value, bool forceSending = false)
7489 _setProp(dbGroup, _PHRASE, value, forceSending);
7492 uint16 getPHRASE(const CCDBSynchronised &dbGroup)
7494 uint16 value;
7495 _getProp(dbGroup, _PHRASE, value);
7497 return value;
7500 ICDBStructNode *getPHRASECDBNode()
7502 return _PHRASE;
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)
7517 uint8 value;
7518 _getProp(dbGroup, _COUNTER, value);
7520 return value;
7523 ICDBStructNode *getCOUNTERCDBNode()
7525 return _COUNTER;
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)
7537 uint16 value;
7538 _getProp(dbGroup, _HP_COST, value);
7540 return value;
7543 ICDBStructNode *getHP_COSTCDBNode()
7545 return _HP_COST;
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)
7557 uint16 value;
7558 _getProp(dbGroup, _SAP_COST, value);
7560 return value;
7563 ICDBStructNode *getSAP_COSTCDBNode()
7565 return _SAP_COST;
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)
7577 uint16 value;
7578 _getProp(dbGroup, _STA_COST, value);
7580 return value;
7583 ICDBStructNode *getSTA_COSTCDBNode()
7585 return _STA_COST;
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)
7597 ucstring value;
7598 _getProp(dbGroup, _TARGET_NAME, value);
7600 return 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)
7609 uint32 value;
7610 _getProp(dbGroup, _TARGET_NAME, value);
7612 return 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)
7632 uint8 value;
7633 _getProp(dbGroup, _TARGET_HP, value);
7635 return value;
7638 ICDBStructNode *getTARGET_HPCDBNode()
7640 return _TARGET_HP;
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)
7655 uint8 value;
7656 _getProp(dbGroup, _TARGET_SAP, value);
7658 return value;
7661 ICDBStructNode *getTARGET_SAPCDBNode()
7663 return _TARGET_SAP;
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)
7678 uint8 value;
7679 _getProp(dbGroup, _TARGET_STA, value);
7681 return value;
7684 ICDBStructNode *getTARGET_STACDBNode()
7686 return _TARGET_STA;
7692 private:
7693 ICDBStructNode *_BranchNode;
7695 TArray _Array[10];
7698 public:
7699 void init(ICDBStructNode *parent);
7701 // accessor to branch node
7702 ICDBStructNode *getCDBNode()
7704 return _BranchNode;
7707 TArray &getArray(uint32 index)
7709 nlassert(index < 10);
7710 return _Array[index];
7716 private:
7717 ICDBStructNode *_BranchNode;
7719 ICDBStructNode *_PHRASE;
7720 ICDBStructNode *_SHEET;
7721 ICDBStructNode *_NEXT_COUNTER;
7722 ICDBStructNode *_CYCLE_COUNTER;
7723 TLINK _LINK;
7726 public:
7727 void init(ICDBStructNode *parent);
7729 // accessor to branch node
7730 ICDBStructNode *getCDBNode()
7732 return _BranchNode;
7736 void setPHRASE(CCDBSynchronised &dbGroup, uint16 value, bool forceSending = false)
7740 _setProp(dbGroup, _PHRASE, value, forceSending);
7743 uint16 getPHRASE(const CCDBSynchronised &dbGroup)
7745 uint16 value;
7746 _getProp(dbGroup, _PHRASE, value);
7748 return value;
7751 ICDBStructNode *getPHRASECDBNode()
7753 return _PHRASE;
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);
7768 return value;
7771 ICDBStructNode *getSHEETCDBNode()
7773 return _SHEET;
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)
7785 uint8 value;
7786 _getProp(dbGroup, _NEXT_COUNTER, value);
7788 return 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)
7805 uint8 value;
7806 _getProp(dbGroup, _CYCLE_COUNTER, value);
7808 return value;
7811 ICDBStructNode *getCYCLE_COUNTERCDBNode()
7813 return _CYCLE_COUNTER;
7815 TLINK &getLINK()
7817 return _LINK;
7822 class TCHARACTER_INFO
7824 public:
7826 class TCHARACTERISTICS
7828 public:
7831 private:
7832 ICDBStructNode *_BranchNode;
7834 ICDBStructNode *_VALUE;
7837 public:
7838 void init(ICDBStructNode *parent, uint index);
7840 // accessor to branch node
7841 ICDBStructNode *getCDBNode()
7843 return _BranchNode;
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)
7859 uint16 value;
7860 _getProp(dbGroup, _VALUE, value);
7862 return value;
7865 ICDBStructNode *getVALUECDBNode()
7867 return _VALUE;
7872 class TSCORES
7874 public:
7877 private:
7878 ICDBStructNode *_BranchNode;
7880 ICDBStructNode *_Base;
7881 ICDBStructNode *_Max;
7882 ICDBStructNode *_BaseRegen;
7883 ICDBStructNode *_Regen;
7886 public:
7887 void init(ICDBStructNode *parent, uint index);
7889 // accessor to branch node
7890 ICDBStructNode *getCDBNode()
7892 return _BranchNode;
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)
7908 uint32 value;
7909 _getProp(dbGroup, _Base, value);
7911 return value;
7914 ICDBStructNode *getBaseCDBNode()
7916 return _Base;
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)
7931 uint32 value;
7932 _getProp(dbGroup, _Max, value);
7934 return value;
7937 ICDBStructNode *getMaxCDBNode()
7939 return _Max;
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)
7954 uint32 value;
7955 _getProp(dbGroup, _BaseRegen, value);
7957 return value;
7960 ICDBStructNode *getBaseRegenCDBNode()
7962 return _BaseRegen;
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)
7977 uint32 value;
7978 _getProp(dbGroup, _Regen, value);
7980 return value;
7983 ICDBStructNode *getRegenCDBNode()
7985 return _Regen;
7990 class TMAGIC_RESISTANCE
7992 public:
7994 class TArray
7996 public:
7999 private:
8000 ICDBStructNode *_BranchNode;
8002 ICDBStructNode *_VALUE;
8005 public:
8006 void init(ICDBStructNode *parent, uint index);
8008 // accessor to branch node
8009 ICDBStructNode *getCDBNode()
8011 return _BranchNode;
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)
8027 uint16 value;
8028 _getProp(dbGroup, _VALUE, value);
8030 return value;
8033 ICDBStructNode *getVALUECDBNode()
8035 return _VALUE;
8041 private:
8042 ICDBStructNode *_BranchNode;
8044 ICDBStructNode *_MaxResistanceBonus;
8045 TArray _Array[5];
8048 public:
8049 void init(ICDBStructNode *parent);
8051 // accessor to branch node
8052 ICDBStructNode *getCDBNode()
8054 return _BranchNode;
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)
8070 uint16 value;
8071 _getProp(dbGroup, _MaxResistanceBonus, value);
8073 return value;
8076 ICDBStructNode *getMaxResistanceBonusCDBNode()
8078 return _MaxResistanceBonus;
8080 TArray &getArray(uint32 index)
8082 nlassert(index < 5);
8083 return _Array[index];
8088 class TMAGIC_PROTECTION
8090 public:
8092 class TArray
8094 public:
8097 private:
8098 ICDBStructNode *_BranchNode;
8100 ICDBStructNode *_VALUE;
8103 public:
8104 void init(ICDBStructNode *parent, uint index);
8106 // accessor to branch node
8107 ICDBStructNode *getCDBNode()
8109 return _BranchNode;
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)
8125 uint16 value;
8126 _getProp(dbGroup, _VALUE, value);
8128 return value;
8131 ICDBStructNode *getVALUECDBNode()
8133 return _VALUE;
8139 private:
8140 ICDBStructNode *_BranchNode;
8142 ICDBStructNode *_MaxProtectionClampValue;
8143 ICDBStructNode *_MaxAbsorptionFactor;
8144 TArray _Array[7];
8147 public:
8148 void init(ICDBStructNode *parent);
8150 // accessor to branch node
8151 ICDBStructNode *getCDBNode()
8153 return _BranchNode;
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)
8169 uint16 value;
8170 _getProp(dbGroup, _MaxProtectionClampValue, value);
8172 return 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)
8192 uint16 value;
8193 _getProp(dbGroup, _MaxAbsorptionFactor, value);
8195 return value;
8198 ICDBStructNode *getMaxAbsorptionFactorCDBNode()
8200 return _MaxAbsorptionFactor;
8202 TArray &getArray(uint32 index)
8204 nlassert(index < 7);
8205 return _Array[index];
8210 class TDODGE
8212 public:
8215 private:
8216 ICDBStructNode *_BranchNode;
8218 ICDBStructNode *_Base;
8219 ICDBStructNode *_Current;
8222 public:
8223 void init(ICDBStructNode *parent);
8225 // accessor to branch node
8226 ICDBStructNode *getCDBNode()
8228 return _BranchNode;
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)
8244 uint16 value;
8245 _getProp(dbGroup, _Base, value);
8247 return value;
8250 ICDBStructNode *getBaseCDBNode()
8252 return _Base;
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)
8267 uint16 value;
8268 _getProp(dbGroup, _Current, value);
8270 return value;
8273 ICDBStructNode *getCurrentCDBNode()
8275 return _Current;
8280 class TPARRY
8282 public:
8285 private:
8286 ICDBStructNode *_BranchNode;
8288 ICDBStructNode *_Base;
8289 ICDBStructNode *_Current;
8292 public:
8293 void init(ICDBStructNode *parent);
8295 // accessor to branch node
8296 ICDBStructNode *getCDBNode()
8298 return _BranchNode;
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)
8314 uint16 value;
8315 _getProp(dbGroup, _Base, value);
8317 return value;
8320 ICDBStructNode *getBaseCDBNode()
8322 return _Base;
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)
8337 uint16 value;
8338 _getProp(dbGroup, _Current, value);
8340 return value;
8343 ICDBStructNode *getCurrentCDBNode()
8345 return _Current;
8350 class TSKILLS
8352 public:
8354 class TArray
8356 public:
8359 private:
8360 ICDBStructNode *_BranchNode;
8362 ICDBStructNode *_SKILL;
8363 ICDBStructNode *_BaseSKILL;
8364 ICDBStructNode *_PROGRESS_BAR;
8367 public:
8368 void init(ICDBStructNode *parent, uint index);
8370 // accessor to branch node
8371 ICDBStructNode *getCDBNode()
8373 return _BranchNode;
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)
8389 uint16 value;
8390 _getProp(dbGroup, _SKILL, value);
8392 return value;
8395 ICDBStructNode *getSKILLCDBNode()
8397 return _SKILL;
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)
8412 uint16 value;
8413 _getProp(dbGroup, _BaseSKILL, value);
8415 return value;
8418 ICDBStructNode *getBaseSKILLCDBNode()
8420 return _BaseSKILL;
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)
8432 uint8 value;
8433 _getProp(dbGroup, _PROGRESS_BAR, value);
8435 return value;
8438 ICDBStructNode *getPROGRESS_BARCDBNode()
8440 return _PROGRESS_BAR;
8446 private:
8447 ICDBStructNode *_BranchNode;
8449 TArray _Array[225];
8452 public:
8453 void init(ICDBStructNode *parent);
8455 // accessor to branch node
8456 ICDBStructNode *getCDBNode()
8458 return _BranchNode;
8461 TArray &getArray(uint32 index)
8463 nlassert(index < 225);
8464 return _Array[index];
8469 class TXP_CATALYSER
8471 public:
8474 private:
8475 ICDBStructNode *_BranchNode;
8477 ICDBStructNode *_Level;
8478 ICDBStructNode *_Count;
8481 public:
8482 void init(ICDBStructNode *parent);
8484 // accessor to branch node
8485 ICDBStructNode *getCDBNode()
8487 return _BranchNode;
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)
8503 uint16 value;
8504 _getProp(dbGroup, _Level, value);
8506 return value;
8509 ICDBStructNode *getLevelCDBNode()
8511 return _Level;
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)
8526 uint16 value;
8527 _getProp(dbGroup, _Count, value);
8529 return value;
8532 ICDBStructNode *getCountCDBNode()
8534 return _Count;
8539 class TRING_XP_CATALYSER
8541 public:
8544 private:
8545 ICDBStructNode *_BranchNode;
8547 ICDBStructNode *_Level;
8548 ICDBStructNode *_Count;
8551 public:
8552 void init(ICDBStructNode *parent);
8554 // accessor to branch node
8555 ICDBStructNode *getCDBNode()
8557 return _BranchNode;
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)
8573 uint16 value;
8574 _getProp(dbGroup, _Level, value);
8576 return value;
8579 ICDBStructNode *getLevelCDBNode()
8581 return _Level;
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)
8596 uint16 value;
8597 _getProp(dbGroup, _Count, value);
8599 return value;
8602 ICDBStructNode *getCountCDBNode()
8604 return _Count;
8609 class TPVP_FACTION_TAG
8611 public:
8614 private:
8615 ICDBStructNode *_BranchNode;
8617 ICDBStructNode *_TAG_PVP;
8618 ICDBStructNode *_ACTIVATION_TIME;
8619 ICDBStructNode *_FLAG_PVP_TIME_LEFT;
8620 ICDBStructNode *_COUNTER;
8623 public:
8624 void init(ICDBStructNode *parent);
8626 // accessor to branch node
8627 ICDBStructNode *getCDBNode()
8629 return _BranchNode;
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)
8642 bool value;
8643 _getProp(dbGroup, _TAG_PVP, value);
8645 return value;
8648 ICDBStructNode *getTAG_PVPCDBNode()
8650 return _TAG_PVP;
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)
8662 uint32 value;
8663 _getProp(dbGroup, _ACTIVATION_TIME, value);
8665 return 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)
8682 uint32 value;
8683 _getProp(dbGroup, _FLAG_PVP_TIME_LEFT, value);
8685 return 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)
8702 uint8 value;
8703 _getProp(dbGroup, _COUNTER, value);
8705 return value;
8708 ICDBStructNode *getCOUNTERCDBNode()
8710 return _COUNTER;
8715 class TPVP_OUTPOST
8717 public:
8720 private:
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;
8730 public:
8731 void init(ICDBStructNode *parent);
8733 // accessor to branch node
8734 ICDBStructNode *getCDBNode()
8736 return _BranchNode;
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)
8749 bool value;
8750 _getProp(dbGroup, _FLAG_PVP, value);
8752 return value;
8755 ICDBStructNode *getFLAG_PVPCDBNode()
8757 return _FLAG_PVP;
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)
8769 bool value;
8770 _getProp(dbGroup, _RIGHT_TO_BANISH, value);
8772 return 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)
8789 uint32 value;
8790 _getProp(dbGroup, _ROUND_LVL_CUR, value);
8792 return 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)
8809 uint32 value;
8810 _getProp(dbGroup, _ROUND_END_DATE, value);
8812 return 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)
8829 uint32 value;
8830 _getProp(dbGroup, _FLAG_PVP_TIME_END, value);
8832 return value;
8835 ICDBStructNode *getFLAG_PVP_TIME_ENDCDBNode()
8837 return _FLAG_PVP_TIME_END;
8842 class TSUCCESS_MODIFIER
8844 public:
8846 class TECO
8848 public:
8850 class TArray
8852 public:
8855 private:
8856 ICDBStructNode *_BranchNode;
8858 ICDBStructNode *_FORAGE;
8861 public:
8862 void init(ICDBStructNode *parent, uint index);
8864 // accessor to branch node
8865 ICDBStructNode *getCDBNode()
8867 return _BranchNode;
8871 void setFORAGE(CCDBSynchronised &dbGroup, sint16 value, bool forceSending = false)
8875 _setProp(dbGroup, _FORAGE, value, forceSending);
8878 sint16 getFORAGE(const CCDBSynchronised &dbGroup)
8880 sint16 value;
8881 _getProp(dbGroup, _FORAGE, value);
8883 return value;
8886 ICDBStructNode *getFORAGECDBNode()
8888 return _FORAGE;
8894 private:
8895 ICDBStructNode *_BranchNode;
8897 TArray _Array[7];
8900 public:
8901 void init(ICDBStructNode *parent);
8903 // accessor to branch node
8904 ICDBStructNode *getCDBNode()
8906 return _BranchNode;
8909 TArray &getArray(uint32 index)
8911 nlassert(index < 7);
8912 return _Array[index];
8918 private:
8919 ICDBStructNode *_BranchNode;
8921 ICDBStructNode *_DODGE;
8922 ICDBStructNode *_PARRY;
8923 ICDBStructNode *_CRAFT;
8924 ICDBStructNode *_MELEE;
8925 ICDBStructNode *_RANGE;
8926 ICDBStructNode *_MAGIC;
8927 TECO _ECO;
8930 public:
8931 void init(ICDBStructNode *parent);
8933 // accessor to branch node
8934 ICDBStructNode *getCDBNode()
8936 return _BranchNode;
8940 void setDODGE(CCDBSynchronised &dbGroup, sint16 value, bool forceSending = false)
8944 _setProp(dbGroup, _DODGE, value, forceSending);
8947 sint16 getDODGE(const CCDBSynchronised &dbGroup)
8949 sint16 value;
8950 _getProp(dbGroup, _DODGE, value);
8952 return value;
8955 ICDBStructNode *getDODGECDBNode()
8957 return _DODGE;
8960 void setPARRY(CCDBSynchronised &dbGroup, sint16 value, bool forceSending = false)
8964 _setProp(dbGroup, _PARRY, value, forceSending);
8967 sint16 getPARRY(const CCDBSynchronised &dbGroup)
8969 sint16 value;
8970 _getProp(dbGroup, _PARRY, value);
8972 return value;
8975 ICDBStructNode *getPARRYCDBNode()
8977 return _PARRY;
8980 void setCRAFT(CCDBSynchronised &dbGroup, sint16 value, bool forceSending = false)
8984 _setProp(dbGroup, _CRAFT, value, forceSending);
8987 sint16 getCRAFT(const CCDBSynchronised &dbGroup)
8989 sint16 value;
8990 _getProp(dbGroup, _CRAFT, value);
8992 return value;
8995 ICDBStructNode *getCRAFTCDBNode()
8997 return _CRAFT;
9000 void setMELEE(CCDBSynchronised &dbGroup, sint16 value, bool forceSending = false)
9004 _setProp(dbGroup, _MELEE, value, forceSending);
9007 sint16 getMELEE(const CCDBSynchronised &dbGroup)
9009 sint16 value;
9010 _getProp(dbGroup, _MELEE, value);
9012 return value;
9015 ICDBStructNode *getMELEECDBNode()
9017 return _MELEE;
9020 void setRANGE(CCDBSynchronised &dbGroup, sint16 value, bool forceSending = false)
9024 _setProp(dbGroup, _RANGE, value, forceSending);
9027 sint16 getRANGE(const CCDBSynchronised &dbGroup)
9029 sint16 value;
9030 _getProp(dbGroup, _RANGE, value);
9032 return value;
9035 ICDBStructNode *getRANGECDBNode()
9037 return _RANGE;
9040 void setMAGIC(CCDBSynchronised &dbGroup, sint16 value, bool forceSending = false)
9044 _setProp(dbGroup, _MAGIC, value, forceSending);
9047 sint16 getMAGIC(const CCDBSynchronised &dbGroup)
9049 sint16 value;
9050 _getProp(dbGroup, _MAGIC, value);
9052 return value;
9055 ICDBStructNode *getMAGICCDBNode()
9057 return _MAGIC;
9059 TECO &getECO()
9061 return _ECO;
9067 private:
9068 ICDBStructNode *_BranchNode;
9070 TCHARACTERISTICS _CHARACTERISTICS[8];
9071 TSCORES _SCORES[4];
9072 TMAGIC_RESISTANCE _MAGIC_RESISTANCE;
9073 TMAGIC_PROTECTION _MAGIC_PROTECTION;
9074 TDODGE _DODGE;
9075 TPARRY _PARRY;
9076 TSKILLS _SKILLS;
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;
9084 public:
9085 void init(ICDBStructNode *parent);
9087 // accessor to branch node
9088 ICDBStructNode *getCDBNode()
9090 return _BranchNode;
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;
9111 TDODGE &getDODGE()
9113 return _DODGE;
9115 TPARRY &getPARRY()
9117 return _PARRY;
9119 TSKILLS &getSKILLS()
9121 return _SKILLS;
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;
9146 class TPACK_ANIMAL
9148 public:
9150 class TBEAST
9152 public:
9155 private:
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;
9169 public:
9170 void init(ICDBStructNode *parent, uint index);
9172 // accessor to branch node
9173 ICDBStructNode *getCDBNode()
9175 return _BranchNode;
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)
9191 uint32 value;
9192 _getProp(dbGroup, _UID, value);
9194 return value;
9197 ICDBStructNode *getUIDCDBNode()
9199 return _UID;
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)
9214 uint8 value;
9215 _getProp(dbGroup, _TYPE, value);
9217 return value;
9220 ICDBStructNode *getTYPECDBNode()
9222 return _TYPE;
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)
9237 uint8 value;
9238 _getProp(dbGroup, _STATUS, value);
9240 return value;
9243 ICDBStructNode *getSTATUSCDBNode()
9245 return _STATUS;
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)
9260 uint8 value;
9261 _getProp(dbGroup, _HP, value);
9263 return value;
9266 ICDBStructNode *getHPCDBNode()
9268 return _HP;
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)
9280 uint32 value;
9281 _getProp(dbGroup, _BULK_MAX, value);
9283 return value;
9286 ICDBStructNode *getBULK_MAXCDBNode()
9288 return _BULK_MAX;
9291 void setPOS(CCDBSynchronised &dbGroup, uint64 value, bool forceSending = false)
9295 _setProp(dbGroup, _POS, value, forceSending);
9298 uint64 getPOS(const CCDBSynchronised &dbGroup)
9300 uint64 value;
9301 _getProp(dbGroup, _POS, value);
9303 return value;
9306 ICDBStructNode *getPOSCDBNode()
9308 return _POS;
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)
9323 uint8 value;
9324 _getProp(dbGroup, _HUNGER, value);
9326 return value;
9329 ICDBStructNode *getHUNGERCDBNode()
9331 return _HUNGER;
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)
9346 uint8 value;
9347 _getProp(dbGroup, _DESPAWN, value);
9349 return value;
9352 ICDBStructNode *getDESPAWNCDBNode()
9354 return _DESPAWN;
9357 void setNAME(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
9361 _setProp(dbGroup, _NAME, value, forceSending);
9364 uint32 getNAME(const CCDBSynchronised &dbGroup)
9366 uint32 value;
9367 _getProp(dbGroup, _NAME, value);
9369 return value;
9372 ICDBStructNode *getNAMECDBNode()
9374 return _NAME;
9380 private:
9381 ICDBStructNode *_BranchNode;
9383 TBEAST _BEAST[7];
9386 public:
9387 void init(ICDBStructNode *parent);
9389 // accessor to branch node
9390 ICDBStructNode *getCDBNode()
9392 return _BranchNode;
9395 TBEAST &getBEAST(uint32 index)
9397 nlassert(index < 7);
9398 return _BEAST[index];
9403 class TDEBUG_INFO
9405 public:
9408 private:
9409 ICDBStructNode *_BranchNode;
9411 ICDBStructNode *_Ping;
9414 public:
9415 void init(ICDBStructNode *parent);
9417 // accessor to branch node
9418 ICDBStructNode *getCDBNode()
9420 return _BranchNode;
9424 void setPing(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
9428 _setProp(dbGroup, _Ping, value, forceSending);
9431 uint32 getPing(const CCDBSynchronised &dbGroup)
9433 uint32 value;
9434 _getProp(dbGroup, _Ping, value);
9436 return value;
9439 ICDBStructNode *getPingCDBNode()
9441 return _Ping;
9446 class TMP_EVAL
9448 public:
9450 class TRESULT
9452 public:
9455 private:
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;
9466 public:
9467 void init(ICDBStructNode *parent);
9469 // accessor to branch node
9470 ICDBStructNode *getCDBNode()
9472 return _BranchNode;
9476 void setVALID(CCDBSynchronised &dbGroup, bool value, bool forceSending = false)
9480 _setProp(dbGroup, _VALID, value, forceSending);
9483 bool getVALID(const CCDBSynchronised &dbGroup)
9485 bool value;
9486 _getProp(dbGroup, _VALID, value);
9488 return value;
9491 ICDBStructNode *getVALIDCDBNode()
9493 return _VALID;
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)
9505 uint32 value;
9506 _getProp(dbGroup, _SMALL_SEED, value);
9508 return value;
9511 ICDBStructNode *getSMALL_SEEDCDBNode()
9513 return _SMALL_SEED;
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)
9525 uint32 value;
9526 _getProp(dbGroup, _MEDIUM_SEED, value);
9528 return 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)
9545 uint32 value;
9546 _getProp(dbGroup, _BIG_SEED, value);
9548 return value;
9551 ICDBStructNode *getBIG_SEEDCDBNode()
9553 return _BIG_SEED;
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)
9565 uint32 value;
9566 _getProp(dbGroup, _VERY_BIG_SEED, value);
9568 return 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)
9585 uint32 value;
9586 _getProp(dbGroup, _EXPIRY_DATE, value);
9588 return value;
9591 ICDBStructNode *getEXPIRY_DATECDBNode()
9593 return _EXPIRY_DATE;
9598 class TRESULT_CRITICAL
9600 public:
9603 private:
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;
9614 public:
9615 void init(ICDBStructNode *parent);
9617 // accessor to branch node
9618 ICDBStructNode *getCDBNode()
9620 return _BranchNode;
9624 void setVALID(CCDBSynchronised &dbGroup, bool value, bool forceSending = false)
9628 _setProp(dbGroup, _VALID, value, forceSending);
9631 bool getVALID(const CCDBSynchronised &dbGroup)
9633 bool value;
9634 _getProp(dbGroup, _VALID, value);
9636 return value;
9639 ICDBStructNode *getVALIDCDBNode()
9641 return _VALID;
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)
9653 uint32 value;
9654 _getProp(dbGroup, _SMALL_SEED, value);
9656 return value;
9659 ICDBStructNode *getSMALL_SEEDCDBNode()
9661 return _SMALL_SEED;
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)
9673 uint32 value;
9674 _getProp(dbGroup, _MEDIUM_SEED, value);
9676 return 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)
9693 uint32 value;
9694 _getProp(dbGroup, _BIG_SEED, value);
9696 return value;
9699 ICDBStructNode *getBIG_SEEDCDBNode()
9701 return _BIG_SEED;
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)
9713 uint32 value;
9714 _getProp(dbGroup, _VERY_BIG_SEED, value);
9716 return 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)
9733 uint32 value;
9734 _getProp(dbGroup, _EXPIRY_DATE, value);
9736 return value;
9739 ICDBStructNode *getEXPIRY_DATECDBNode()
9741 return _EXPIRY_DATE;
9747 private:
9748 ICDBStructNode *_BranchNode;
9750 ICDBStructNode *_COST;
9751 TRESULT _RESULT;
9752 TRESULT_CRITICAL _RESULT_CRITICAL;
9755 public:
9756 void init(ICDBStructNode *parent);
9758 // accessor to branch node
9759 ICDBStructNode *getCDBNode()
9761 return _BranchNode;
9765 void setCOST(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
9769 _setProp(dbGroup, _COST, value, forceSending);
9772 uint32 getCOST(const CCDBSynchronised &dbGroup)
9774 uint32 value;
9775 _getProp(dbGroup, _COST, value);
9777 return value;
9780 ICDBStructNode *getCOSTCDBNode()
9782 return _COST;
9784 TRESULT &getRESULT()
9786 return _RESULT;
9788 TRESULT_CRITICAL &getRESULT_CRITICAL()
9790 return _RESULT_CRITICAL;
9795 class TCOMPASS
9797 public:
9800 private:
9801 ICDBStructNode *_BranchNode;
9803 ICDBStructNode *_HOME_POINT;
9804 ICDBStructNode *_BIND_POINT;
9805 ICDBStructNode *_TARGET;
9808 public:
9809 void init(ICDBStructNode *parent);
9811 // accessor to branch node
9812 ICDBStructNode *getCDBNode()
9814 return _BranchNode;
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)
9827 uint64 value;
9828 _getProp(dbGroup, _HOME_POINT, value);
9830 return value;
9833 ICDBStructNode *getHOME_POINTCDBNode()
9835 return _HOME_POINT;
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)
9847 uint64 value;
9848 _getProp(dbGroup, _BIND_POINT, value);
9850 return value;
9853 ICDBStructNode *getBIND_POINTCDBNode()
9855 return _BIND_POINT;
9858 void setTARGET(CCDBSynchronised &dbGroup, uint64 value, bool forceSending = false)
9862 _setProp(dbGroup, _TARGET, value, forceSending);
9865 uint64 getTARGET(const CCDBSynchronised &dbGroup)
9867 uint64 value;
9868 _getProp(dbGroup, _TARGET, value);
9870 return value;
9873 ICDBStructNode *getTARGETCDBNode()
9875 return _TARGET;
9880 class TFAME
9882 public:
9884 class TPLAYER
9886 public:
9889 private:
9890 ICDBStructNode *_BranchNode;
9892 ICDBStructNode *_VALUE;
9893 ICDBStructNode *_THRESHOLD;
9894 ICDBStructNode *_TREND;
9897 public:
9898 void init(ICDBStructNode *parent, uint index);
9900 // accessor to branch node
9901 ICDBStructNode *getCDBNode()
9903 return _BranchNode;
9907 void setVALUE(CCDBSynchronised &dbGroup, sint8 value, bool forceSending = false)
9911 _setProp(dbGroup, _VALUE, value, forceSending);
9914 sint8 getVALUE(const CCDBSynchronised &dbGroup)
9916 sint8 value;
9917 _getProp(dbGroup, _VALUE, value);
9919 return value;
9922 ICDBStructNode *getVALUECDBNode()
9924 return _VALUE;
9927 void setTHRESHOLD(CCDBSynchronised &dbGroup, sint8 value, bool forceSending = false)
9931 _setProp(dbGroup, _THRESHOLD, value, forceSending);
9934 sint8 getTHRESHOLD(const CCDBSynchronised &dbGroup)
9936 sint8 value;
9937 _getProp(dbGroup, _THRESHOLD, value);
9939 return value;
9942 ICDBStructNode *getTHRESHOLDCDBNode()
9944 return _THRESHOLD;
9947 void setTREND(CCDBSynchronised &dbGroup, uint8 value, bool forceSending = false)
9951 _setProp(dbGroup, _TREND, value, forceSending);
9954 uint8 getTREND(const CCDBSynchronised &dbGroup)
9956 uint8 value;
9957 _getProp(dbGroup, _TREND, value);
9959 return value;
9962 ICDBStructNode *getTRENDCDBNode()
9964 return _TREND;
9969 class TTRIBE
9971 public:
9974 private:
9975 ICDBStructNode *_BranchNode;
9977 ICDBStructNode *_VALUE;
9978 ICDBStructNode *_THRESHOLD;
9979 ICDBStructNode *_TREND;
9982 public:
9983 void init(ICDBStructNode *parent, uint index);
9985 // accessor to branch node
9986 ICDBStructNode *getCDBNode()
9988 return _BranchNode;
9992 void setVALUE(CCDBSynchronised &dbGroup, sint8 value, bool forceSending = false)
9996 _setProp(dbGroup, _VALUE, value, forceSending);
9999 sint8 getVALUE(const CCDBSynchronised &dbGroup)
10001 sint8 value;
10002 _getProp(dbGroup, _VALUE, value);
10004 return value;
10007 ICDBStructNode *getVALUECDBNode()
10009 return _VALUE;
10012 void setTHRESHOLD(CCDBSynchronised &dbGroup, sint8 value, bool forceSending = false)
10016 _setProp(dbGroup, _THRESHOLD, value, forceSending);
10019 sint8 getTHRESHOLD(const CCDBSynchronised &dbGroup)
10021 sint8 value;
10022 _getProp(dbGroup, _THRESHOLD, value);
10024 return value;
10027 ICDBStructNode *getTHRESHOLDCDBNode()
10029 return _THRESHOLD;
10032 void setTREND(CCDBSynchronised &dbGroup, uint8 value, bool forceSending = false)
10036 _setProp(dbGroup, _TREND, value, forceSending);
10039 uint8 getTREND(const CCDBSynchronised &dbGroup)
10041 uint8 value;
10042 _getProp(dbGroup, _TREND, value);
10044 return value;
10047 ICDBStructNode *getTRENDCDBNode()
10049 return _TREND;
10055 private:
10056 ICDBStructNode *_BranchNode;
10058 ICDBStructNode *_CULT_ALLEGIANCE;
10059 ICDBStructNode *_CIV_ALLEGIANCE;
10060 ICDBStructNode *_THRESHOLD_TRADE;
10061 ICDBStructNode *_THRESHOLD_KOS;
10062 TPLAYER _PLAYER[7];
10063 TTRIBE _TRIBE[53];
10066 public:
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)
10088 uint8 value;
10089 _getProp(dbGroup, _CULT_ALLEGIANCE, value);
10091 return 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)
10111 uint8 value;
10112 _getProp(dbGroup, _CIV_ALLEGIANCE, value);
10114 return 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)
10131 sint8 value;
10132 _getProp(dbGroup, _THRESHOLD_TRADE, value);
10134 return 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)
10151 sint8 value;
10152 _getProp(dbGroup, _THRESHOLD_KOS, value);
10154 return 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];
10174 class TSTATIC_DATA
10176 public:
10179 private:
10180 ICDBStructNode *_BranchNode;
10182 ICDBStructNode *_BAG_BULK_MAX;
10185 public:
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)
10204 uint32 value;
10205 _getProp(dbGroup, _BAG_BULK_MAX, value);
10207 return value;
10210 ICDBStructNode *getBAG_BULK_MAXCDBNode()
10212 return _BAG_BULK_MAX;
10217 class TDYN_CHAT
10219 public:
10221 class TCHANNEL
10223 public:
10226 private:
10227 ICDBStructNode *_BranchNode;
10229 ICDBStructNode *_NAME;
10230 ICDBStructNode *_ID;
10231 ICDBStructNode *_WRITE_RIGHT;
10234 public:
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)
10253 uint32 value;
10254 _getProp(dbGroup, _NAME, value);
10256 return value;
10259 ICDBStructNode *getNAMECDBNode()
10261 return _NAME;
10264 void setID(CCDBSynchronised &dbGroup, uint64 value, bool forceSending = false)
10268 _setProp(dbGroup, _ID, value, forceSending);
10271 uint64 getID(const CCDBSynchronised &dbGroup)
10273 uint64 value;
10274 _getProp(dbGroup, _ID, value);
10276 return value;
10279 ICDBStructNode *getIDCDBNode()
10281 return _ID;
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)
10293 bool value;
10294 _getProp(dbGroup, _WRITE_RIGHT, value);
10296 return value;
10299 ICDBStructNode *getWRITE_RIGHTCDBNode()
10301 return _WRITE_RIGHT;
10307 private:
10308 ICDBStructNode *_BranchNode;
10310 TCHANNEL _CHANNEL[8];
10313 public:
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];
10330 class TPVP_EFFECTS
10332 public:
10334 class TPVP_FACTION_POINTS
10336 public:
10339 private:
10340 ICDBStructNode *_BranchNode;
10342 ICDBStructNode *_CIV;
10343 ICDBStructNode *_CIV_POINTS;
10344 ICDBStructNode *_CULT;
10345 ICDBStructNode *_CULT_POINTS;
10348 public:
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)
10367 uint8 value;
10368 _getProp(dbGroup, _CIV, value);
10370 return value;
10373 ICDBStructNode *getCIVCDBNode()
10375 return _CIV;
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)
10387 uint32 value;
10388 _getProp(dbGroup, _CIV_POINTS, value);
10390 return 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)
10407 uint8 value;
10408 _getProp(dbGroup, _CULT, value);
10410 return value;
10413 ICDBStructNode *getCULTCDBNode()
10415 return _CULT;
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)
10427 uint32 value;
10428 _getProp(dbGroup, _CULT_POINTS, value);
10430 return value;
10433 ICDBStructNode *getCULT_POINTSCDBNode()
10435 return _CULT_POINTS;
10440 class TArray
10442 public:
10445 private:
10446 ICDBStructNode *_BranchNode;
10448 ICDBStructNode *_ID;
10449 ICDBStructNode *_ISBONUS;
10450 ICDBStructNode *_PARAM;
10453 public:
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)
10472 uint32 value;
10473 _getProp(dbGroup, _ID, value);
10475 return value;
10478 ICDBStructNode *getIDCDBNode()
10480 return _ID;
10483 void setISBONUS(CCDBSynchronised &dbGroup, bool value, bool forceSending = false)
10487 _setProp(dbGroup, _ISBONUS, value, forceSending);
10490 bool getISBONUS(const CCDBSynchronised &dbGroup)
10492 bool value;
10493 _getProp(dbGroup, _ISBONUS, value);
10495 return value;
10498 ICDBStructNode *getISBONUSCDBNode()
10500 return _ISBONUS;
10503 void setPARAM(CCDBSynchronised &dbGroup, uint32 value, bool forceSending = false)
10507 _setProp(dbGroup, _PARAM, value, forceSending);
10510 uint32 getPARAM(const CCDBSynchronised &dbGroup)
10512 uint32 value;
10513 _getProp(dbGroup, _PARAM, value);
10515 return value;
10518 ICDBStructNode *getPARAMCDBNode()
10520 return _PARAM;
10526 private:
10527 ICDBStructNode *_BranchNode;
10529 TPVP_FACTION_POINTS _PVP_FACTION_POINTS;
10530 TArray _Array[59];
10533 public:
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];
10554 class TWEATHER
10556 public:
10559 private:
10560 ICDBStructNode *_BranchNode;
10562 ICDBStructNode *_VALUE;
10565 public:
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)
10584 uint16 value;
10585 _getProp(dbGroup, _VALUE, value);
10587 return value;
10590 ICDBStructNode *getVALUECDBNode()
10592 return _VALUE;
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;
10658 public:
10660 // Constructor
10661 CBankAccessor_PLR()
10663 // make sure the static tree is initialised (some kind of lazy initialisation)
10664 init();
10666 // init the base class
10667 CCDBSynchronised::init(BankTag);
10671 static void init();
10673 static TGameTime &getGameTime()
10675 return _GameTime;
10677 static TINTERFACES &getINTERFACES()
10679 return _INTERFACES;
10681 static TUSER &getUSER()
10683 return _USER;
10685 static TDEFENSE &getDEFENSE()
10687 return _DEFENSE;
10689 static TFLAGS &getFLAGS()
10691 return _FLAGS;
10693 static TTARGET &getTARGET()
10695 return _TARGET;
10697 static TGROUP &getGROUP()
10699 return _GROUP;
10701 static TDM_GIFT &getDM_GIFT()
10703 return _DM_GIFT;
10705 static TEXCHANGE &getEXCHANGE()
10707 return _EXCHANGE;
10709 static TINVENTORY &getINVENTORY()
10711 return _INVENTORY;
10713 static TMODIFIERS &getMODIFIERS()
10715 return _MODIFIERS;
10717 static TDISABLE_CONSUMABLE &getDISABLE_CONSUMABLE()
10719 return _DISABLE_CONSUMABLE;
10721 static TBOTCHAT &getBOTCHAT()
10723 return _BOTCHAT;
10725 static TASCENSOR &getASCENSOR()
10727 return _ASCENSOR;
10729 static TCHOOSE_MISSIONS &getCHOOSE_MISSIONS()
10731 return _CHOOSE_MISSIONS;
10733 static TTRADING &getTRADING()
10735 return _TRADING;
10737 static TBRICK_FAMILY &getBRICK_FAMILY()
10739 return _BRICK_FAMILY;
10741 static TFABER_PLANS &getFABER_PLANS()
10743 return _FABER_PLANS;
10745 static TMISSIONS &getMISSIONS()
10747 return _MISSIONS;
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()
10767 return _MP_EVAL;
10769 static TCOMPASS &getCOMPASS()
10771 return _COMPASS;
10773 static TFAME &getFAME()
10775 return _FAME;
10777 static TSTATIC_DATA &getSTATIC_DATA()
10779 return _STATIC_DATA;
10781 static TDYN_CHAT &getDYN_CHAT()
10783 return _DYN_CHAT;
10785 static TPVP_EFFECTS &getPVP_EFFECTS()
10787 return _PVP_EFFECTS;
10789 static TWEATHER &getWEATHER()
10791 return _WEATHER;
10798 #endif // INCLUDED_DATABASE_database_PLR_H