You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
793 B
31 lines
793 B
using ProtoCSStruct;
|
|
|
|
|
|
namespace Operation
|
|
{
|
|
public static class OperationCommSvc
|
|
{
|
|
public static bool CheckItem(GoodsType type, string id, int count)
|
|
{
|
|
switch (type)
|
|
{
|
|
case GoodsType.Equipment:
|
|
var eq = EquipDescMgr.Instance.GetConfig(id);
|
|
if (eq == null)
|
|
{
|
|
return false;
|
|
}
|
|
break;
|
|
case GoodsType.Items:
|
|
var desc = ItemDescMgr.Instance.GetConfig(id);
|
|
if (desc == null)
|
|
{
|
|
return false;
|
|
}
|
|
break;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
|