Method AddPieceCategory
| Improve this Doc View SourceAddPieceCategory(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 name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Name of the category. |
Returns
Type | Description |
---|---|
PieceCategory | int value of the vanilla or custom category |