OpenTTD Source 20241224-master-gf74b0cf984
|
Static Public Member Functions | |
static std::vector< SocialIntegrationPlugin * > | GetPlugins () |
Get the list of loaded social integration plugins. | |
static void | Initialize () |
Initialize the social integration system, loading any social integration plugins that are available. | |
static void | Shutdown () |
Shutdown the social integration system, and all social integration plugins that are loaded. | |
static void | RunCallbacks () |
Allow any social integration library to handle their own events. | |
static void | EventEnterMainMenu () |
Event: user entered the main menu. | |
static void | EventEnterScenarioEditor (uint map_width, uint map_height) |
Event: user entered the Scenario Editor. | |
static void | EventEnterSingleplayer (uint map_width, uint map_height) |
Event: user entered a singleplayer game. | |
static void | EventEnterMultiplayer (uint map_width, uint map_height) |
Event: user entered a multiplayer game. | |
static void | EventJoiningMultiplayer () |
Event: user is joining a multiplayer game. | |
Definition at line 37 of file social_integration.h.
|
static |
Event: user entered the main menu.
Definition at line 213 of file social_integration.cpp.
References _plugins, and PluginCall().
|
static |
Event: user entered a multiplayer game.
Definition at line 234 of file social_integration.cpp.
References _plugins, and PluginCall().
Referenced by ClientNetworkGameSocketHandler::Receive_SERVER_MAP_DONE().
|
static |
Event: user entered the Scenario Editor.
Definition at line 220 of file social_integration.cpp.
References _plugins, and PluginCall().
|
static |
Event: user entered a singleplayer game.
Definition at line 227 of file social_integration.cpp.
References _plugins, and PluginCall().
|
static |
Event: user is joining a multiplayer game.
Definition at line 241 of file social_integration.cpp.
References _plugins, and PluginCall().
|
static |
Get the list of loaded social integration plugins.
Definition at line 149 of file social_integration.cpp.
References _plugins.
Referenced by SurveyPlugins().
|
static |
Initialize the social integration system, loading any social integration plugins that are available.
Definition at line 160 of file social_integration.cpp.
Referenced by openttd_main().
|
static |
Allow any social integration library to handle their own events.
Definition at line 194 of file social_integration.cpp.
References _loaded_social_platform, _plugins, Debug, PluginCall(), SocialIntegrationPlugin::RUNNING, and SocialIntegrationPlugin::UNLOADED.
|
static |
Shutdown the social integration system, and all social integration plugins that are loaded.
Definition at line 184 of file social_integration.cpp.
References _loaded_social_platform, _plugins, and PluginCall().
Referenced by ShutdownGame().