2024-01-08 13:13:35 +08:00
|
|
|
|
using Framework;
|
|
|
|
|
|
using Gameplay.Common;
|
2024-01-04 19:14:18 +08:00
|
|
|
|
using Gameplay.Net;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Gameplay
|
|
|
|
|
|
{
|
|
|
|
|
|
public partial class CommonUtils
|
|
|
|
|
|
{
|
|
|
|
|
|
public static uint GetItemCount(int id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Actor.Instance.Item.GetItemCount(id);
|
|
|
|
|
|
}
|
2024-01-08 13:13:35 +08:00
|
|
|
|
public static string GetItemName(int id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return CommonUtils.GetLocalizeText(TableManager.Instance.Tables.Item.Get(id).NameLocal);
|
|
|
|
|
|
}
|
2024-01-15 14:16:30 +08:00
|
|
|
|
public static string GetItemPath(int id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return TableManager.Instance.Tables.Item.Get(id).IconPath;
|
|
|
|
|
|
}
|
2024-01-04 19:14:18 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|