예제 #1
0
        public void SelectAction(EntityAction entityAction)
        {
            if (SelectedAction != null && SelectedAction != entityAction)
            {
                DeselectAction();
            }

            SelectedAction = entityAction;
            OnActionSelected?.Invoke(this, entityAction);
        }
예제 #2
0
 /// <summary>
 /// Selects the given action to be used by the current actor.
 /// </summary>
 public void SelectAction(BattleAction action)
 {
     SelectedAction = action;
     OnActionSelected?.Invoke(SelectedAction);
 }
예제 #3
0
 public static void ActionSelected(ClientParty p, ClientTile tile, EntityAction action)
 {
     OnActionSelected?.Invoke(p, tile, action);
 }