Beispiel #1
0
        private void MouseHandler(UIMouseEventType type, UpdateState state)
        {
            //todo: change handler to game engine when in simulation mode.

            CityRenderer.UIMouseEvent(type.ToString()); //all the city renderer needs are events telling it if the mouse is over it or not.
            //if the mouse is over it, the city renderer will handle the rest.
        }
Beispiel #2
0
 private void MouseHandler(UIMouseEventType type, UpdateState state)
 {
     if (CityRenderer != null)
     {
         CityRenderer.UIMouseEvent(type.ToString());                       //all the city renderer needs are events telling it if the mouse is over it or not.
     }
     //if the mouse is over it, the city renderer will handle the rest.
 }
Beispiel #3
0
 private void MouseHandler(UIMouseEventType type, UpdateState state)
 {
     if (CityRenderer != null) CityRenderer.UIMouseEvent(type.ToString()); //all the city renderer needs are events telling it if the mouse is over it or not.
     //if the mouse is over it, the city renderer will handle the rest.
 }
        private void MouseHandler(UIMouseEventType type, UpdateState state)
        {
            //todo: change handler to game engine when in simulation mode.

            CityRenderer.UIMouseEvent(type.ToString()); //all the city renderer needs are events telling it if the mouse is over it or not.
            //if the mouse is over it, the city renderer will handle the rest.
        }