Example #1
0
    public List <string> GetItemsByType(List <int> types)
    {
        var itemsByType = new List <string>();
        var items       = model.GetItems();

        foreach (var item in items)
        {
            var config = ItemConfig.Get(item.id);
            if (types.Contains(config.type))
            {
                itemsByType.Add(item.guid);
            }
        }

        return(itemsByType);
    }