22 lines
437 B
C#
22 lines
437 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace DDD
|
|
{
|
|
public class ItemViewModel
|
|
{
|
|
public string Id;
|
|
public ItemType ItemType;
|
|
public string NameKey;
|
|
public string DescriptionKey;
|
|
public Sprite Icon;
|
|
public int? Count;
|
|
|
|
public Action<ItemViewModel> OnCountChanged;
|
|
|
|
public void UpdateCount()
|
|
{
|
|
OnCountChanged?.Invoke(this);
|
|
}
|
|
}
|
|
} |