# HG changeset patch
# User Wuzzy
# Date 1525300362 -3600
# Node ID a0547181393a941a57a78f4b4e1ccdff65f813c9
# Parent  77bece04d56330daacf2c4f68a413221a7677524
LuaLibraryTracker: TOC 2

diff -r 77bece04d563 -r a0547181393a LuaLibraryTracker.wiki
--- a/LuaLibraryTracker.wiki	Wed May 02 23:31:53 2018 +0100
+++ b/LuaLibraryTracker.wiki	Wed May 02 23:32:42 2018 +0100
@@ -1,6 +1,9 @@
 #summary Lua library documentation: Tracker
 #labels !LuaLibrary
 = Lua library: `Tracker` =
+<wiki:toc max_depth="3" />
+
+== Introduction ==
 This Lua library is intended to be used if you need to keep track of gears. It can also keep track of teams and clans and as an extra functionality it can also store variables for a gear, team or clan.
 
 To set it up you need to add some hooks in different events. The hooks `trackGear` and `trackDeletion` to `onGearAdd` and `onGearDelete` respectively. It is strongly recommended to only track the gears you are interested in as, especially with snow on, the amount of gears can go up high and that will slow down the script. To keep track of teams you need to keep track of `gtHedgehog` and `gtResurrector` (if resurrection might be used) and add `trackTeams` to `onGameStart`.
@@ -17,10 +20,9 @@
 end</code>
 This will kill all hogs if a target is destroyed.
 
-To see a commented example of the tracker in use by a script you can look at
+To see a commented example of `Tracker` in use by a script you can look at
 [https://hg.hedgewars.org/hedgewars/file/default/share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua Random Weapons].
 
-<wiki:toc max_depth="3" />
 == Tracking functions ==
 === `trackGear(gear)` ===
 Will keep track of the gear.