Example #1
0
    public bool AddItems(ItemsDicitonary items)
    {
        foreach (var pair in items)
        {
            AddItem(pair.Key, pair.Value);
        }

        return(true);
    }
Example #2
0
 protected virtual void OnDestroy()
 {
     if (items != null)
     {
         items.Clear();
     }
     items = null;
     if (_itemsList != null)
     {
         _itemsList.Clear();
     }
     _itemsList = null;
 }
Example #3
0
    public ItemsDicitonary GetItemsDictionary()
    {
        var result = new ItemsDicitonary(items);

        return(result);
    }
Example #4
0
[System.Serializable] public class ItemsDicitonary : SerializableDictionary <BaseItem, int> { public ItemsDicitonary(ItemsDicitonary dict = null) : base(dict)
                                                                                              {
                                                                                              }