Пример #1
0
    public int GetCountByEditorType(int editorType)
    {
        ItemProto itemData = ItemProto.GetItemDataByEditorType(editorType);

        if (itemData.category == quest_item)
        {
            return(_missionPak.GetCountByEditorType(editorType));
        }
        else
        {
            return(_playerPak.GetCountByEditorType(editorType));
        }
    }