Skip to main content

ItemContainer.Initialize

Declaration#

public void Initialize(Inventory host, List<GDTKItemCategory> useCategories, bool ignoreLimits, List<InventoryPluginWrapper> overrideWrappers)

Parameters#

NameDescription
hostInventory hosting the object
useCategoriesList of allowed categories (overrides other settings)
ignoreLimitsIgnore limits from categories, plugins, etc
overrideWrappersList of plugin wrappers to override existing values

Description#

Initialize the object

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(ItemContainer target, Inventory other)    {        target.Initialize(other, null, false, null);    }
}