migration from new repo
This commit is contained in:
commit
423134a840
26930 changed files with 3458568 additions and 0 deletions
55
Assets/_/Features/Items/Runtime/Item.cs
Normal file
55
Assets/_/Features/Items/Runtime/Item.cs
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
using System;
|
||||
|
||||
namespace Item.Runtime
|
||||
{
|
||||
public class Item
|
||||
{
|
||||
#region Getters and Setters
|
||||
|
||||
public Guid ID
|
||||
{
|
||||
get { return _id; }
|
||||
}
|
||||
|
||||
public ItemDefinitionSO Definition
|
||||
{
|
||||
get { return _definition; }
|
||||
set { _definition = value; }
|
||||
}
|
||||
|
||||
public int Quantity
|
||||
{
|
||||
get { return _quantity; }
|
||||
set { _quantity = value; }
|
||||
}
|
||||
|
||||
public float EffectValue
|
||||
{
|
||||
get { return _effectValue; }
|
||||
set { _effectValue = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Parameters
|
||||
|
||||
Guid _id;
|
||||
ItemDefinitionSO _definition;
|
||||
int _quantity;
|
||||
float _effectValue;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
public Item(Guid id, ItemDefinitionSO definition, int quantity, float effectValue)
|
||||
{
|
||||
_id = id;
|
||||
_definition = definition;
|
||||
_quantity = quantity;
|
||||
_effectValue = effectValue;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue