Skip to main content

ItemContainer.InitializeItemContainer

Declaration#

public void InitializeItemContainer(Inventory host, string maxItems, string maxWeight, string weightModifier)

Parameters#

NameDescription
hostInventory hosting the object
maxItemsMaximum items value
maxWeightMaximum weight value
weightModifierWeight modifier value

Description#

Initialize the object for an item container

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(ItemContainer target, Inventory other)    {        target.InitializeItemContainer(other, "100", "0", "1");    }
}