Card.cs 918 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using FSRole;
  5. namespace FSCard
  6. {
  7. /*
  8. * 卡片的总类
  9. */
  10. public enum CardType {
  11. // 攻击型
  12. CARD_TYPE_ATTACK = 1,
  13. // 防御型
  14. CARD_TYPE_DEFANCE = 2,
  15. // 功能型
  16. }
  17. /*
  18. * 此为卡片组件
  19. */
  20. public interface Card {
  21. // 种类
  22. CardType Type {
  23. get;
  24. set;
  25. }
  26. // 花费的能量
  27. int Count {
  28. get;
  29. set;
  30. }
  31. // 韧性
  32. int Tenacity {
  33. get;
  34. set;
  35. }
  36. // 数值
  37. int Value {
  38. set;
  39. get;
  40. }
  41. // 目标
  42. Role Target {
  43. set;
  44. get;
  45. }
  46. // 执行
  47. void OnExecute();
  48. }
  49. }