24 lines
598 B
C#
24 lines
598 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using UnityEngine;
|
|
|
|
namespace RebootReality.jelycho.Items {
|
|
public enum ItemType {
|
|
Neutral = 0,
|
|
Egg = 1,
|
|
Sword = 2,
|
|
}
|
|
|
|
[Serializable]
|
|
public class ItemConfig {
|
|
public ItemType itemType = ItemType.Neutral;
|
|
public Sprite icon;
|
|
|
|
[MaxLength(32)] public string characterEquippedMountSlotName = "hand_right";
|
|
|
|
[Header("Chargeable")]
|
|
public bool isChargeable = false;
|
|
public float chargeDuration = 0.5f;
|
|
public float chargeCooldown = 1.0f;
|
|
}
|
|
} |