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); }
public void AddListener(IGameEntityMouseAreaListener l) { listener.Add(l); }