Exemple #1
0
 /// <summary>
 /// Constructor for LevelAssetStreamer
 /// </summary>
 /// <param name="levelFile"></param>
 public LevelAssetStreamer(String levelFile, TileFactory tileFactory, SpriteFont debugFont = null)
 {
     m_levelFile                  = levelFile;
     m_levelBlockCache            = new List <List <CachedTileInformation> >();
     m_renderKernelRequiresUpdate = new List <bool> {
         true, true, true, true, true, true, true, true, true
     };
     m_tileFactory = tileFactory;
     m_font        = debugFont;
     TilesNotInUse = new List <ITile>();
     //saveTestWorld();
     LoadWorldIDsIntoCache();
 }
 /// <summary>
 /// Constructor for LevelAssetStreamer
 /// </summary>
 /// <param name="levelFile"></param>
 public LevelAssetStreamer(String levelFile, TileFactory tileFactory, SpriteFont debugFont = null)
 {
     m_levelFile = levelFile;
     m_levelBlockCache = new List<List<CachedTileInformation>>();
     m_renderKernelRequiresUpdate = new List<bool> { true, true, true, true, true, true, true, true, true };
     m_tileFactory = tileFactory;
     m_font = debugFont;
     TilesNotInUse = new List<ITile>();
     //saveTestWorld();
     LoadWorldIDsIntoCache();
 }