Example #1
0
 public void AddMap(string mapName, bool excludeScenery)
 {
     SoulsFormats.BTAB btab = InterrootLoader.LoadMapBtab(mapName);
     LightmapAtlasMap      = new Dictionary <string, Vector4>();
     LightmapAtlasIndexMap = new Dictionary <string, int>();
     if (btab != null)
     {
         foreach (var entry in btab.Entries)
         {
             if (!LightmapAtlasMap.ContainsKey(entry.MSBPartName))
             {
                 LightmapAtlasMap.Add(entry.MSBPartName, new Vector4(entry.AtlasScale.X, entry.AtlasScale.Y, entry.AtlasOffset.X, entry.AtlasOffset.Y));
                 LightmapAtlasIndexMap.Add(entry.MSBPartName, entry.AtlasIndex);
             }
         }
     }
     InterrootLoader.LoadMapInBackground(mapName, excludeScenery, AddModelInstance);
 }
 public void AddMap(string mapName, bool excludeScenery)
 {
     InterrootLoader.LoadMapInBackground(mapName, excludeScenery, AddModelInstance);
 }