public static void Initialise(ProgressUpdater progressUpdater) { lock (m_lock) { if (!initialised) { gameData = new Nested(progressUpdater); } } }
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); } }
internal Factory(IGameData data, ProgressUpdater progressUpdater) { this.data = data; this.progressUpdater = progressUpdater; }
internal Nested(ProgressUpdater progressUpdater) { Factory factory = new Factory(this, progressUpdater); GameData.initialised = factory.Build(); }