--- a/LuaAPI.wiki Tue Jan 01 21:12:43 2019 +0000
+++ b/LuaAPI.wiki Tue Jan 01 21:18:45 2019 +0000
@@ -239,6 +239,9 @@
=== <tt>onSkipTurn()</tt> (0.9.24) ===
This function calls when a hog skips its turn.
+=== <tt>onGameResult(winningClan)</tt> (0.9.25) ===
+This function calls when the game ends with a winner or in a draw. If a clan wins, `winningClan` is the clan ID of the winning clan. If the game ends in a draw, `winningClan` is set to -1f.
+
=== <tt>onSuddenDeath()</tt> ===
This function is called on the start of Sudden Death.
@@ -1046,6 +1049,12 @@
==== <tt>!SetReadyTimeLeft(newReadyTimeLeft)</tt> (0.9.25) ====
Set the remaining ready time in milliseconds. This function should only be called in onNewTurn. The current remaining ready time can be read from the variable `ReadyTimeLeft`.
+==== <tt>!SetTurnTimePaused(isPaused)</tt> (0.9.25) ====
+Pauses the turn time indefinitely if `isPaused` is set to `true`, disabled the turn time pause if `isPaused` is set to `false`.
+
+==== <tt>!GetTurnTimePaused()</tt> (0.9.25) ====
+Returns `true` if the turn time is currently paused by `SetTurnTimePaused`, otherwise returns `false`.
+
==== <tt>!EndGame()</tt> ====
Makes the game end.
@@ -1417,6 +1426,12 @@
==== <tt>!GetCampaignVar(varname)</tt> ====
Returns the value of the campaign variable `varname` as a string. See also `SaveCampaignVar`.
+==== <tt>!SaveMissionVar(varname, value)</tt> (0.9.25) ====
+Stores the value `value` (a string) into the mission variable `varname` (also a string). A mission variable is like a campaign variable, but it applies for singleplayer missions only (Training/Challenge/Scenario), excluding campaign missions.
+
+==== <tt>!GetMissionVar(varname)</tt> (0.9.25) ====
+Returns the value of the mission variable `varname` as a string. See also `SaveMissionVar`.
+
== Functions affecting the GUI ==
=== <tt>!AddCaption(text)</tt> ===