Class CustomPieceTable
Main interface for adding custom piece tables to the game.
All custom piece tables have to be wrapped inside this class to add it to Jötunns PieceManager.
All custom piece tables have to be wrapped inside this class to add it to Jötunns PieceManager.
Inherited Members
Namespace: Jotunn.Entities
Assembly: Jotunn.dll
Syntax
public class CustomPieceTable : CustomEntity
Constructors
| Name | Description |
|---|---|
| CustomPieceTable(AssetBundle, string, PieceTableConfig) | Custom piece table from a prefab loaded from an AssetBundle with a PieceTableConfig attached. |
| CustomPieceTable(GameObject) | Custom piece table from a prefab. |
| CustomPieceTable(GameObject, PieceTableConfig) | Custom piece table from a prefab with a PieceTableConfig attached. |
| CustomPieceTable(string, PieceTableConfig) | "Empty" custom piece table with a PieceTableConfig attached. |
Properties
| Name | Description |
|---|---|
| GuessUsage | Indicator if Jötunn guesses the hammer usage tags for pieces added to this
PieceTable which have no usage tags set. Defaults to true.Set to false to keep the usage tags defined on the piece prefabs untouched. |
| PieceTable | The PieceTable component for this custom piece table as a shortcut. |
| PieceTablePrefab | The prefab for this custom piece table. |
Methods
| Name | Description |
|---|---|
| Equals(object) | Determines whether the specified object is equal to the current object. |
| GetHashCode() | Serves as the default hash function. |
| IsValid() | Checks if a custom piece table is valid (i.e. has a prefab and a PieceTable component). |
| ToString() | Returns a string that represents the current object. |