Ejemplo n.º 1
0
        public static bool IsEntrance(Point tilePosition, JEventBus eventBus = null)
        {
            if (eventBus == null)
            {
                eventBus = JEventBus.GetDefault();
            }

            FindEntranceEvent findEntranceEvent = new FindEntranceEvent(tilePosition);

            BaseApi.SendEvent(eventBus, findEntranceEvent);
            return(findEntranceEvent.Result != null);
        }
Ejemplo n.º 2
0
 public void FindEntranceListener(FindEntranceEvent findEntranceEvent)
 {
     findEntranceEvent.Success = true;
     findEntranceEvent.Result  = _entrances.GetValue(findEntranceEvent.Location, null);
 }