Class
Enables your game server to make itself discoverable on the local network.
loadAdvertContent
( _: [String: String] ) → GPGameServerAdvertiserA convenience method which attaches the passed dictionary object as supporting information, to help GPGameClientBrowser decide whether “the server that self is advertising-for” is compatible to join into.
wake
: ( _: GPGameServerAdvertiser )Prompts the passed GPGameServerAdvertiser object to start a new advertising campaign for the server it represents. It stops any existing advert campaigns before starting a new one. The content advertised may be supplied through the loadAdvertContent(_:[String: String])
method, or directly via the advertContent
variable. Call this method inside the init
function of the implementing class.
serviceType
: StringGPGameClientBrowser objects which uses the same value as self, can request to join the server self is advertising. It has the following constraint:
For detailed convention, refer to domain naming convention