Skip to main content

StruggleMinigameStart

Callable


  • Starts the given struggle minigame.

    This function initializes the common state and calls the requested minigame setup function.


    Parameters

    • C: Character

      The character currently doing the struggling, either on itself (ie. as Player), or on someone else.

    • MiniGame: StruggleKnownMinigames

      The minigame to start

    • PrevItem: Item

      The item currently being present on the character, or null if none

    • NextItem: Item

      The item currently being added on the character, or null if it's a removal

    • Completion: StruggleCompletionCallback

      A callback that will be called when the minigame ends

    Returns void