/// <inheritdoc /> public void HandleGameplayEvent(GameplayTag EventTag, GameplayEventData Payload) { /** * TODO: Handle triggered abilities * Search component for all abilities that are automatically triggered from a gameplay event */ OnGameplayEvent.Invoke(EventTag, Payload); }
/** * @brief Invoke a specified event. * @param a_eventName is the name of the event. * @param a_eventInfo is the information to pass into the event. * */ public static void TriggerEvent(string a_eventName, IEventInfo a_eventInfo = null) { GameplayEvent foundEvent = null; // Event exists if (instance.eventDict.TryGetValue(a_eventName, out foundEvent)) { foundEvent.Invoke(a_eventInfo); } }