LuaAPI.wiki
changeset 650 0a106238f409
parent 649 a33b0ddce148
child 685 06cd9e0842e4
equal deleted inserted replaced
649:a33b0ddce148 650:0a106238f409
   186 This function is called every 20 game ticks, which equals 50 times a second. It reduces Lua overhead for simple monitoring that doesn’t need to happen every single tick.
   186 This function is called every 20 game ticks, which equals 50 times a second. It reduces Lua overhead for simple monitoring that doesn’t need to happen every single tick.
   187 
   187 
   188 === <tt>onNewTurn()</tt> ===
   188 === <tt>onNewTurn()</tt> ===
   189 This function calls at the start of every turn.
   189 This function calls at the start of every turn.
   190 
   190 
   191 === <tt>onSuddenDeath() (0.9.22)</tt> ===
   191 === <tt>onSuddenDeath()</tt> (0.9.22) ===
   192 This function is called on the start of Sudden Death.
   192 This function is called on the start of Sudden Death.
   193 
   193 
   194 === <tt>onGearAdd(gearUid)</tt> ===
   194 === <tt>onGearAdd(gearUid)</tt> ===
   195 This function is called when a new gear is added. Useful in combination with `GetGearType(gearUid)`.
   195 This function is called when a new gear is added. Useful in combination with `GetGearType(gearUid)`.
   196 
   196