C# Класс Nexus.Client.Bootstrapper

This class is responsible for creating all the services the application needs, and making sure that the environment is sane.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Bootstrapper ( EnvironmentInfo p_eifEnvironmentInfo ) : System

A simple constructor that initializes the object with the given values.

RunMainForm ( string p_strArgs ) : bool

Runs the applications

This method makes sure the environment is sane. If so, it creates the required services and launches the main form.

Защищенные методы

Метод Описание
DisposeServices ( ServiceManager p_smgServices ) : void

This disposes of the services we created.

GetInstalledGameModes ( GameModeRegistry p_gmrSupportedGameModes ) : GameModeRegistry

Gets a registry of installed game modes.

GetSupportedGameModes ( ) : GameModeRegistry

Gets a registry of supported game modes.

SandboxCheck ( EnvironmentInfo p_eifEnvironmentInfo ) : bool

Checks to see if a sandbox is interfering with dynamic code generation.

SetCompressorPath ( EnvironmentInfo p_eifEnvironmentInfo ) : void

Sets the path to the external compression library.

Приватные методы

Метод Описание
SetUpFonts ( ) : NexusFontSetResolver

Sets up the fonts.

Описание методов

Bootstrapper() публичный Метод

A simple constructor that initializes the object with the given values.
public Bootstrapper ( EnvironmentInfo p_eifEnvironmentInfo ) : System
p_eifEnvironmentInfo EnvironmentInfo The application's envrionment info.
Результат System

DisposeServices() защищенный Метод

This disposes of the services we created.
protected DisposeServices ( ServiceManager p_smgServices ) : void
p_smgServices ServiceManager The services to dispose.
Результат void

GetInstalledGameModes() защищенный Метод

Gets a registry of installed game modes.
protected GetInstalledGameModes ( GameModeRegistry p_gmrSupportedGameModes ) : GameModeRegistry
p_gmrSupportedGameModes Nexus.Client.Games.GameModeRegistry The games modes supported by the mod manager.
Результат Nexus.Client.Games.GameModeRegistry

GetSupportedGameModes() защищенный Метод

Gets a registry of supported game modes.
protected GetSupportedGameModes ( ) : GameModeRegistry
Результат Nexus.Client.Games.GameModeRegistry

RunMainForm() публичный Метод

Runs the applications
This method makes sure the environment is sane. If so, it creates the required services and launches the main form.
public RunMainForm ( string p_strArgs ) : bool
p_strArgs string The command line arguments passed to the application.
Результат bool

SandboxCheck() защищенный Метод

Checks to see if a sandbox is interfering with dynamic code generation.
protected SandboxCheck ( EnvironmentInfo p_eifEnvironmentInfo ) : bool
p_eifEnvironmentInfo EnvironmentInfo The application's envrionment info.
Результат bool

SetCompressorPath() защищенный Метод

Sets the path to the external compression library.
protected SetCompressorPath ( EnvironmentInfo p_eifEnvironmentInfo ) : void
p_eifEnvironmentInfo EnvironmentInfo The application's envrionment info.
Результат void