Class ObjectManager
Inheritance
System.Object
ObjectManager
Assembly: JotunnLib.dll
Syntax
public class ObjectManager : Manager
Properties
|
Improve this Doc
View Source
Instance
Declaration
public static ObjectManager Instance { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetItemDrop(String)
Declaration
public ItemDrop GetItemDrop(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
| Type |
Description |
| ItemDrop |
|
|
Improve this Doc
View Source
GetItemPrefab(String)
Declaration
public GameObject GetItemPrefab(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
| Type |
Description |
| GameObject |
|
|
Improve this Doc
View Source
RegisterItem(GameObject)
Registers new item from given GameObject. GameObject MUST be also registered as a prefab
Declaration
public void RegisterItem(GameObject item)
Parameters
| Type |
Name |
Description |
| GameObject |
item |
GameObject to use for item
|
|
Improve this Doc
View Source
RegisterItem(String)
Registers a new item from given prefab name
Declaration
public void RegisterItem(string prefabName)
Parameters
| Type |
Name |
Description |
| System.String |
prefabName |
Name of prefab to use for item
|
|
Improve this Doc
View Source
RegisterRecipe(RecipeConfig)
Declaration
public void RegisterRecipe(RecipeConfig recipeConfig)
Parameters
| Type |
Name |
Description |
| RecipeConfig |
recipeConfig |
Recipe details
|
|
Improve this Doc
View Source
RegisterRecipe(Recipe)
Declaration
public void RegisterRecipe(Recipe recipe)
Parameters
| Type |
Name |
Description |
| Recipe |
recipe |
|
Events
|
Improve this Doc
View Source
ObjectRegister
Declaration
public event EventHandler ObjectRegister
Event Type
| Type |
Description |
| System.EventHandler |
|