LuaAPI.wiki
changeset 649 a33b0ddce148
parent 648 0830fdc658b8
child 650 0a106238f409
equal deleted inserted replaced
648:0830fdc658b8 649:a33b0ddce148
   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> ===
       
   192 This function is called on the start of Sudden Death.
       
   193 
   191 === <tt>onGearAdd(gearUid)</tt> ===
   194 === <tt>onGearAdd(gearUid)</tt> ===
   192 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)`.
   193 
   196 
   194 === <tt>onGearDelete(gearUid)</tt> ===
   197 === <tt>onGearDelete(gearUid)</tt> ===
   195 This function is called when a new gear is deleted. Useful in combination with `GetGearType(gearUid)`.
   198 This function is called when a new gear is deleted. Useful in combination with `GetGearType(gearUid)`.