KMComponentPool - Qkrisi/ktanemodkit GitHub Wiki

KMComponentPool

[Serializable]
public class KMComponentPool

Used on missions to select a random or a specified module. (Not a Unity component, mainly used when creating missions.)


public int Count;

Number of modules to appear using this pool


public ComponentSource AllowedSources

Specify where should modules be selected from (Default: Base)


public List<ComponentTypeEnum> ComponentTypes;

List of vanilla module types.


public SpecialComponentTypeEnum SpecialComponentType;

Special type used for module randomization


public List<string> ModTypes;

List of module IDs (mainly used for modded modules)

Enumerations

[Flags]
public enum ComponentSource

Controls where this pool will draw from.

Values: Base, Mods


public enum SpecialComponentTypeEnum

Controls whether the modules will be chosen dynamically at runtime from whatever modules are loaded.

Values: None, ALL_SOLVABLE, ALL_NEEDY

Set to None to select specific module types.


public enum ComponentTypeEnum

The module types in the base game.

Values: Empty, Timer, Wires, BigButton, Keypad, Simon, WhosOnFirst, Memory, Morse, Venn, WireSequence, Maze, Password, NeedyVentGas, NeedyCapacitor, NeedyKnob

⚠️ **GitHub.com Fallback** ⚠️