Class PieceTableConfig
Configuration class for adding custom piece tables.
Inheritance
System.Object
PieceTableConfig
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Jotunn.Configs
Assembly: Jotunn.dll
Syntax
public class PieceTableConfig
Properties
| Improve this Doc View SourceCanRemovePieces
Indicator if the can also remove pieces. Defaults to
true
.
Declaration
public bool CanRemovePieces { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CustomCategories
Array of custom categories the uses.
Will be ignored when UseCustomCategories is false.
Declaration
public string[] CustomCategories { get; set; }
Property Value
Type | Description |
---|---|
System.String[] |
UseCategories
Indicator if the uses the vanilla categories. Defaults to
true
.
Declaration
public bool UseCategories { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
UseCustomCategories
Indicator if the uses custom categories. Defaults to
false
.
Declaration
public bool UseCustomCategories { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceApply(GameObject)
Apply this configs values to a piece table GameObject.
Declaration
public void Apply(GameObject prefab)
Parameters
Type | Name | Description |
---|---|---|
GameObject | prefab |
GetCategories()
Creates the final categories array for this .
Adds vanilla categories when UseCategories is true.
Adds custom categories when UseCustomCategories is true.
Declaration
public string[] GetCategories()
Returns
Type | Description |
---|---|
System.String[] | Array of category strings. |