package com {
	
	import com.GameViewMediator;
	
	import org.robotlegs.mvcs.Context;
	import org.robotlegs.base.ContextEvent;
	
	import flash.display.DisplayObjectContainer;
	
	public class GameContext extends Context {
		
		private var gameView:GameView;
		
		public function GameContext(contextView:DisplayObjectContainer = null, autoStartup:Boolean = true) {
			super(contextView);
		}
		
		override public function startup():void {			
			mediatorMap.mapView(GameView, GameViewMediator);
			
			contextView.addChild(gameView = new GameView());
		}
		
		override public function shutdown():void {
			trace("Shutdown to be triggered via GameViewMediator");
		}
		
	}
	
}