muddesigner/MudEngine/WinPC_Engine/Game/Environment/Realm.cs
Scionwest_cp c40d32e7ae Basic Realm->Zone->Room combination is now created during World.Initialize(). This will be replaced with loading XML instead of hard-coding.
Newly created characters are assigned to the new World.StartLocation.
Rooms can now be connected.
Realms and Zones can create Zones and Rooms accordingly
Force moving of a character is now supported.  Walking has yet to be implemented.
2012-03-04 16:56:04 -08:00

72 lines
1.7 KiB
C#

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<Zone>();
}
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 Zone CreateZone(String name, String description)
{
Zone zone = new Zone(this.Game, name, description);
this._ZoneCollection.Add(zone);
zone.Realm = this;
return zone;
}
public Zone GetZone(String name)
{
var v = from zone in this._ZoneCollection
where zone.Name == name
select zone;
return v.First();
}
private List<Zone> _ZoneCollection;
}
}