Show / Hide Table of Contents

Method AddPieceCategory

| Edit this page View Source

AddPieceCategory(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
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾