예제 #1
0
        public GameEntityMouseArea AddMouseArea(IFShape shape, IGameEntityMouseAreaListener listener, bool swallowEvents = true)
        {
            var area = new GameEntityMouseArea(this, shape, swallowEvents);

            area.AddListener(listener);
            MouseAreas.Add(area);
            return(area);
        }
예제 #2
0
 public void AddListener(IGameEntityMouseAreaListener l)
 {
     listener.Add(l);
 }