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); }
public void FindEntranceListener(FindEntranceEvent findEntranceEvent) { findEntranceEvent.Success = true; findEntranceEvent.Result = _entrances.GetValue(findEntranceEvent.Location, null); }