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 RY_WORLD_SHEET_H
20 #define RY_WORLD_SHEET_H
24 #include "entity_sheet.h"
26 /// Continent location
29 std::string SelectionName
; // name exported that we can use with select
30 std::string ContinentName
; // .continent file
31 float MinX
, MinY
, MaxX
, MaxY
; // Bounding box
34 void build (const NLGEORGES::UFormElm
*pItem
);
35 void serial(NLMISC::IStream
&f
);
38 // Hierarchical map node
41 std::string Name
; // Map Name
42 std::string ContinentName
; // Name of the continent where the map is (empty if the map is world)
43 std::string BitmapName
; // Name of the bitmap to load
44 float MinX
, MinY
, MaxX
, MaxY
; // Bounding Box
47 std::string Name
; // Name to a child map
48 std::string ZoneName
; // Click Zone to be found in the region_*.primitive
49 // -----------------------
50 void build (const NLGEORGES::UFormElm
*pItem
);
51 void serial(NLMISC::IStream
&f
);
53 std::vector
<SChild
> Children
;
54 // ---------------------------------------------------------------------------------
56 void build (const NLGEORGES::UFormElm
*pItem
);
57 void serial(NLMISC::IStream
&f
);
60 /** Class that manage .world sheets
62 * \author Nicolas Vizerie
63 * \author Nevrax France
67 class CWorldSheet
: public CEntitySheet
71 std::vector
<SContLoc
> ContLocs
;
72 std::vector
<SMap
> Maps
;
76 virtual void build(const NLGEORGES::UFormElm
&item
);
77 virtual void serial(NLMISC::IStream
&f
);