------------------PlayerLoop
| 139 | |
| 140 | //------------------PlayerLoop |
| 141 | PlayerLoop::PlayerLoop(Templateiser& ts) : LoopHandler() { |
| 142 | ts.addLoop("players", this); |
| 143 | ts.addKey("playerid", this); |
| 144 | ts.addKey("playerbzid", this); |
| 145 | ts.addKey("playercallsign", this); |
| 146 | ts.addKey("playerguid", this); |
| 147 | ts.addKey("playerip", this); |
| 148 | ts.addKey("playerteam", this); |
| 149 | ts.addKey("playerversion", this); |
| 150 | |
| 151 | ts.addKey("playerwins", this); |
| 152 | ts.addKey("playerlosses", this); |
| 153 | ts.addKey("playerscore", this); |
| 154 | ts.addKey("playerteamkills", this); |
| 155 | ts.addKey("playerrank", this); |
| 156 | |
| 157 | ts.addIF("playerbzid", this); |
| 158 | ts.addIF("playerverified", this); |
| 159 | ts.addIF("playeradmin", this); |
| 160 | |
| 161 | ts.addIF("playercanspawn", this); |
| 162 | ts.addIF("playerspawned", this); |
| 163 | |
| 164 | ts.addKey("playerlag", this); |
| 165 | ts.addKey("playerjitter", this); |
| 166 | ts.addKey("playerpacketloss", this); |
| 167 | |
| 168 | ts.addKey("playerflag", this); |
| 169 | ts.addKey("playerflagid", this); |
| 170 | |
| 171 | ts.addIF("playerflag", this); |
| 172 | |
| 173 | addNewPageCallback(this); |
| 174 | |
| 175 | playerID = -1; |
| 176 | } |
| 177 | |
| 178 | PlayerLoop::~PlayerLoop() { |
| 179 | removeNewPageCallback(this); |
nothing calls this directly
no test coverage detected