public XmasModel(XmasWorld world, ActionManager actman, EventManager evtman, XmasFactory factory) { World = world; ActionManager = actman; EventManager = evtman; Factory = factory; world.EventManager = evtman; EventManager.Register(new Trigger<EngineCloseEvent>(evtman_EngineClose)); ActionManager.ActionQueuing += actman_ActionQueuing; ActionManager.ActionQueued += actman_ActionQueued; foreach (var action in ActionManager.QueuedActions) { this.AddActor(action); } }
/// <summary> /// Instatiates a XmasWorldView object /// </summary> /// <param name="world">The world the view is meant to mirror</param> public XmasWorldView(XmasWorld world) { model = world; }