Separating state out of the location
This commit is contained in:
1 parent
5e9a663812
commit
297bd7377f
45 files changed
+2114
-778
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace FRG {
|
||||
|
||||
struct CampaignConfig;
|
||||
struct LocationConfig;
|
||||
|
||||
// Graphics-free administrative lifecycle used by local and standalone hosts.
|
||||
class IGameServerLifecycle {
|
||||
public:
|
||||
virtual ~IGameServerLifecycle() = default;
|
||||
|
||||
virtual void startCampaign(
|
||||
const CampaignConfig& campaign, const std::string& zipFile,
|
||||
bool createLocalPlayer, bool enableTestBot) = 0;
|
||||
virtual bool prepareLocation(const LocationConfig& config) = 0;
|
||||
virtual void activateLocation(const std::string& locationId) = 0;
|
||||
};
|
||||
|
||||
} // namespace FRG
|
||||
Reference in new issue
Block a user