1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef NL_SUCCESS_TABLE_SHEET_H
20 #define NL_SUCCESS_TABLE_SHEET_H
22 #include "entity_sheet.h"
25 // ***************************************************************************
28 * \author Lionel Berenguier
29 * \author Nevrax France
32 class CSuccessTableSheet
: public CEntitySheet
37 /// The Difficulty Table
41 sint32 SuccessProbability
;
42 sint32 PartialSuccessProbability
;
43 void serial(NLMISC::IStream
&f
)
46 f
.serial(RelativeLevel
);
47 f
.serial(SuccessProbability
);
48 f
.serial(PartialSuccessProbability
);
51 std::vector
<CSuccessEntry
> SuccessTable
;
63 virtual ~CSuccessTableSheet() {}
65 virtual void build(const NLGEORGES::UFormElm
&root
);
68 virtual void serial(NLMISC::IStream
&f
)
70 f
.serialCont(SuccessTable
);
77 #endif // NL_SUCCESS_TABLE_SHEET_H
79 /* End of success_table_sheet.h */