summaryrefslogtreecommitdiffstats
path: root/src/Root.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-10-05 14:09:42 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-12-18 22:03:40 +0100
commit090d8305e4e3c3ee085a897b72f2b4708e183eb8 (patch)
treee703cc7fcb7f16c85f16b094d5df0bd0a8d698e8 /src/Root.h
parentHorsies: don't always broadcast metadata (diff)
downloadcuberite-090d8305e4e3c3ee085a897b72f2b4708e183eb8.tar
cuberite-090d8305e4e3c3ee085a897b72f2b4708e183eb8.tar.gz
cuberite-090d8305e4e3c3ee085a897b72f2b4708e183eb8.tar.bz2
cuberite-090d8305e4e3c3ee085a897b72f2b4708e183eb8.tar.lz
cuberite-090d8305e4e3c3ee085a897b72f2b4708e183eb8.tar.xz
cuberite-090d8305e4e3c3ee085a897b72f2b4708e183eb8.tar.zst
cuberite-090d8305e4e3c3ee085a897b72f2b4708e183eb8.zip
Diffstat (limited to 'src/Root.h')
-rw-r--r--src/Root.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Root.h b/src/Root.h
index e055950c0..696b31ce3 100644
--- a/src/Root.h
+++ b/src/Root.h
@@ -62,10 +62,10 @@ public:
bool Run(cSettingsRepositoryInterface & a_OverridesRepo);
/** Interrupts the server and stops it, as if "/stop" typed in the console. */
- void Stop();
+ static void Stop();
/** Interrupts the server and restarts it, as if "/restart" was typed in the console. */
- void Restart();
+ static void Restart();
// tolua_begin
cServer * GetServer(void) { return m_Server; }
@@ -208,12 +208,12 @@ private:
void HandleInput();
/** Performs run state transition, enforcing guarantees about state transitions. */
- void TransitionNextState(NextState a_NextState);
+ static void TransitionNextState(NextState a_NextState);
cWorld * m_pDefaultWorld;
WorldMap m_WorldsByName;
- cEvent m_StopEvent;
+ static cEvent s_StopEvent;
cServer * m_Server;
cMonsterConfig * m_MonsterConfig;
@@ -249,5 +249,5 @@ private:
static cRoot * s_Root;
/** Indicates the next action of cRoot, whether to run, stop or restart. */
- std::atomic<NextState> m_NextState;
+ static std::atomic<NextState> s_NextState;
}; // tolua_export