37 lines
987 B
C#
37 lines
987 B
C#
using SepCore.DataTable;
|
|
|
|
namespace SepCore.Definition
|
|
{
|
|
public class PropItem
|
|
{
|
|
private readonly StatModifier[] _modifiers;
|
|
public string Title { get; private set; }
|
|
public string IconAssetName { get; private set; }
|
|
public ItemRarity Rarity { get; private set; }
|
|
public StatModifier[] Modifiers => _modifiers;
|
|
|
|
public PropItem(DRProp prop)
|
|
{
|
|
if (prop == null) return;
|
|
|
|
_modifiers = prop.Modifiers;
|
|
Title = prop.Title;
|
|
Rarity = prop.Rarity;
|
|
IconAssetName = prop.IconAssetName;
|
|
}
|
|
|
|
public PropItem(StatModifier[] modifiers)
|
|
{
|
|
_modifiers = modifiers;
|
|
}
|
|
|
|
public PropItem(StatModifier[] modifiers, ItemRarity rarity, string title, string iconAssetName)
|
|
{
|
|
_modifiers = modifiers;
|
|
Title = title;
|
|
Rarity = rarity;
|
|
IconAssetName = iconAssetName;
|
|
}
|
|
}
|
|
}
|