Add config option to log outbound messages

This commit is contained in:
Sophie
2020-03-07 17:37:04 +00:00
parent b526e66821
commit 1041cac476
2 changed files with 13 additions and 10 deletions

View File

@@ -14,18 +14,19 @@ type Config struct {
DevMode bool
DevModeOptions DevModeOptions
Database Database
Launcher Launcher
Sign Sign
Channel Channel
Entrance Entrance
Database Database
Launcher Launcher
Sign Sign
Channel Channel
Entrance Entrance
}
// DevModeOptions holds various debug/temporary options for use while developing Erupe.
type DevModeOptions struct {
CleanDB bool // Automatically wipes the DB on server reset.
MaxLauncherHR bool // Sets the HR returned in the launcher to HR9 so that you can join non-beginner worlds.
FixedStageID bool // Causes all move_stage to use the ID sl1Ns200p0a0u0 to get you into all stages
CleanDB bool // Automatically wipes the DB on server reset.
MaxLauncherHR bool // Sets the HR returned in the launcher to HR9 so that you can join non-beginner worlds.
FixedStageID bool // Causes all move_stage to use the ID sl1Ns200p0a0u0 to get you into all stages
LogOutboundMessages bool // Log all messages sent to the clients
}
// Database holds the postgres database config.