public void Load() { Log.Info("Загрузка карты {0}", this.mpf); Stream st = File.OpenRead("Worlds\\" + this.mpf + ".btm"); using (GZipStream read = new GZipStream(st, CompressionMode.Decompress)) { byte[] l = new byte[4]; this.size = ((Stream)read).ReadVector3(); this.spawn = read.ReadVector3(); read.Read(l, 0, 4); int len = BitConverter.ToInt32(l, 0); this.memory = new byte[len]; read.Read(this.memory, 0, len); } Log.Update("Карта {0} загружена", "", 3, this.mpf); }