Documentation ¶
Overview ¶
Package d2app contains the OpenDiablo2 application shell
Index ¶
- type App
- func (a *App) LoadConfig() (*d2config.Configuration, error)
- func (a *App) Run() (err error)
- func (a *App) ToCharacterSelect(connType d2clientconnectiontype.ClientConnectionType, connHost string)
- func (a *App) ToCinematics()
- func (a *App) ToCreateGame(filePath string, connType d2clientconnectiontype.ClientConnectionType, ...)
- func (a *App) ToCredits()
- func (a *App) ToMainMenu(errorMessageOptional ...string)
- func (a *App) ToMapEngineTest(region, level int)
- func (a *App) ToSelectHero(connType d2clientconnectiontype.ClientConnectionType, host string)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
App represents the main application for the engine
func (*App) LoadConfig ¶
func (a *App) LoadConfig() (*d2config.Configuration, error)
LoadConfig loads the OpenDiablo2 config file
func (*App) ToCharacterSelect ¶
func (a *App) ToCharacterSelect(connType d2clientconnectiontype.ClientConnectionType, connHost string)
ToCharacterSelect forces the game to transition to the Character Select (load character) screen
func (*App) ToCinematics ¶
func (a *App) ToCinematics()
ToCinematics forces the game to transition to the cinematics menu
func (*App) ToCreateGame ¶
func (a *App) ToCreateGame(filePath string, connType d2clientconnectiontype.ClientConnectionType, host string)
ToCreateGame forces the game to transition to the Create Game screen
func (*App) ToCredits ¶
func (a *App) ToCredits()
ToCredits forces the game to transition to the credits screen
func (*App) ToMainMenu ¶
ToMainMenu forces the game to transition to the Main Menu
func (*App) ToMapEngineTest ¶
ToMapEngineTest forces the game to transition to the map engine test screen
func (*App) ToSelectHero ¶
func (a *App) ToSelectHero(connType d2clientconnectiontype.ClientConnectionType, host string)
ToSelectHero forces the game to transition to the Select Hero (create character) screen
type Options ¶
type Options struct { Debug *bool Server *d2networking.ServerOptions LogLevel *d2util.LogLevel // contains filtered or unexported fields }
Options is used to store all of the app options that can be set with arguments