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_outpost.h"
27 TCDBBank
CBankAccessor_OUTPOST::BankTag
;
29 CBankAccessor_OUTPOST::TOUTPOST_SELECTED
CBankAccessor_OUTPOST::_OUTPOST_SELECTED
;
31 void CBankAccessor_OUTPOST::init()
33 static bool inited
= false;
36 // retreive the bank structure
37 CCDBStructBanks
*bank
= CCDBStructBanks::instance();
38 BankTag
= CCDBStructBanks::readBankName("OUTPOST");
44 node
= bank
->getICDBStructNodeFromName( BankTag
, "OUTPOST_SELECTED" );
45 nlassert(node
!= NULL
);
46 // call sub branch init
47 _OUTPOST_SELECTED
.init(node
);
54 void CBankAccessor_OUTPOST::TOUTPOST_SELECTED::init(ICDBStructNode
*parent
)
56 ICDBStructNode
*node
= parent
;
62 node
= parent
->getNode( ICDBStructNode::CTextId("SHEET"), false );
63 nlassert(node
!= NULL
);
66 node
= parent
->getNode( ICDBStructNode::CTextId("LEVEL"), false );
67 nlassert(node
!= NULL
);
70 node
= parent
->getNode( ICDBStructNode::CTextId("STATUS"), false );
71 nlassert(node
!= NULL
);
74 node
= parent
->getNode( ICDBStructNode::CTextId("STATE_END_DATE"), false );
75 nlassert(node
!= NULL
);
76 _STATE_END_DATE
= node
;
78 node
= parent
->getNode( ICDBStructNode::CTextId("DISPLAY_CRASH"), false );
79 nlassert(node
!= NULL
);
80 _DISPLAY_CRASH
= node
;
82 node
= parent
->getNode( ICDBStructNode::CTextId("WARCOST"), false );
83 nlassert(node
!= NULL
);
86 node
= parent
->getNode( ICDBStructNode::CTextId("ROUND_LVL_THRESHOLD"), false );
87 nlassert(node
!= NULL
);
88 _ROUND_LVL_THRESHOLD
= node
;
90 node
= parent
->getNode( ICDBStructNode::CTextId("ROUND_LVL_MAX_ATT"), false );
91 nlassert(node
!= NULL
);
92 _ROUND_LVL_MAX_ATT
= node
;
94 node
= parent
->getNode( ICDBStructNode::CTextId("ROUND_LVL_MAX_DEF"), false );
95 nlassert(node
!= NULL
);
96 _ROUND_LVL_MAX_DEF
= node
;
98 node
= parent
->getNode( ICDBStructNode::CTextId("ROUND_LVL_CUR"), false );
99 nlassert(node
!= NULL
);
100 _ROUND_LVL_CUR
= node
;
102 node
= parent
->getNode( ICDBStructNode::CTextId("ROUND_ID_CUR"), false );
103 nlassert(node
!= NULL
);
104 _ROUND_ID_CUR
= node
;
106 node
= parent
->getNode( ICDBStructNode::CTextId("ROUND_ID_MAX"), false );
107 nlassert(node
!= NULL
);
108 _ROUND_ID_MAX
= node
;
110 node
= parent
->getNode( ICDBStructNode::CTextId("TIME_RANGE_DEF_WANTED"), false );
111 nlassert(node
!= NULL
);
112 _TIME_RANGE_DEF_WANTED
= node
;
114 node
= parent
->getNode( ICDBStructNode::CTextId("TIME_RANGE_DEF"), false );
115 nlassert(node
!= NULL
);
116 _TIME_RANGE_DEF
= node
;
118 node
= parent
->getNode( ICDBStructNode::CTextId("TIME_RANGE_ATT"), false );
119 nlassert(node
!= NULL
);
120 _TIME_RANGE_ATT
= node
;
122 node
= parent
->getNode( ICDBStructNode::CTextId("TIME_RANGE_LENGTH"), false );
123 nlassert(node
!= NULL
);
124 _TIME_RANGE_LENGTH
= node
;
129 node
= parent
->getNode( ICDBStructNode::CTextId("GUILD"), false );
130 nlassert(node
!= NULL
);
136 void CBankAccessor_OUTPOST::TOUTPOST_SELECTED::TGUILD::init(ICDBStructNode
*parent
)
138 ICDBStructNode
*node
= parent
;
144 node
= parent
->getNode( ICDBStructNode::CTextId("NAME"), false );
145 nlassert(node
!= NULL
);
148 node
= parent
->getNode( ICDBStructNode::CTextId("ICON"), false );
149 nlassert(node
!= NULL
);
152 node
= parent
->getNode( ICDBStructNode::CTextId("TRIBE"), false );
153 nlassert(node
!= NULL
);
156 node
= parent
->getNode( ICDBStructNode::CTextId("NAME_ATT"), false );
157 nlassert(node
!= NULL
);