示例#1
0
        public void TestGetCloudList()
        {
            CloudList list = c.GetCloudList();

            Assert.IsTrue(list.clouds.Count > 1);
            list = c.GetCloudList(KNOWN_CLOUD);
            Assert.IsTrue(list.clouds.Count == 1);
        }
示例#2
0
        public void Init(XmlNode xml)
        {
            Name = Xml.GetChildInnerText(xml, "Name");
            var snode = xml.SelectSingleNode("Settings");

            CloudList.Init(snode.SelectSingleNode("CloudList"));
            CloudColor.Init(snode.SelectSingleNode("CloudColor"));
            CloudLightColor.Init(snode.SelectSingleNode("CloudLightColor"));
            CloudAmbientColor.Init(snode.SelectSingleNode("CloudAmbientColor"));
            CloudSkyColor.Init(snode.SelectSingleNode("CloudSkyColor"));
            CloudBounceColor.Init(snode.SelectSingleNode("CloudBounceColor"));
            CloudEastColor.Init(snode.SelectSingleNode("CloudEastColor"));
            CloudWestColor.Init(snode.SelectSingleNode("CloudWestColor"));
            CloudScaleFillColors.Init(snode.SelectSingleNode("CloudScaleFillColors"));
            CloudDensityShift_Scale_ScatteringConst_Scale.Init(snode.SelectSingleNode("CloudDensityShift_Scale_ScatteringConst_Scale"));
            CloudPiercingLightPower_Strength_NormalStrength_Thickness.Init(snode.SelectSingleNode("CloudPiercingLightPower_Strength_NormalStrength_Thickness"));
            CloudScaleDiffuseFillAmbient_WrapAmount.Init(snode.SelectSingleNode("CloudScaleDiffuseFillAmbient_WrapAmount"));
        }