SelectableObjectAction.cs 962 B

123456789101112131415161718192021222324
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using KairoEngine.Core.GameActions;
  5. using KairoEngine.Stockpiles;
  6. using Sirenix.OdinInspector;
  7. namespace KairoEngine.GameTools.Selectables
  8. {
  9. /// <summary>
  10. /// Represents an action that is contained in a component implementing the SelectableObject interface.
  11. /// </summary>
  12. [System.Serializable]
  13. public class SelectableObjectAction
  14. {
  15. [FoldoutGroup("@title")] public string title = "New SelectableObjectAction";
  16. [FoldoutGroup("@title")] public bool showAction = true;
  17. [FoldoutGroup("@title")] public Sprite icon;
  18. [FoldoutGroup("@title")] public string description;
  19. [FoldoutGroup("@title"), PropertySpace(1, 1)] public List<KairoEngine.Stockpiles.Stockpile> cost = new List<KairoEngine.Stockpiles.Stockpile>();
  20. [FoldoutGroup("@title"), InlineProperty, HideLabel] public GameActionsController actions;
  21. }
  22. }