ServerTester: Difference between revisions
From Crumbled World Wiki
(Created page with "{{:ServerTesterExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |ServerTester() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- | |parseServerTable(object table) |Parses a server table recived from the internet. |- |bool |hasNewServerInfo() |Returns true if a new server has been confirmed |- |table |ServerTester:popNewServe...") |
(No difference)
|
Latest revision as of 14:26, 5 July 2025
Constructor
| function | description |
|---|---|
| ServerTester() |
Functions
| return | function | description |
|---|---|---|
| parseServerTable(object table) | Parses a server table recived from the internet. | |
| bool | hasNewServerInfo() | Returns true if a new server has been confirmed |
| table | popNewServerInfo() | Pops server info from the list if hasNewServerInfo()==true. returns table formated like {ip="192.168.1.2",port=27015,info="Map:mapName.map;difficulty:Normal"} |
| bool | isFinished() | Returns true if there is more servers on the list that has not been tested |