tgstation-server 6.17.0
The /tg/station 13 server suite
|
Implementation of IEngineInstallation for EngineType.Byond. More...
Public Member Functions | |||||||||||
ByondInstallation (IIOManager installationIOManager, Task installationTask, EngineVersion version, string dreamDaemonPath, string dreamMakerPath, bool supportsCli, bool supportsMapThreads) | |||||||||||
Initializes a new instance of the ByondInstallation class. | |||||||||||
override string | FormatServerArguments (IDmbProvider dmbProvider, IReadOnlyDictionary< string, string > parameters, DreamDaemonLaunchParameters launchParameters, string? logFilePath) | ||||||||||
Return the command line arguments for launching with given launchParameters .
| |||||||||||
override string | FormatCompilerArguments (string dmePath, string? additionalArguments) | ||||||||||
Return the command line arguments for compiling a given dmePath if compilation is necessary.
| |||||||||||
![]() | |||||||||||
EngineInstallationBase (IIOManager installationIOManager) | |||||||||||
Initializes a new instance of the EngineInstallationBase class. | |||||||||||
string | FormatCompilerArguments (string dmePath, string? additionalArguments) | ||||||||||
Return the command line arguments for compiling a given dmePath if compilation is necessary.
| |||||||||||
string | FormatServerArguments (IDmbProvider dmbProvider, IReadOnlyDictionary< string, string > parameters, DreamDaemonLaunchParameters launchParameters, string? logFilePath) | ||||||||||
Return the command line arguments for launching with given launchParameters .
| |||||||||||
virtual async ValueTask | StopServerProcess (ILogger logger, IProcess process, string accessIdentifier, ushort port, CancellationToken cancellationToken) | ||||||||||
Kills a given engine server process .
| |||||||||||
async ValueTask< Dictionary< string, string >?> | LoadEnv (ILogger logger, bool forCompiler, CancellationToken cancellationToken) | ||||||||||
Loads the environment settings for either the server or compiler.
| |||||||||||
Properties | |
override EngineVersion | Version [get] |
The EngineVersion of the IEngineInstallation. | |
override string | ServerExePath [get] |
The full path to the game server executable. | |
override string | CompilerExePath [get] |
The full path to the dm/DreamMaker executable. | |
override bool | PromptsForNetworkAccess [get] |
If ServerExePath may create network prompts. | |
override bool | HasStandardOutput [get] |
If ServerExePath supports being run as a command-line application and outputs log information to be captured. | |
override bool | PreferFileLogging [get] |
If HasStandardOutput is set, this indicates that the engine server has good file logging that should be preferred to ours. | |
override bool | UseDotnetDump [get] |
If dotnet-dump should be used to create process dumps for this installation. | |
override Task | InstallationTask [get] |
The Task that completes when the BYOND version finished installing. | |
![]() | |
EngineVersion | Version [get] |
The EngineVersion of the IEngineInstallation. | |
string | ServerExePath [get] |
The full path to the game server executable. | |
string | CompilerExePath [get] |
The full path to the dm/DreamMaker executable. | |
bool | HasStandardOutput [get] |
If ServerExePath supports being run as a command-line application and outputs log information to be captured. | |
bool | PreferFileLogging [get] |
If HasStandardOutput is set, this indicates that the engine server has good file logging that should be preferred to ours. | |
bool | PromptsForNetworkAccess [get] |
If ServerExePath may create network prompts. | |
bool | UseDotnetDump [get] |
If dotnet-dump should be used to create process dumps for this installation. | |
Task | InstallationTask [get] |
The Task that completes when the BYOND version finished installing. | |
IIOManager | InstallationIOManager [get] |
The IIOManager pointing to the installation directory. | |
![]() |
Static Private Member Functions | |
static string | SecurityWord (DreamDaemonSecurity securityLevel) |
Change a given securityLevel into the appropriate DreamDaemon command line word. | |
static string | VisibilityWord (DreamDaemonVisibility visibility) |
Change a given visibility into the appropriate DreamDaemon command line word. | |
Private Attributes | |
readonly bool | supportsMapThreads |
If map threads are supported by the Version. | |
Additional Inherited Members | |
![]() | |
static string | EncodeParameters (IReadOnlyDictionary< string, string > parameters, DreamDaemonLaunchParameters launchParameters) |
Encode given parameters for passing as world.params on the command line. | |
Implementation of IEngineInstallation for EngineType.Byond.
Definition at line 16 of file ByondInstallation.cs.
Tgstation.Server.Host.Components.Engine.ByondInstallation.ByondInstallation | ( | IIOManager | installationIOManager, |
Task | installationTask, | ||
EngineVersion | version, | ||
string | dreamDaemonPath, | ||
string | dreamMakerPath, | ||
bool | supportsCli, | ||
bool | supportsMapThreads | ||
) |
Initializes a new instance of the ByondInstallation class.
installationIOManager | The IIOManager for the EngineInstallationBase. |
installationTask | The value of InstallationTask. |
version | The value of Version. |
dreamDaemonPath | The value of ServerExePath. |
dreamMakerPath | The value of CompilerExePath. |
supportsCli | If a CLI application is being used. |
supportsMapThreads | The value of supportsMapThreads. |
Definition at line 89 of file ByondInstallation.cs.
References Tgstation.Server.Host.Components.Engine.ByondInstallation.CompilerExePath, Tgstation.Server.Api.Models.EngineVersion.Engine, Tgstation.Server.Host.Components.Engine.ByondInstallation.HasStandardOutput, Tgstation.Server.Host.Components.Engine.ByondInstallation.InstallationTask, Tgstation.Server.Host.Components.Engine.ByondInstallation.PromptsForNetworkAccess, Tgstation.Server.Host.Components.Engine.ByondInstallation.ServerExePath, Tgstation.Server.Host.Components.Engine.ByondInstallation.supportsMapThreads, and Tgstation.Server.Host.Components.Engine.ByondInstallation.Version.
override string Tgstation.Server.Host.Components.Engine.ByondInstallation.FormatCompilerArguments | ( | string | dmePath, |
string? | additionalArguments | ||
) |
Return the command line arguments for compiling a given dmePath if compilation is necessary.
dmePath | The full path to the .dme to compile. |
additionalArguments | Optional additional arguments provided to the compiler. |
Implements Tgstation.Server.Host.Components.Engine.IEngineInstallation.
Definition at line 150 of file ByondInstallation.cs.
override string Tgstation.Server.Host.Components.Engine.ByondInstallation.FormatServerArguments | ( | IDmbProvider | dmbProvider, |
IReadOnlyDictionary< string, string > | parameters, | ||
DreamDaemonLaunchParameters | launchParameters, | ||
string? | logFilePath | ||
) |
Return the command line arguments for launching with given launchParameters .
dmbProvider | The IDmbProvider. |
parameters | The map of parameter strings as a IReadOnlyDictionary<TKey, TValue>. MUST include Interop.DMApiConstants.ParamAccessIdentifier. Should NOT include the DreamDaemonLaunchParameters.AdditionalParameters of launchParameters . |
launchParameters | The DreamDaemonLaunchParameters. |
logFilePath | The full path to the log file, if any. |
Implements Tgstation.Server.Host.Components.Engine.IEngineInstallation.
Definition at line 114 of file ByondInstallation.cs.
References Tgstation.Server.Api.Models.Internal.DreamDaemonLaunchParameters.AllowWebClient, Tgstation.Server.Host.Components.Deployment.IDmbProvider.DmbName, Tgstation.Server.Host.Components.Engine.EngineInstallationBase.EncodeParameters(), Tgstation.Server.Api.Models.Internal.DreamDaemonLaunchParameters.MapThreads, Tgstation.Server.Api.Models.Internal.DreamDaemonLaunchParameters.Port, Tgstation.Server.Api.Models.Internal.DreamDaemonLaunchParameters.SecurityLevel, Tgstation.Server.Host.Components.Engine.ByondInstallation.SecurityWord(), Tgstation.Server.Api.Models.Internal.DreamDaemonLaunchParameters.StartProfiler, Tgstation.Server.Host.Components.Engine.ByondInstallation.supportsMapThreads, Tgstation.Server.Api.Models.Internal.DreamDaemonLaunchParameters.Visibility, and Tgstation.Server.Host.Components.Engine.ByondInstallation.VisibilityWord().
|
staticprivate |
Change a given securityLevel into the appropriate DreamDaemon command line word.
securityLevel | The DreamDaemonSecurity level to change. |
Definition at line 52 of file ByondInstallation.cs.
Referenced by Tgstation.Server.Host.Components.Engine.ByondInstallation.FormatServerArguments().
|
staticprivate |
Change a given visibility into the appropriate DreamDaemon command line word.
visibility | The DreamDaemonVisibility level to change. |
Definition at line 68 of file ByondInstallation.cs.
Referenced by Tgstation.Server.Host.Components.Engine.ByondInstallation.FormatServerArguments().
|
private |
If map threads are supported by the Version.
Definition at line 45 of file ByondInstallation.cs.
Referenced by Tgstation.Server.Host.Components.Engine.ByondInstallation.ByondInstallation(), and Tgstation.Server.Host.Components.Engine.ByondInstallation.FormatServerArguments().
|
get |
The full path to the dm/DreamMaker executable.
Implements Tgstation.Server.Host.Components.Engine.IEngineInstallation.
Definition at line 25 of file ByondInstallation.cs.
Referenced by Tgstation.Server.Host.Components.Engine.ByondInstallation.ByondInstallation().
|
get |
If ServerExePath supports being run as a command-line application and outputs log information to be captured.
Implements Tgstation.Server.Host.Components.Engine.IEngineInstallation.
Definition at line 31 of file ByondInstallation.cs.
Referenced by Tgstation.Server.Host.Components.Engine.ByondInstallation.ByondInstallation().
|
get |
The Task that completes when the BYOND version finished installing.
Implements Tgstation.Server.Host.Components.Engine.IEngineInstallation.
Definition at line 40 of file ByondInstallation.cs.
Referenced by Tgstation.Server.Host.Components.Engine.ByondInstallation.ByondInstallation().
|
get |
If HasStandardOutput is set, this indicates that the engine server has good file logging that should be preferred to ours.
Implements Tgstation.Server.Host.Components.Engine.IEngineInstallation.
Definition at line 34 of file ByondInstallation.cs.
|
get |
If ServerExePath may create network prompts.
Implements Tgstation.Server.Host.Components.Engine.IEngineInstallation.
Definition at line 28 of file ByondInstallation.cs.
Referenced by Tgstation.Server.Host.Components.Engine.ByondInstallation.ByondInstallation().
|
get |
The full path to the game server executable.
Implements Tgstation.Server.Host.Components.Engine.IEngineInstallation.
Definition at line 22 of file ByondInstallation.cs.
Referenced by Tgstation.Server.Host.Components.Engine.ByondInstallation.ByondInstallation().
|
get |
If dotnet-dump should be used to create process dumps for this installation.
Implements Tgstation.Server.Host.Components.Engine.IEngineInstallation.
Definition at line 37 of file ByondInstallation.cs.
|
get |
The EngineVersion of the IEngineInstallation.
Implements Tgstation.Server.Host.Components.Engine.IEngineInstallation.
Definition at line 19 of file ByondInstallation.cs.
Referenced by Tgstation.Server.Host.Components.Engine.ByondInstallation.ByondInstallation().