public static void To <R>() where R : Room { var obj = Objects.Get <O>(); obj.Remove(); var room = Rooms.Get <R>(); ObjectMap.Add(obj, room); }
public static void Here() { var obj = Objects.Get <O>(); obj.Remove(); var room = CurrentRoom.Location; ObjectMap.Add(obj, room); }
public override object GetObjectByKey(Type objectType, object key) { if (typeof(LiveReport) == objectType) { LiveReport obj = null; var data = objectData[(Guid)key]; if (data != null) { obj = new LiveReport(); obj.SetKey((Guid)key); obj.SetName(data.Name); obj.SetPeriod(data.Period); obj.SetStatus(data.Status); } objectMap.Add(objectType, key, obj); return(obj); } throw new NotImplementedException(); }
public OilTests() { Context.Story.Location = Room <DebrisRoom>(); oil = Objects.Get <PoolOfOil>(); ObjectMap.Add(oil, Location); }
public CommandContext(Assembly assembly) { ObjectMap.Add(typeof(ICommandContext), this); FileName = System.IO.Path.GetFileName(assembly.Location); }