Table of Contents

Class EventsGameplay

Namespace
Squiggles.Core.Events
Assembly
SquigglesCommon4X.dll
public class EventsGameplay
Inheritance
EventsGameplay
Inherited Members

Methods

TriggerOnGameStart()

Triggers OnGameStart

public void TriggerOnGameStart()

TriggerOnLevelLoaded()

Triggers OnLevelLoaded

public void TriggerOnLevelLoaded()

TriggerOnPlayerDie()

Triggers OnPlayerDie

public void TriggerOnPlayerDie()

TriggerOnPlayerWin()

Triggers OnPlayerWin

public void TriggerOnPlayerWin()

TriggerPlayerMoneyChange(int)

[MarkForRefactor("Obselete", "Will be removed in future refactor. No current workaround")]
public void TriggerPlayerMoneyChange(int new_total)

Parameters

new_total int

TriggerPlayerStatsUpdated(float, float, float, float)

[MarkForRefactor("Obselete", "Will be removed in future refactor. No current workaround")]
public void TriggerPlayerStatsUpdated(float health, float max_health, float energy, float max_energy)

Parameters

health float
max_health float
energy float
max_energy float

TriggerRequestPlayerAbleToMove(bool)

public void TriggerRequestPlayerAbleToMove(bool can_move)

Parameters

can_move bool

Events

OnGameStart

Called when the game first starts (not used internally)

public event Action OnGameStart

Event Type

Action

OnLevelLoaded

Called when a level is loaded. (not used internally)

public event Action OnLevelLoaded

Event Type

Action

OnPlayerDie

Called when the player "dies" if that is possible in the game. (Not used internally)

public event Action OnPlayerDie

Event Type

Action

OnPlayerStatsUpdated

Called when the player's "stats" change: health, max health, energy, and max energy respectively.

[MarkForRefactor("Obselete", "Will be removed in future refactor. No current workaround")]
public event Action<float, float, float, float> OnPlayerStatsUpdated

Event Type

Action<float, float, float, float>

OnPlayerWin

Called when the player "wins" if that is possible in the game. (Not used internally)

public event Action OnPlayerWin

Event Type

Action

PlayerMoneyChanged

Called when the player's "money" changes

[MarkForRefactor("Obselete", "Will be removed in future refactor. No current workaround")]
public event Action<int> PlayerMoneyChanged

Event Type

Action<int>

RequestPlayerAbleToMove

Called when a system is requesting the player is/isn't able to move. Used internally for things like cutscenes and GUI to prevent the player from moving during them.

public event Action<bool> RequestPlayerAbleToMove

Event Type

Action<bool>