|
OpenTTD Source
14.0-beta1
|
Go to the documentation of this file.
10 #ifndef SOCIAL_INTEGRATION_H
11 #define SOCIAL_INTEGRATION_H
42 static std::vector<SocialIntegrationPlugin *>
GetPlugins();
@ FAILED
The plugin failed to initialize.
std::string name
Name of the plugin.
static void EventEnterSingleplayer(uint map_width, uint map_height)
Event: user entered a singleplayer game.
State state
Result of the plugin's init function.
std::string basepath
Base path of the plugin.
@ INVALID_SIGNATURE
The signature of the plugin is invalid.
@ UNLOADED
The plugin is unloaded upon request.
@ DUPLICATE
Another plugin of the same Social Platform is already loaded.
static void Shutdown()
Shutdown the social integration system, and all social integration plugins that are loaded.
static void EventEnterMultiplayer(uint map_width, uint map_height)
Event: user entered a multiplayer game.
@ RUNNING
The plugin is successfully loaded and running.
static void EventEnterScenarioEditor(uint map_width, uint map_height)
Event: user entered the Scenario Editor.
std::string version
Version of the plugin.
static void EventJoiningMultiplayer()
Event: user is joining a multiplayer game.
static void EventEnterMainMenu()
Event: user entered the main menu.
static void RunCallbacks()
Allow any social integration library to handle their own events.
@ UNSUPPORTED_API
The plugin does not support the current API version.
static void Initialize()
Initialize the social integration system, loading any social integration plugins that are available.
@ PLATFORM_NOT_RUNNING
The plugin failed to initialize because the Social Platform is not running.
std::string social_platform
Social platform this plugin is for.
static std::vector< SocialIntegrationPlugin * > GetPlugins()
Get the list of loaded social integration plugins.