rFactorPluginServer/Include/RFServer.hpp

44 lines
1.2 KiB
C++
Raw Permalink Normal View History

2022-02-09 13:27:02 +00:00
#ifndef _RF_SERVER_H
#define _RF_SERVER_H
#include "Socket.hpp"
2022-02-10 07:40:58 +00:00
#include "InternalsPlugin.hpp"
2022-02-09 13:27:02 +00:00
// This is used for the app to use the plugin for its intended purpose
class RFServerPlugin : public InternalsPluginV07 // REMINDER: exported function GetPluginVersion() should return 1 if you are deriving from this InternalsPluginV01, 2 for InternalsPluginV02, etc.
{
public:
// Constructor/destructor
RFServerPlugin();
~RFServerPlugin();
// These are the functions derived from base class InternalsPlugin
// that can be implemented.
void Startup(long version); // game startup
void Shutdown(); // game shutdown
void EnterRealtime(); // entering realtime
void ExitRealtime(); // exiting realtime
void StartSession(); // session has started
void EndSession(); // session has ended
// GAME OUTPUT
2022-02-10 07:40:58 +00:00
long WantsTelemetryUpdates() { return (1); }
2022-02-09 13:27:02 +00:00
void UpdateTelemetry(const TelemInfoV01 &info);
// SCORING OUTPUT
2022-02-10 07:40:58 +00:00
bool WantsScoringUpdates() { return (true); }
2022-02-09 13:27:02 +00:00
void UpdateScoring(const ScoringInfoV01 &info);
bool WantsPitMenuAccess() { return (true); }
bool AccessPitMenu(PitMenuV01 &info);
private:
Socket *socket;
};
#endif // _RF_SERVER_H