Пример #1
0
        public void Initialize(TerrainVisibility terrainVisibility, GameContext context)
        {
            this.terrainVisibility = terrainVisibility;
            this.context = context;

            RenderStateContext = new RenderStateContext();
            VisibleTerrainMeshes = new Dictionary<TileType, List<TerrainMesh>>();

            Logger.RegisterLogLevelsFor<TerrainRenderer>(Logger.LogLevels.Adaptive);

            // Start the worker thread
            ThreadingContext.Start(AddAsyncLogic);
        }
Пример #2
0
 public static void Initialize(TerrainVisibility terrainVisibility, GameContext context)
 {
     Builder = new AreaModelBuilder(terrainVisibility);
 }
 public TerrainVisibilityStatistics(TerrainVisibility terrainVisibility, AreaCacheCollection cache)
 {
     this.terrainVisibility = terrainVisibility;
     this.cache = cache;
 }