Module twdll
Core twdll functions available in all games.
Functions
| Log (msg) | Log a message to the console. |
| set_max_units_in_army (val) | Set the maximum number of units allowed in an army. |
| set_max_units_in_navy (val) | Set the maximum number of units allowed in a navy. |
| GameBuild () | Get the game build name. |
Functions
- Log (msg)
-
Log a message to the console.
Parameters:
- msg The message to log
Usage:
twdll.Log("Hello from C++!")
- set_max_units_in_army (val)
-
Set the maximum number of units allowed in an army.
Parameters:
- val The maximum number of units
Usage:
twdll.set_max_units_in_army(100)
- set_max_units_in_navy (val)
-
Set the maximum number of units allowed in a navy.
Parameters:
- val The maximum number of units
Usage:
twdll.set_max_units_in_navy(50)
- GameBuild ()
-
Get the game build name.
Returns:
-
The game name string
Usage:
local game = twdll.GameBuild()