ItemContainer.InitializeItemContainer
Declaration#
public void InitializeItemContainer(Inventory host, string maxItems, string maxWeight, string weightModifier)Parameters#
| Name | Description |
|---|---|
| host | Inventory hosting the object |
| maxItems | Maximum items value |
| maxWeight | Maximum weight value |
| weightModifier | Weight 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"); }
}