This wiki is archived from 2021-09-05
Planetary Annihilation net API: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 30: | Line 30: | ||
and if delayed: | and if delayed: | ||
* PollWaitTimeMS | * PollWaitTimeMS | ||
== api.net.connect( params ) == | == api.net.connect( params ) == |
Revision as of 21:03, 17 April 2016
File:Titans-icon.png Planetary Annihilation net API
api.net.startGame( region, mode )
create a new local or Uber game:
- region: local or valid Uber region string
- mode: Config or gw optionally prefixed with content eg PAExpansion1:Config for Titans
returns object with:
- LobbyId (string)
- ServerHostname (string)
- ServerPort (string)
- Ticket (string)
- Expires (string)
api.net.joinGame( params )
joins an Uber game based on a lobbyId:
- lobbyId (string)
- all other params are ignored
returns object with:
- ServerHostName
- ServerPort
and if lobbyId resolved:
- LobbyId
- Ticket
- Expires
and if delayed:
- PollWaitTimeMS
api.net.connect( params )
joins an Uber game based on a lobbyId:
- lobbyId (string)
- all other params are ignored
returns object with:
- ServerHostName
- ServerPort