2 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
3 // Copyright (C) 2010 Winch Gate Property Limited
5 // This program is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU Affero General Public License as
7 // published by the Free Software Foundation, either version 3 of the
8 // License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Affero General Public License for more details.
15 // You should have received a copy of the GNU Affero General Public License
16 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 /////////////////////////////////////////////////////////////////
19 // WARNING : this is a generated file, don't change it !
20 /////////////////////////////////////////////////////////////////
23 #include "database_guild.h"
27 TCDBBank
CBankAccessor_GUILD::BankTag
;
29 CBankAccessor_GUILD::TGUILD
CBankAccessor_GUILD::_GUILD
;
31 void CBankAccessor_GUILD::init()
33 static bool inited
= false;
36 // retreive the bank structure
37 CCDBStructBanks
*bank
= CCDBStructBanks::instance();
38 BankTag
= CCDBStructBanks::readBankName("GUILD");
44 node
= bank
->getICDBStructNodeFromName( BankTag
, "GUILD" );
45 nlassert(node
!= NULL
);
46 // call sub branch init
54 void CBankAccessor_GUILD::TGUILD::init(ICDBStructNode
*parent
)
56 ICDBStructNode
*node
= parent
;
62 node
= parent
->getNode( ICDBStructNode::CTextId("COUNTER"), false );
63 nlassert(node
!= NULL
);
66 node
= parent
->getNode( ICDBStructNode::CTextId("PROXY"), false );
67 nlassert(node
!= NULL
);
70 node
= parent
->getNode( ICDBStructNode::CTextId("NAME"), false );
71 nlassert(node
!= NULL
);
74 node
= parent
->getNode( ICDBStructNode::CTextId("DESCRIPTION"), false );
75 nlassert(node
!= NULL
);
78 node
= parent
->getNode( ICDBStructNode::CTextId("ICON"), false );
79 nlassert(node
!= NULL
);
82 node
= parent
->getNode( ICDBStructNode::CTextId("XP"), false );
83 nlassert(node
!= NULL
);
86 node
= parent
->getNode( ICDBStructNode::CTextId("CHARGE_POINTS"), false );
87 nlassert(node
!= NULL
);
88 _CHARGE_POINTS
= node
;
90 node
= parent
->getNode( ICDBStructNode::CTextId("VILLAGE"), false );
91 nlassert(node
!= NULL
);
94 node
= parent
->getNode( ICDBStructNode::CTextId("PEOPLE"), false );
95 nlassert(node
!= NULL
);
98 node
= parent
->getNode( ICDBStructNode::CTextId("CREATION_DATE"), false );
99 nlassert(node
!= NULL
);
100 _CREATION_DATE
= node
;
105 node
= parent
->getNode( ICDBStructNode::CTextId("FAME"), false );
106 nlassert(node
!= NULL
);
109 node
= parent
->getNode( ICDBStructNode::CTextId("MEMBERS"), false );
110 nlassert(node
!= NULL
);
113 node
= parent
->getNode( ICDBStructNode::CTextId("INVENTORY"), false );
114 nlassert(node
!= NULL
);
115 _INVENTORY
.init(node
);
117 node
= parent
->getNode( ICDBStructNode::CTextId("OUTPOST"), false );
118 nlassert(node
!= NULL
);
124 void CBankAccessor_GUILD::TGUILD::TFAME::init(ICDBStructNode
*parent
)
126 ICDBStructNode
*node
= parent
;
132 node
= parent
->getNode( ICDBStructNode::CTextId("CULT_ALLEGIANCE"), false );
133 nlassert(node
!= NULL
);
134 _CULT_ALLEGIANCE
= node
;
136 node
= parent
->getNode( ICDBStructNode::CTextId("CIV_ALLEGIANCE"), false );
137 nlassert(node
!= NULL
);
138 _CIV_ALLEGIANCE
= node
;
143 for (uint i
=0; i
<7; ++i
)
145 node
= parent
->getNode( ICDBStructNode::CTextId(NLMISC::toString("%u", i
)), false );
146 nlassert(node
!= NULL
);
147 _Array
[i
].init(node
, i
);
153 void CBankAccessor_GUILD::TGUILD::TFAME::TArray::init(ICDBStructNode
*parent
, uint index
)
155 ICDBStructNode
*node
= parent
;
161 node
= parent
->getNode( ICDBStructNode::CTextId("VALUE"), false );
162 nlassert(node
!= NULL
);
165 node
= parent
->getNode( ICDBStructNode::CTextId("THRESHOLD"), false );
166 nlassert(node
!= NULL
);
169 node
= parent
->getNode( ICDBStructNode::CTextId("TREND"), false );
170 nlassert(node
!= NULL
);
179 void CBankAccessor_GUILD::TGUILD::TMEMBERS::init(ICDBStructNode
*parent
)
181 ICDBStructNode
*node
= parent
;
190 for (uint i
=0; i
<256; ++i
)
192 node
= parent
->getNode( ICDBStructNode::CTextId(NLMISC::toString("%u", i
)), false );
193 nlassert(node
!= NULL
);
194 _Array
[i
].init(node
, i
);
200 void CBankAccessor_GUILD::TGUILD::TMEMBERS::TArray::init(ICDBStructNode
*parent
, uint index
)
202 ICDBStructNode
*node
= parent
;
208 node
= parent
->getNode( ICDBStructNode::CTextId("NAME"), false );
209 nlassert(node
!= NULL
);
212 node
= parent
->getNode( ICDBStructNode::CTextId("GRADE"), false );
213 nlassert(node
!= NULL
);
216 node
= parent
->getNode( ICDBStructNode::CTextId("ONLINE"), false );
217 nlassert(node
!= NULL
);
220 node
= parent
->getNode( ICDBStructNode::CTextId("ENTER_DATE"), false );
221 nlassert(node
!= NULL
);
230 void CBankAccessor_GUILD::TGUILD::TINVENTORY::init(ICDBStructNode
*parent
)
232 ICDBStructNode
*node
= parent
;
238 node
= parent
->getNode( ICDBStructNode::CTextId("SESSION"), false );
239 nlassert(node
!= NULL
);
242 node
= parent
->getNode( ICDBStructNode::CTextId("BULK_MAX"), false );
243 nlassert(node
!= NULL
);
246 node
= parent
->getNode( ICDBStructNode::CTextId("MONEY"), false );
247 nlassert(node
!= NULL
);
256 void CBankAccessor_GUILD::TGUILD::TOUTPOST::init(ICDBStructNode
*parent
)
258 ICDBStructNode
*node
= parent
;
264 node
= parent
->getNode( ICDBStructNode::CTextId("CANDEL"), false );
265 nlassert(node
!= NULL
);
271 for (uint i
=0; i
<16; ++i
)
273 node
= parent
->getNode( ICDBStructNode::CTextId(NLMISC::toString("O%u", i
)), false );
274 nlassert(node
!= NULL
);
281 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::init(ICDBStructNode
*parent
, uint index
)
283 ICDBStructNode
*node
= parent
;
289 node
= parent
->getNode( ICDBStructNode::CTextId("OWNED"), false );
290 nlassert(node
!= NULL
);
293 node
= parent
->getNode( ICDBStructNode::CTextId("SHEET"), false );
294 nlassert(node
!= NULL
);
297 node
= parent
->getNode( ICDBStructNode::CTextId("LEVEL"), false );
298 nlassert(node
!= NULL
);
301 node
= parent
->getNode( ICDBStructNode::CTextId("STATUS"), false );
302 nlassert(node
!= NULL
);
305 node
= parent
->getNode( ICDBStructNode::CTextId("STATE_END_DATE"), false );
306 nlassert(node
!= NULL
);
307 _STATE_END_DATE
= node
;
309 node
= parent
->getNode( ICDBStructNode::CTextId("DISPLAY_CRASH"), false );
310 nlassert(node
!= NULL
);
311 _DISPLAY_CRASH
= node
;
313 node
= parent
->getNode( ICDBStructNode::CTextId("WARCOST"), false );
314 nlassert(node
!= NULL
);
317 node
= parent
->getNode( ICDBStructNode::CTextId("ROUND_LVL_THRESHOLD"), false );
318 nlassert(node
!= NULL
);
319 _ROUND_LVL_THRESHOLD
= node
;
321 node
= parent
->getNode( ICDBStructNode::CTextId("ROUND_LVL_MAX_ATT"), false );
322 nlassert(node
!= NULL
);
323 _ROUND_LVL_MAX_ATT
= node
;
325 node
= parent
->getNode( ICDBStructNode::CTextId("ROUND_LVL_MAX_DEF"), false );
326 nlassert(node
!= NULL
);
327 _ROUND_LVL_MAX_DEF
= node
;
329 node
= parent
->getNode( ICDBStructNode::CTextId("ROUND_LVL_CUR"), false );
330 nlassert(node
!= NULL
);
331 _ROUND_LVL_CUR
= node
;
333 node
= parent
->getNode( ICDBStructNode::CTextId("ROUND_ID_CUR"), false );
334 nlassert(node
!= NULL
);
335 _ROUND_ID_CUR
= node
;
337 node
= parent
->getNode( ICDBStructNode::CTextId("ROUND_ID_MAX"), false );
338 nlassert(node
!= NULL
);
339 _ROUND_ID_MAX
= node
;
341 node
= parent
->getNode( ICDBStructNode::CTextId("TIME_RANGE_DEF_WANTED"), false );
342 nlassert(node
!= NULL
);
343 _TIME_RANGE_DEF_WANTED
= node
;
345 node
= parent
->getNode( ICDBStructNode::CTextId("TIME_RANGE_DEF"), false );
346 nlassert(node
!= NULL
);
347 _TIME_RANGE_DEF
= node
;
349 node
= parent
->getNode( ICDBStructNode::CTextId("TIME_RANGE_ATT"), false );
350 nlassert(node
!= NULL
);
351 _TIME_RANGE_ATT
= node
;
353 node
= parent
->getNode( ICDBStructNode::CTextId("TIME_RANGE_LENGTH"), false );
354 nlassert(node
!= NULL
);
355 _TIME_RANGE_LENGTH
= node
;
357 node
= parent
->getNode( ICDBStructNode::CTextId("SQUAD_CAPITAL"), false );
358 nlassert(node
!= NULL
);
359 _SQUAD_CAPITAL
= node
;
364 node
= parent
->getNode( ICDBStructNode::CTextId("GUILD"), false );
365 nlassert(node
!= NULL
);
368 node
= parent
->getNode( ICDBStructNode::CTextId("SQUAD_SPAWN_ZONE"), false );
369 nlassert(node
!= NULL
);
370 _SQUAD_SPAWN_ZONE
.init(node
);
372 node
= parent
->getNode( ICDBStructNode::CTextId("SQUAD_SHOP"), false );
373 nlassert(node
!= NULL
);
374 _SQUAD_SHOP
.init(node
);
376 node
= parent
->getNode( ICDBStructNode::CTextId("SQUADS"), false );
377 nlassert(node
!= NULL
);
380 node
= parent
->getNode( ICDBStructNode::CTextId("BUILDINGS"), false );
381 nlassert(node
!= NULL
);
382 _BUILDINGS
.init(node
);
387 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::TGUILD::init(ICDBStructNode
*parent
)
389 ICDBStructNode
*node
= parent
;
395 node
= parent
->getNode( ICDBStructNode::CTextId("NAME"), false );
396 nlassert(node
!= NULL
);
399 node
= parent
->getNode( ICDBStructNode::CTextId("ICON"), false );
400 nlassert(node
!= NULL
);
403 node
= parent
->getNode( ICDBStructNode::CTextId("TRIBE"), false );
404 nlassert(node
!= NULL
);
407 node
= parent
->getNode( ICDBStructNode::CTextId("NAME_ATT"), false );
408 nlassert(node
!= NULL
);
417 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::TSQUAD_SPAWN_ZONE::init(ICDBStructNode
*parent
)
419 ICDBStructNode
*node
= parent
;
428 for (uint i
=0; i
<16; ++i
)
430 node
= parent
->getNode( ICDBStructNode::CTextId(NLMISC::toString("%u", i
)), false );
431 nlassert(node
!= NULL
);
432 _Array
[i
].init(node
, i
);
438 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::TSQUAD_SPAWN_ZONE::TArray::init(ICDBStructNode
*parent
, uint index
)
440 ICDBStructNode
*node
= parent
;
446 node
= parent
->getNode( ICDBStructNode::CTextId("X"), false );
447 nlassert(node
!= NULL
);
450 node
= parent
->getNode( ICDBStructNode::CTextId("Y"), false );
451 nlassert(node
!= NULL
);
460 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::TSQUAD_SHOP::init(ICDBStructNode
*parent
)
462 ICDBStructNode
*node
= parent
;
471 for (uint i
=0; i
<16; ++i
)
473 node
= parent
->getNode( ICDBStructNode::CTextId(NLMISC::toString("%u", i
)), false );
474 nlassert(node
!= NULL
);
475 _Array
[i
].init(node
, i
);
481 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::TSQUAD_SHOP::TArray::init(ICDBStructNode
*parent
, uint index
)
483 ICDBStructNode
*node
= parent
;
489 node
= parent
->getNode( ICDBStructNode::CTextId("SHEET"), false );
490 nlassert(node
!= NULL
);
499 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::TSQUADS::init(ICDBStructNode
*parent
)
501 ICDBStructNode
*node
= parent
;
510 for (uint i
=0; i
<24; ++i
)
512 node
= parent
->getNode( ICDBStructNode::CTextId(NLMISC::toString("SP%u", i
)), false );
513 nlassert(node
!= NULL
);
514 _SP
[i
].init(node
, i
);
517 for (uint i
=0; i
<24; ++i
)
519 node
= parent
->getNode( ICDBStructNode::CTextId(NLMISC::toString("T%u", i
)), false );
520 nlassert(node
!= NULL
);
527 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::TSQUADS::TSP::init(ICDBStructNode
*parent
, uint index
)
529 ICDBStructNode
*node
= parent
;
535 node
= parent
->getNode( ICDBStructNode::CTextId("SHEET"), false );
536 nlassert(node
!= NULL
);
545 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::TSQUADS::TT::init(ICDBStructNode
*parent
, uint index
)
547 ICDBStructNode
*node
= parent
;
553 node
= parent
->getNode( ICDBStructNode::CTextId("SHEET"), false );
554 nlassert(node
!= NULL
);
557 node
= parent
->getNode( ICDBStructNode::CTextId("SPAWN"), false );
558 nlassert(node
!= NULL
);
567 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::TBUILDINGS::init(ICDBStructNode
*parent
)
569 ICDBStructNode
*node
= parent
;
578 for (uint i
=0; i
<4; ++i
)
580 node
= parent
->getNode( ICDBStructNode::CTextId(NLMISC::toString("%u", i
)), false );
581 nlassert(node
!= NULL
);
582 _Array
[i
].init(node
, i
);
588 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::TBUILDINGS::TArray::init(ICDBStructNode
*parent
, uint index
)
590 ICDBStructNode
*node
= parent
;
596 node
= parent
->getNode( ICDBStructNode::CTextId("SHEET"), false );
597 nlassert(node
!= NULL
);