客户端代码修改提交
This commit is contained in:
3
Assets/Scripts/Common/Enum.meta
Normal file
3
Assets/Scripts/Common/Enum.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1a0c4fc0d6264961aeae4fd1036c8e26
|
||||
timeCreated: 1760429230
|
||||
27
Assets/Scripts/Common/Enum/ItemType.cs
Normal file
27
Assets/Scripts/Common/Enum/ItemType.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace NBF
|
||||
{
|
||||
public enum ItemType
|
||||
{
|
||||
None,
|
||||
Currency,
|
||||
Item,
|
||||
Rod,
|
||||
Reel,
|
||||
Bobber,
|
||||
Line,
|
||||
Bait,
|
||||
Lure,
|
||||
Hook,
|
||||
Weight,
|
||||
Feeder,
|
||||
Ring
|
||||
}
|
||||
|
||||
public enum ItemBasicType
|
||||
{
|
||||
None,
|
||||
Currency = 1,
|
||||
Item = 2,
|
||||
Fish = 3,
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Common/Enum/ItemType.cs.meta
Normal file
3
Assets/Scripts/Common/Enum/ItemType.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 96a7ec99208a4455ae850366a01e9bea
|
||||
timeCreated: 1760429237
|
||||
3
Assets/Scripts/Common/Utils.meta
Normal file
3
Assets/Scripts/Common/Utils.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: da865ce8b3954697b7c79adc6c3de5ec
|
||||
timeCreated: 1760429508
|
||||
10
Assets/Scripts/Common/Utils/ItemHelper.cs
Normal file
10
Assets/Scripts/Common/Utils/ItemHelper.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace NBF.Utils
|
||||
{
|
||||
public static class ItemHelper
|
||||
{
|
||||
public static ItemType GetItemType(this uint id)
|
||||
{
|
||||
return (ItemType)(id / 10000);
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Common/Utils/ItemHelper.cs.meta
Normal file
3
Assets/Scripts/Common/Utils/ItemHelper.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bbfb10d099a14e8b9b8aea80b789bdf3
|
||||
timeCreated: 1760429516
|
||||
Reference in New Issue
Block a user