migration from new repo
This commit is contained in:
commit
423134a840
26930 changed files with 3458568 additions and 0 deletions
16
Assets/_/Features/Items/Runtime/Item.Runtime.asmdef
Normal file
16
Assets/_/Features/Items/Runtime/Item.Runtime.asmdef
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"name": "Item.Runtime",
|
||||
"rootNamespace": "Item.Runtime",
|
||||
"references": [
|
||||
"GUID:2ca720bbf8aa349608caa5ce4acaa603"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
7
Assets/_/Features/Items/Runtime/Item.Runtime.asmdef.meta
Normal file
7
Assets/_/Features/Items/Runtime/Item.Runtime.asmdef.meta
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7a6677577d78940c08105c0284857640
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
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
|
||||
}
|
||||
}
|
||||
3
Assets/_/Features/Items/Runtime/Item.cs.meta
Normal file
3
Assets/_/Features/Items/Runtime/Item.cs.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a3c7c28ba74e48599195313ae236b394
|
||||
timeCreated: 1754301773
|
||||
12
Assets/_/Features/Items/Runtime/ItemDefinitionSO.cs
Normal file
12
Assets/_/Features/Items/Runtime/ItemDefinitionSO.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace Item.Runtime
|
||||
{
|
||||
[CreateAssetMenu(fileName = "New Item Definition", menuName = "Guild Tycoon/Items/Generation", order = 0)]
|
||||
public class ItemDefinitionSO : ScriptableObject
|
||||
{
|
||||
[SerializeField] Item _data;
|
||||
|
||||
public string DisplayNameKey;
|
||||
}
|
||||
}
|
||||
3
Assets/_/Features/Items/Runtime/ItemDefinitionSO.cs.meta
Normal file
3
Assets/_/Features/Items/Runtime/ItemDefinitionSO.cs.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: fd6d5bd4844d4b1ba600841206a74c75
|
||||
timeCreated: 1754302284
|
||||
10
Assets/_/Features/Items/Runtime/ItemRarityEnum.cs
Normal file
10
Assets/_/Features/Items/Runtime/ItemRarityEnum.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
namespace Item.Runtime
|
||||
{
|
||||
public enum ItemRarityEnum
|
||||
{
|
||||
Commun,
|
||||
Rare,
|
||||
Epic,
|
||||
Legendary,
|
||||
}
|
||||
}
|
||||
3
Assets/_/Features/Items/Runtime/ItemRarityEnum.cs.meta
Normal file
3
Assets/_/Features/Items/Runtime/ItemRarityEnum.cs.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a6ff93a7faa14703aaf443396da632f2
|
||||
timeCreated: 1754302818
|
||||
9
Assets/_/Features/Items/Runtime/ItemReward.cs
Normal file
9
Assets/_/Features/Items/Runtime/ItemReward.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace Item.Runtime
|
||||
{
|
||||
[System.Serializable]
|
||||
public class ItemReward
|
||||
{
|
||||
public ItemDefinitionSO m_itemDefinition;
|
||||
public int m_quantity;
|
||||
}
|
||||
}
|
||||
3
Assets/_/Features/Items/Runtime/ItemReward.cs.meta
Normal file
3
Assets/_/Features/Items/Runtime/ItemReward.cs.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a196415712e44226a632b5ebb42d9ebd
|
||||
timeCreated: 1754304237
|
||||
11
Assets/_/Features/Items/Runtime/ItemTypeEnum.cs
Normal file
11
Assets/_/Features/Items/Runtime/ItemTypeEnum.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace Item.Runtime
|
||||
{
|
||||
public enum ItemTypeEnum
|
||||
{
|
||||
Weapon,
|
||||
Armor,
|
||||
Accessory,
|
||||
Consumable,
|
||||
Gold,
|
||||
}
|
||||
}
|
||||
3
Assets/_/Features/Items/Runtime/ItemTypeEnum.cs.meta
Normal file
3
Assets/_/Features/Items/Runtime/ItemTypeEnum.cs.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1f1d5303ccf146b3ad9ec50a6f74e5cd
|
||||
timeCreated: 1754302857
|
||||
Loading…
Add table
Add a link
Reference in a new issue