Beispiel #1
0
        public MainGenerator(string gameLocation = @"..\..\..\Extra")
        {
            _characterdata = ReadFromFile.GetDictionaryFromFile(gameLocation + @"/racepng.txt");
            _features      = ReadFromFile.GetDictionaryFromFile(gameLocation + @"/features.txt");
            _cloudtiles    = ReadFromFile.GetDictionaryFromFile(gameLocation + @"/clouds.txt");
            _itemdata      = ReadFromFile.GetDictionaryFromFile(gameLocation + @"/items.txt");
            _weapondata    = ReadFromFile.GetDictionaryFromFile(gameLocation + @"/weapons.txt");

            _floorandwall             = ReadFromFile.GetFloorAndWallNamesForDungeons(gameLocation + @"/tilefloor.txt");
            _floorandwallColor        = ReadFromFile.GetFloorAndWallNamesForDungeons(gameLocation + @"/tilefloorColors.txt");
            _monsterdata              = ReadFromFile.GetMonsterData(gameLocation + @"/mon-data.h", gameLocation + @"/monsteroverrides.txt");
            _namedMonsterOverrideData = ReadFromFile.GetNamedMonsterOverrideData(gameLocation + @"/namedmonsteroverrides.txt");

            _floorpng      = ReadFromFile.GetSKBitmapDictionaryFromFolder(gameLocation + @"/rltiles/dngn/floor");
            _wallpng       = ReadFromFile.GetSKBitmapDictionaryFromFolder(gameLocation + @"/rltiles/dngn/wall");
            _alldngnpng    = ReadFromFile.GetSKBitmapDictionaryFromFolder(gameLocation + @"/rltiles/dngn");
            _alleffects    = ReadFromFile.GetSKBitmapDictionaryFromFolder(gameLocation + @"/rltiles/effect");
            _miscallaneous = ReadFromFile.GetSKBitmapDictionaryFromFolder(gameLocation + @"/rltiles/misc");
            _itempng       = ReadFromFile.GetSKBitmapDictionaryFromFolder(gameLocation + @"/rltiles/item");

            _characterpng = ReadFromFile.GetCharacterPNG(gameLocation);
            _monsterpng   = ReadFromFile.GetMonsterPNG(gameLocation);

            _outOfSightCache = new Cacher();
            _weaponpng       = ReadFromFile.GetWeaponPNG(gameLocation);
        }
        public MainGenerator()
        {
            string gameLocation = File.ReadAllLines(Folder + @"\config.ini").First();

            _characterdata = ReadFromFile.GetDictionaryFromFile(@"..\..\..\Extra\racepng.txt");
            _features      = ReadFromFile.GetDictionaryFromFile(@"..\..\..\Extra\features.txt");
            _cloudtiles    = ReadFromFile.GetDictionaryFromFile(@"..\..\..\Extra\clouds.txt");
            _itemdata      = ReadFromFile.GetDictionaryFromFile(@"..\..\..\Extra\items.txt");

            _floorandwall = ReadFromFile.GetFloorAndWallNamesForDungeons(@"..\..\..\Extra\tilefloor.txt");
            _monsterdata  = ReadFromFile.GetMonsterData(gameLocation + @"\mon-data.h");

            _floorpng      = ReadFromFile.GetBitmapDictionaryFromFolder(gameLocation + @"\rltiles\dngn\floor");
            _wallpng       = ReadFromFile.GetBitmapDictionaryFromFolder(gameLocation + @"\rltiles\dngn\wall");
            _alldngnpng    = ReadFromFile.GetBitmapDictionaryFromFolder(gameLocation + @"\rltiles\dngn");
            _alleffects    = ReadFromFile.GetBitmapDictionaryFromFolder(gameLocation + @"\rltiles\effect");
            _miscallaneous = ReadFromFile.GetBitmapDictionaryFromFolder(gameLocation + @"\rltiles\misc");

            _characterpng = ReadFromFile.GetCharacterPNG(gameLocation);
            _monsterpng   = ReadFromFile.GetMonsterPNG(gameLocation);
            _itempng      = ReadFromFile.ItemsPNG(gameLocation);
        }