Show / Hide Table of Contents

Method AddPiece

| Edit this page View Source

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