using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using MudEngine.Core.Interfaces; using MudEngine.Game.Characters; using MudEngine.Game; using MudEngine.GameScripts; namespace MudEngine.Game.Environment { public class Realm : BaseScript, IGameComponent, ISavable, IUpdatable { public string Filename { get; set; } public Realm(StandardGame game, String name, String description) : base(game, name, description) { this._ZoneCollection = new List(); } public void Initialize() { } public void Destroy() { throw new NotImplementedException(); } public bool Save(string filename) { throw new NotImplementedException(); } public bool Save(string filename, bool ignoreFileWrite) { throw new NotImplementedException(); } public void Load(string filename) { throw new NotImplementedException(); } public void Update() { throw new NotImplementedException(); } public void CreateZone(String name, String description) { Zone zone = new Zone(this.Game, name, description); this._ZoneCollection.Add(zone); } public Zone GetZone(String name) { var v = from zone in this._ZoneCollection where zone.Name == name select zone; return v.First(); } private List _ZoneCollection; } }