Пример #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.
        }
Пример #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.
 }
Пример #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.
 }
Пример #4
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.
        }