Method AddPieceCategory
|
Improve this Doc
View Source
AddPieceCategory(string, string)
Add a new Piece.PieceCategory by name. A new category
gets assigned a random integer for internal use. If you pass a vanilla category
the actual integer value of the enum is returned.
Declaration
public Piece.PieceCategory AddPieceCategory(string table, string name)
Parameters
Type |
Name |
Description |
string |
table |
Prefab or item name of the PieceTable. |
string |
name |
Name of the category. |
Returns
Type |
Description |
PieceCategory |
int value of the vanilla or custom category |