Method AddPiece
| Edit this page View SourceAddPiece(CustomPiece)
Add a CustomPiece to the game.
Checks if the custom piece is valid and unique and adds it to the list of custom pieces.
Custom pieces are added to their respective PieceTables after ObjectDB.Awake.
Checks if the custom piece is valid and unique and adds it to the list of custom pieces.
Custom pieces are added to their respective PieceTables after ObjectDB.Awake.
Declaration
public bool AddPiece(CustomPiece customPiece)
Parameters
| Type | Name | Description |
|---|---|---|
| CustomPiece | customPiece | The custom piece to add. |
Returns
| Type | Description |
|---|---|
| bool | true if the custom piece was added to the manager. |