1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00

Start implementing TCP API

This commit is contained in:
Ted John
2020-08-17 03:53:37 +01:00
parent 359bbee9f5
commit dce547af99
9 changed files with 449 additions and 1 deletions

View File

@@ -42,6 +42,8 @@ namespace OpenRCT2
namespace OpenRCT2::Scripting
{
class ScSocketBase;
class ScriptExecutionInfo
{
private:
@@ -133,6 +135,9 @@ namespace OpenRCT2::Scripting
};
std::unordered_map<std::string, CustomActionInfo> _customActions;
# ifndef DISABLE_NETWORK
std::vector<std::shared_ptr<ScSocketBase>> _sockets;
# endif
public:
ScriptEngine(InteractiveConsole& console, IPlatformEnvironment& env);
@@ -186,6 +191,8 @@ namespace OpenRCT2::Scripting
void SaveSharedStorage();
void AddSocket(const std::shared_ptr<ScSocketBase>& socket);
private:
void Initialise();
void StartPlugins();
@@ -206,6 +213,9 @@ namespace OpenRCT2::Scripting
void InitSharedStorage();
void LoadSharedStorage();
void UpdateSockets();
void RemoveSockets(const std::shared_ptr<Plugin>& plugin);
};
bool IsGameStateMutable();