public GameMap(GameWorld world, IGameMapLoader loader) { scriptLoader = new ScriptLoader(); actorNodeList = new List <ActorNode>(); this.world = world; this.loader = loader; loader.LoadMapFinished += Loader_LoadMapFinished; sceneManager = world.SceneManager; modData = world.ModData; camera = world.Camera; physicsScene = world.PhysicsScene; physics = world.PhysicsScene.Physics; controllerMgr = physics.ControllerManager; aimeshIndexData = new List <Mogre.Vector3>(); aimeshVertexData = new List <Mogre.Vector3>(); editor = new GameMapEditor(this); cameraHanlder = new CameraHandler(this); gameObjects = new Dictionary <string, List <GameObject> >(); combineKey = false; GameManager.Instance.mouse.MouseMoved += Mouse_MouseMoved; GameManager.Instance.mouse.MousePressed += Mouse_MousePressed; GameManager.Instance.mouse.MouseReleased += Mouse_MouseReleased; GameManager.Instance.keyboard.KeyPressed += Keyboard_KeyPressed; GameManager.Instance.keyboard.KeyReleased += Keyboard_KeyReleased; }