示例#1
0
        public void WorldUpdate()
        {
            bool worldRenderedNow = WorldRendererUtility.WorldRenderedNow;

            this.renderer.CheckActivateWorldCamera();
            if (worldRenderedNow)
            {
                Profiler.BeginSample("ExpandableWorldObjectsUpdate()");
                ExpandableWorldObjectsUtility.ExpandableWorldObjectsUpdate();
                Profiler.EndSample();
                Profiler.BeginSample("World.renderer.DrawWorldLayers()");
                this.renderer.DrawWorldLayers();
                Profiler.EndSample();
                Profiler.BeginSample("World.dynamicDrawManager.DrawDynamicWorldObjects()");
                this.dynamicDrawManager.DrawDynamicWorldObjects();
                Profiler.EndSample();
                Profiler.BeginSample("World.features.UpdateFeatures()");
                this.features.UpdateFeatures();
                Profiler.EndSample();
                Profiler.BeginSample("NoiseDebugUI.RenderPlanetNoise()");
                NoiseDebugUI.RenderPlanetNoise();
                Profiler.EndSample();
            }
            Profiler.BeginSample("WorldComponentUpdate()");
            WorldComponentUtility.WorldComponentUpdate(this);
            Profiler.EndSample();
        }
示例#2
0
 public void WorldTick()
 {
     worldPawns.WorldPawnsTick();
     factionManager.FactionManagerTick();
     worldObjects.WorldObjectsHolderTick();
     debugDrawer.WorldDebugDrawerTick();
     pathGrid.WorldPathGridTick();
     WorldComponentUtility.WorldComponentTick(this);
 }
示例#3
0
        public void WorldUpdate()
        {
            bool worldRenderedNow = WorldRendererUtility.WorldRenderedNow;

            renderer.CheckActivateWorldCamera();
            if (worldRenderedNow)
            {
                ExpandableWorldObjectsUtility.ExpandableWorldObjectsUpdate();
                renderer.DrawWorldLayers();
                dynamicDrawManager.DrawDynamicWorldObjects();
                features.UpdateFeatures();
                NoiseDebugUI.RenderPlanetNoise();
            }
            WorldComponentUtility.WorldComponentUpdate(this);
        }
示例#4
0
 public void WorldTick()
 {
     Profiler.BeginSample("WorldPawnsTick()");
     this.worldPawns.WorldPawnsTick();
     Profiler.EndSample();
     Profiler.BeginSample("FactionManagerTick()");
     this.factionManager.FactionManagerTick();
     Profiler.EndSample();
     Profiler.BeginSample("WorldObjectsHolderTick()");
     this.worldObjects.WorldObjectsHolderTick();
     Profiler.EndSample();
     Profiler.BeginSample("WorldDebugDrawerTick()");
     this.debugDrawer.WorldDebugDrawerTick();
     Profiler.EndSample();
     Profiler.BeginSample("WorldPathGridTick()");
     this.pathGrid.WorldPathGridTick();
     Profiler.EndSample();
     Profiler.BeginSample("WorldComponentTick()");
     WorldComponentUtility.WorldComponentTick(this);
     Profiler.EndSample();
 }
示例#5
0
 public void FinalizeInit()
 {
     pathGrid.RecalculateAllPerceivedPathCosts();
     AmbientSoundManager.EnsureWorldAmbientSoundCreated();
     WorldComponentUtility.FinalizeInit(this);
 }