Show / Hide Table of Contents

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 Source

CanRemovePieces

Indicator if the can also remove pieces. Defaults to true.
Declaration
public bool CanRemovePieces { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

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[]
| Improve this Doc View Source

UseCategories

Indicator if the uses the vanilla categories. Defaults to true.
Declaration
public bool UseCategories { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

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 Source

Apply(GameObject)

Apply this configs values to a piece table GameObject.
Declaration
public void Apply(GameObject prefab)
Parameters
Type Name Description
GameObject prefab
| Improve this Doc View Source

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.

Extension Methods

PrefabExtension.FixReferences(Object)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾