C# Class Sol.Container

Inheritance: Menu
Show file Open project: Stumpstump/RoverGame

Public Properties

Property Type Description
InventorySlotContainer UnityEngine.Transform
closeButton UnityEngine.UI.Button
containerSlotPrefab ContainerSlot
containerSlots List
ingredientsInInventory List
inventoryButton UnityEngine.UI.Button
title UnityEngine.UI.Text

Public Methods

Method Description
AddInventoryItem ( Ingredient ingredient, int count ) : void
BuildInventorySlot ( Ingredient ingredient, int count ) : void
Close ( ) : void
GetIngredientAmount ( Ingredient ingredient ) : int
GetIngredientAmount ( int ingredientId ) : int
InitializeInventorySlots ( ) : void
Open ( ) : void
Open ( List ingredients, ContainerObject container ) : void
RemoveInventoryItem ( Ingredient ingredient, int count ) : void

Private Methods

Method Description
Awake ( ) : void
OpenInventory ( ) : void
Update ( ) : void

Method Details

AddInventoryItem() public method

public AddInventoryItem ( Ingredient ingredient, int count ) : void
ingredient Ingredient
count int
return void

BuildInventorySlot() public method

public BuildInventorySlot ( Ingredient ingredient, int count ) : void
ingredient Ingredient
count int
return void

Close() public method

public Close ( ) : void
return void

GetIngredientAmount() public method

public GetIngredientAmount ( Ingredient ingredient ) : int
ingredient Ingredient
return int

GetIngredientAmount() public method

public GetIngredientAmount ( int ingredientId ) : int
ingredientId int
return int

InitializeInventorySlots() public method

public InitializeInventorySlots ( ) : void
return void

Open() public method

public Open ( ) : void
return void

Open() public method

public Open ( List ingredients, ContainerObject container ) : void
ingredients List
container ContainerObject
return void

RemoveInventoryItem() public method

public RemoveInventoryItem ( Ingredient ingredient, int count ) : void
ingredient Ingredient
count int
return void

Property Details

InventorySlotContainer public property

public Transform,UnityEngine InventorySlotContainer
return UnityEngine.Transform

closeButton public property

public Button,UnityEngine.UI closeButton
return UnityEngine.UI.Button

containerSlotPrefab public property

public ContainerSlot,Sol containerSlotPrefab
return ContainerSlot

containerSlots public property

public List containerSlots
return List

ingredientsInInventory public property

public List ingredientsInInventory
return List

inventoryButton public property

public Button,UnityEngine.UI inventoryButton
return UnityEngine.UI.Button

title public property

public Text,UnityEngine.UI title
return UnityEngine.UI.Text