PO/Assets/Scripts/Configs/CardConfig.cs

56 lines
1.1 KiB
C#
Raw Normal View History

2022-01-12 10:06:03 +03:00
using System;
using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
2022-01-12 10:06:03 +03:00
2022-01-17 18:24:11 +03:00
[CreateAssetMenu(fileName = "CardConfig", menuName = "Configs/CardConfig")]
2022-01-12 10:06:03 +03:00
public class CardConfig : ScriptableObject
{
public CardCharacteristics CardCharacteristics;
}
[Serializable]
public enum Specialization
{
meleeAtack,
longAttack,
healing
};
[Serializable]
public enum AttackCount : int
{
none,
one,
two,
three
};
[Serializable]
2022-01-12 10:06:03 +03:00
public class CardCharacteristics
{
public string cardName;
public Sprite picture;
[TextArea(3, 6)]
public string description;
[Tooltip("specialization is necessary for the right choice of goals")]
public Specialization specialization;
2022-01-12 10:06:03 +03:00
[Header("Cost")]
public int quantityStamina;
public int quantityHealth;
[Space]
[Header("Damage")]
public int damage;
[Space]
[Header("Effects")]
2022-01-15 23:26:40 +03:00
public int addHealth;
2022-01-13 16:15:53 +03:00
public int addStamina;
2022-01-15 23:26:40 +03:00
public int addArmor;
[Header("Mass Damage")]
public AttackCount enemyCount = AttackCount.none;
2022-01-12 10:06:03 +03:00
}