예제 #1
0
        private void RefreshPlanetData(uint timeStamp)
        {
            IMapDataLoader mapDataLoader = Service.WorldTransitioner.GetMapDataLoader();

            if (mapDataLoader != null)
            {
                PlanetVO planetData = mapDataLoader.GetPlanetData();
                if (planetData != null && this.planetVO.Uid != planetData.Uid)
                {
                    this.planetVO = planetData;
                    this.InitPlanetLightingData(timeStamp);
                }
                this.UpdateEnvironmentLighting(0f);
            }
        }
예제 #2
0
        private void UpdateEnvironmentForPlanetaryLighting()
        {
            IMapDataLoader mapDataLoader = Service.Get <WorldTransitioner>().GetMapDataLoader();

            if (mapDataLoader == null)
            {
                return;
            }
            this.planetVO = mapDataLoader.GetPlanetData();
            if (this.planetVO == null)
            {
                this.planetVO = Service.Get <IDataController>().Get <PlanetVO>("planet1");
            }
            this.planetLightingUid = this.planetVO.PlanetaryLighting;
            if (this.planetLightingUid != null)
            {
                this.SetShaderColorsFromPlanetLightingVO(this.planetLightingUid);
            }
        }