Fix
[ryzomcore.git] / ryzom / server / src / entities_game_service / database_guild.cpp
blobcc4c36c817de8f7d6ddb69a68d1e15f40cb54e5b
2 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
3 // Copyright (C) 2010 Winch Gate Property Limited
4 //
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.
9 //
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 /////////////////////////////////////////////////////////////////
22 #include "stdpch.h"
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;
34 if (!inited)
36 // retreive the bank structure
37 CCDBStructBanks *bank = CCDBStructBanks::instance();
38 BankTag = CCDBStructBanks::readBankName("GUILD");
40 ICDBStructNode *node;
42 // branch init
44 node = bank->getICDBStructNodeFromName( BankTag, "GUILD" );
45 nlassert(node != NULL);
46 // call sub branch init
47 _GUILD.init(node);
50 inited = true;
54 void CBankAccessor_GUILD::TGUILD::init(ICDBStructNode *parent)
56 ICDBStructNode *node = parent;
58 _BranchNode = node;
60 // leaf init
62 node = parent->getNode( ICDBStructNode::CTextId("COUNTER"), false );
63 nlassert(node != NULL);
64 _COUNTER = node;
66 node = parent->getNode( ICDBStructNode::CTextId("PROXY"), false );
67 nlassert(node != NULL);
68 _PROXY = node;
70 node = parent->getNode( ICDBStructNode::CTextId("NAME"), false );
71 nlassert(node != NULL);
72 _NAME = node;
74 node = parent->getNode( ICDBStructNode::CTextId("DESCRIPTION"), false );
75 nlassert(node != NULL);
76 _DESCRIPTION = node;
78 node = parent->getNode( ICDBStructNode::CTextId("ICON"), false );
79 nlassert(node != NULL);
80 _ICON = node;
82 node = parent->getNode( ICDBStructNode::CTextId("XP"), false );
83 nlassert(node != NULL);
84 _XP = node;
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);
92 _VILLAGE = node;
94 node = parent->getNode( ICDBStructNode::CTextId("PEOPLE"), false );
95 nlassert(node != NULL);
96 _PEOPLE = node;
98 node = parent->getNode( ICDBStructNode::CTextId("CREATION_DATE"), false );
99 nlassert(node != NULL);
100 _CREATION_DATE = node;
103 // branch init
105 node = parent->getNode( ICDBStructNode::CTextId("FAME"), false );
106 nlassert(node != NULL);
107 _FAME.init(node);
109 node = parent->getNode( ICDBStructNode::CTextId("MEMBERS"), false );
110 nlassert(node != NULL);
111 _MEMBERS.init(node);
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);
119 _OUTPOST.init(node);
124 void CBankAccessor_GUILD::TGUILD::TFAME::init(ICDBStructNode *parent)
126 ICDBStructNode *node = parent;
128 _BranchNode = node;
130 // leaf init
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;
141 // branch init
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;
157 _BranchNode = node;
159 // leaf init
161 node = parent->getNode( ICDBStructNode::CTextId("VALUE"), false );
162 nlassert(node != NULL);
163 _VALUE = node;
165 node = parent->getNode( ICDBStructNode::CTextId("THRESHOLD"), false );
166 nlassert(node != NULL);
167 _THRESHOLD = node;
169 node = parent->getNode( ICDBStructNode::CTextId("TREND"), false );
170 nlassert(node != NULL);
171 _TREND = node;
174 // branch init
179 void CBankAccessor_GUILD::TGUILD::TMEMBERS::init(ICDBStructNode *parent)
181 ICDBStructNode *node = parent;
183 _BranchNode = node;
185 // leaf init
188 // branch init
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;
204 _BranchNode = node;
206 // leaf init
208 node = parent->getNode( ICDBStructNode::CTextId("NAME"), false );
209 nlassert(node != NULL);
210 _NAME = node;
212 node = parent->getNode( ICDBStructNode::CTextId("GRADE"), false );
213 nlassert(node != NULL);
214 _GRADE = node;
216 node = parent->getNode( ICDBStructNode::CTextId("ONLINE"), false );
217 nlassert(node != NULL);
218 _ONLINE = node;
220 node = parent->getNode( ICDBStructNode::CTextId("ENTER_DATE"), false );
221 nlassert(node != NULL);
222 _ENTER_DATE = node;
225 // branch init
230 void CBankAccessor_GUILD::TGUILD::TINVENTORY::init(ICDBStructNode *parent)
232 ICDBStructNode *node = parent;
234 _BranchNode = node;
236 // leaf init
238 node = parent->getNode( ICDBStructNode::CTextId("SESSION"), false );
239 nlassert(node != NULL);
240 _SESSION = node;
242 node = parent->getNode( ICDBStructNode::CTextId("BULK_MAX"), false );
243 nlassert(node != NULL);
244 _BULK_MAX = node;
246 node = parent->getNode( ICDBStructNode::CTextId("MONEY"), false );
247 nlassert(node != NULL);
248 _MONEY = node;
251 // branch init
256 void CBankAccessor_GUILD::TGUILD::TOUTPOST::init(ICDBStructNode *parent)
258 ICDBStructNode *node = parent;
260 _BranchNode = node;
262 // leaf init
264 node = parent->getNode( ICDBStructNode::CTextId("CANDEL"), false );
265 nlassert(node != NULL);
266 _CANDEL = node;
269 // branch init
271 for (uint i=0; i<16; ++i)
273 node = parent->getNode( ICDBStructNode::CTextId(NLMISC::toString("O%u", i)), false );
274 nlassert(node != NULL);
275 _O[i].init(node, i);
281 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::init(ICDBStructNode *parent, uint index)
283 ICDBStructNode *node = parent;
285 _BranchNode = node;
287 // leaf init
289 node = parent->getNode( ICDBStructNode::CTextId("OWNED"), false );
290 nlassert(node != NULL);
291 _OWNED = node;
293 node = parent->getNode( ICDBStructNode::CTextId("SHEET"), false );
294 nlassert(node != NULL);
295 _SHEET = node;
297 node = parent->getNode( ICDBStructNode::CTextId("LEVEL"), false );
298 nlassert(node != NULL);
299 _LEVEL = node;
301 node = parent->getNode( ICDBStructNode::CTextId("STATUS"), false );
302 nlassert(node != NULL);
303 _STATUS = node;
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);
315 _WARCOST = node;
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;
362 // branch init
364 node = parent->getNode( ICDBStructNode::CTextId("GUILD"), false );
365 nlassert(node != NULL);
366 _GUILD.init(node);
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);
378 _SQUADS.init(node);
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;
391 _BranchNode = node;
393 // leaf init
395 node = parent->getNode( ICDBStructNode::CTextId("NAME"), false );
396 nlassert(node != NULL);
397 _NAME = node;
399 node = parent->getNode( ICDBStructNode::CTextId("ICON"), false );
400 nlassert(node != NULL);
401 _ICON = node;
403 node = parent->getNode( ICDBStructNode::CTextId("TRIBE"), false );
404 nlassert(node != NULL);
405 _TRIBE = node;
407 node = parent->getNode( ICDBStructNode::CTextId("NAME_ATT"), false );
408 nlassert(node != NULL);
409 _NAME_ATT = node;
412 // branch init
417 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::TSQUAD_SPAWN_ZONE::init(ICDBStructNode *parent)
419 ICDBStructNode *node = parent;
421 _BranchNode = node;
423 // leaf init
426 // branch init
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;
442 _BranchNode = node;
444 // leaf init
446 node = parent->getNode( ICDBStructNode::CTextId("X"), false );
447 nlassert(node != NULL);
448 _X = node;
450 node = parent->getNode( ICDBStructNode::CTextId("Y"), false );
451 nlassert(node != NULL);
452 _Y = node;
455 // branch init
460 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::TSQUAD_SHOP::init(ICDBStructNode *parent)
462 ICDBStructNode *node = parent;
464 _BranchNode = node;
466 // leaf init
469 // branch init
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;
485 _BranchNode = node;
487 // leaf init
489 node = parent->getNode( ICDBStructNode::CTextId("SHEET"), false );
490 nlassert(node != NULL);
491 _SHEET = node;
494 // branch init
499 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::TSQUADS::init(ICDBStructNode *parent)
501 ICDBStructNode *node = parent;
503 _BranchNode = node;
505 // leaf init
508 // branch init
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);
521 _T[i].init(node, i);
527 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::TSQUADS::TSP::init(ICDBStructNode *parent, uint index)
529 ICDBStructNode *node = parent;
531 _BranchNode = node;
533 // leaf init
535 node = parent->getNode( ICDBStructNode::CTextId("SHEET"), false );
536 nlassert(node != NULL);
537 _SHEET = node;
540 // branch init
545 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::TSQUADS::TT::init(ICDBStructNode *parent, uint index)
547 ICDBStructNode *node = parent;
549 _BranchNode = node;
551 // leaf init
553 node = parent->getNode( ICDBStructNode::CTextId("SHEET"), false );
554 nlassert(node != NULL);
555 _SHEET = node;
557 node = parent->getNode( ICDBStructNode::CTextId("SPAWN"), false );
558 nlassert(node != NULL);
559 _SPAWN = node;
562 // branch init
567 void CBankAccessor_GUILD::TGUILD::TOUTPOST::TO::TBUILDINGS::init(ICDBStructNode *parent)
569 ICDBStructNode *node = parent;
571 _BranchNode = node;
573 // leaf init
576 // branch init
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;
592 _BranchNode = node;
594 // leaf init
596 node = parent->getNode( ICDBStructNode::CTextId("SHEET"), false );
597 nlassert(node != NULL);
598 _SHEET = node;
601 // branch init