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/>.
17 #ifndef CL_SKY_SHEET_H
18 #define CL_SKY_SHEET_H
24 #include "entity_sheet.h"
25 #include "sky_object_sheet.h"
27 class CSkySheet
: public CEntitySheet
30 std::string InstanceGroupName
;
31 std::string AnimationName
;
32 double AnimLengthInSeconds
;
33 std::vector
<CSkyObjectSheet
> Objects
;
34 // bitmaps that gives the sky lighting depending
35 std::string AmbientSunLightBitmap
;
36 std::string DiffuseSunLightBitmap
;
38 std::string FogColorBitmap
;
39 // Water env map (computed from sky scene)
40 float WaterEnvMapCameraHeight
;
41 uint8 WaterEnvMapAlpha
;
45 // Build from an external script
46 void build(const NLGEORGES::UFormElm
&item
, const std::string
&prefix
);
48 virtual void build(const NLGEORGES::UFormElm
&item
);
49 /// From CEntitySheet : serialize sheet into binary data file.
50 virtual void serial(NLMISC::IStream
&f
);