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; } } }