KMBombModule - Qkrisi/ktanemodkit GitHub Wiki

KMBombModule

[DisallowMultipleComponent]
public class KMBombModule : MonoBehaviour

Component for solvable modules on the bomb.

A module should have a KMSelectable component as well.


public string ModuleType;

ID of the module


public string ModuleDisplayName;

Name of the module


public bool RequiresTimerVisibility;

If it's set to true, the module will only appear on the same side of the bomb as the timer.


public KMModuleActivateEvent OnActivate;

Delegate that is fired when every module on the bomb is spawned and the timer has started (and the lights turn on).

Delegate signature: delegate void KMModuleActivateEvent()


public void HandlePass()

Calling this will mark the module as solved.


public void HandleStrike()

Calling this will issue a strike.


public int GetRuleGenerationSeed()

Obsolete: Not used by the game. To implement rule seed, use KMRuleSeedable instead.

Returns the random seed used to generate the rules for the game.