Check if you can create a certain amount of ship/defense
Ship or Defense
The number of items you wants to create
Optional parameter, if provided it will speed up the fonction
Check if you can upgrade a building
the building to upgrade
Optional parameter, if provided it will speed up the fonction
Create a defense
defense to create
number of defense to create
Create a ship
ship to create
number of ship to create
List your defenses
List your facilities
Upgrade or create a building. Don't use it for ships/defenses
The building to upgrade
List you research
List your mines and storage
List your ressources
List your ships
Start the game api
Stop the game api. You should called this before exiting your program.
Generated using TypeDoc
The GameApi is used to interact with the game itself, create and list ressources/ship/research... You should use LobbyApi to load it, don't create it yourself