public void SelectAction(EntityAction entityAction) { if (SelectedAction != null && SelectedAction != entityAction) { DeselectAction(); } SelectedAction = entityAction; OnActionSelected?.Invoke(this, entityAction); }
/// <summary> /// Selects the given action to be used by the current actor. /// </summary> public void SelectAction(BattleAction action) { SelectedAction = action; OnActionSelected?.Invoke(SelectedAction); }
public static void ActionSelected(ClientParty p, ClientTile tile, EntityAction action) { OnActionSelected?.Invoke(p, tile, action); }