Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
bool CHEATS_ENABLED_THIS_GAME = false;
|
||||
bool CHEATS_ENABLED = false;
|
||||
bool getCheatsEnabled() {
|
||||
return CHEATS_ENABLED;
|
||||
}
|
||||
|
||||
bool getCheatsEverOn() {
|
||||
return CHEATS_ENABLED_THIS_GAME;
|
||||
}
|
||||
|
||||
void serverCheatsEnabled(bool enabled) {
|
||||
CHEATS_ENABLED = enabled;
|
||||
if(enabled)
|
||||
CHEATS_ENABLED_THIS_GAME = true;
|
||||
}
|
||||
|
||||
void syncInitial(Message& msg) {
|
||||
msg >> CHEATS_ENABLED;
|
||||
msg >> CHEATS_ENABLED_THIS_GAME;
|
||||
}
|
||||
Reference in New Issue
Block a user