示例#1
0
 public static void Initialise(ProgressUpdater progressUpdater)
 {
     lock (m_lock)
     {
         if (!initialised)
         {
             gameData = new Nested(progressUpdater);
         }
     }
 }
示例#2
0
                PackFile getPackFile(ProgressUpdater pu, string gamedatapath, string packPath)
                {
                    string path = System.IO.Path.Combine(gamedatapath, packPath);

                    if (System.IO.File.Exists(path))
                    {
                        PackFileCodec codec = new PackFileCodec();
                        pu.ConnectPackCodec(codec, path.Replace('\\', System.IO.Path.DirectorySeparatorChar));
                        return(codec.Open(path));
                    }
                    else
                    {
                        return(null);
                    }
                }
示例#3
0
 internal Factory(IGameData data, ProgressUpdater progressUpdater)
 {
     this.data            = data;
     this.progressUpdater = progressUpdater;
 }
示例#4
0
            internal Nested(ProgressUpdater progressUpdater)
            {
                Factory factory = new Factory(this, progressUpdater);

                GameData.initialised = factory.Build();
            }