init
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using RPGCore.BackpackEquipment.Objects;
|
||||
using RPGCore.Core.Objects;
|
||||
using RPGCore.ObjectModules.EventObjectModule;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RPGCore.BackpackEquipment.Data
|
||||
{
|
||||
[Serializable]
|
||||
public sealed class ItemObjectData : BaseData<ItemObject>
|
||||
{
|
||||
[Header("Current state")]
|
||||
public BaseObject carriedBy { get; set; }
|
||||
|
||||
[Header("Stacking")]
|
||||
[field: SerializeField] public bool stackable { get; private set; } = false;
|
||||
[field: SerializeField] [Min(1)] public int stackSize { get; set; } = 1;
|
||||
[field: SerializeField] [Min(1)] public int stackSizeMax { get; private set; } = 1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7f4c99a92ec24e4188e68b383aafa544
|
||||
timeCreated: 1774024999
|
||||
Reference in New Issue
Block a user