예제 #1
0
        protected override BIGBank LoadFrontEndTextures()
        {
            BIGFileController c = (BIGFileController)AutoLoad(
                Settings.GetString("Files", "FrontEndTextures"));

            return(c.BIG.FindBankByName(
                       Settings.GetString("Banks", "FrontEndTextures")));
        }
예제 #2
0
        public FileController Get(string fileName)
        {
            fileName = GetAbsoluteFileName(fileName);

            FileController c = Find(fileName);

            if (c != null)
            {
                // Already in the system.
                return(c);
            }

            FileInfo info = new FileInfo(fileName);

            string ext = info.Extension.ToUpper();

            if (ext == ".BIG")
            {
                c = new BIGFileController(this, fileName);
            }
            else if (ext == ".BIN")
            {
                if (info.Name.ToUpper() == "NAMES.BIN")
                {
                    c = new NamesBINController(this, fileName);
                }
                else
                {
                    c = new BINFileController(this, fileName);
                }
            }
            else if (ext == ".STB")
            {
                c = new BBBFileController(
                    this, new FableMod.STB.STBFile(), fileName);
            }
            else if (ext == ".WAD")
            {
                c = new BBBFileController(
                    this, new FableMod.BBB.BBBFile(), fileName);
            }
            else if (ext == ".WLD")
            {
                c = new WLDFileController(this, fileName);
            }

            if (c != null)
            {
                myFiles.Add(c);
            }

            return(c);
        }
예제 #3
0
        protected override BIGFile LoadTextures()
        {
            BIGFileController c = (BIGFileController)AutoLoad(
                Settings.GetString("Files", "Textures"));

            if (c == null)
            {
                return(null);
            }

            return(c.BIG);
        }
예제 #4
0
        protected override BIGBank LoadText()
        {
            BIGFileController c = (BIGFileController)AutoLoad(
                Settings.GetString("Files", "Text"));

            if (c == null)
            {
                return(null);
            }

            return(c.BIG.FindBankByName(
                       Settings.GetString("Banks", "Text")));
        }