|  | FCV Engine 0.1
    A tool and framework for tutorials in game development | 
Scriptable object to hold all items assigned in editor to make ItemName property field to work properly Designed to make the string comparison easier. More...
 
 | Public Member Functions | |
| List< string > | GetAllItemNames () | 
| Gets all item names in list. | |
| string | GetName (int index) | 
| Gets the name of a certain index in list. | |
| void | UpdateName (int index, string itemName) | 
| Updates the name of specified index in database. | |
| bool | HasItem (string itemName) | 
| returns true if the itemname is already in database | |
| void | AddItem (string itemName) | 
| Tries to add item to database with itemName, gives error if item name already exists in database. | |
| void | ClearItems () | 
| Removes all items from database. | |
Scriptable object to hold all items assigned in editor to make ItemName property field to work properly Designed to make the string comparison easier.
Definition at line 8 of file ItemDatabase.cs.
| void AddItem | ( | string | itemName | ) | 
Tries to add item to database with itemName, gives error if item name already exists in database.
| itemName | 
Definition at line 61 of file ItemDatabase.cs.
| List< string > GetAllItemNames | ( | ) | 
Gets all item names in list.
Definition at line 16 of file ItemDatabase.cs.
| string GetName | ( | int | index | ) | 
Gets the name of a certain index in list.
| index | index of item | 
Definition at line 26 of file ItemDatabase.cs.
| bool HasItem | ( | string | itemName | ) | 
returns true if the itemname is already in database
| itemName | name of item | 
Definition at line 52 of file ItemDatabase.cs.
| void UpdateName | ( | int | index, | 
| string | itemName ) | 
Updates the name of specified index in database.
| index | index of item | 
| itemName | new name of the item | 
Definition at line 36 of file ItemDatabase.cs.