Documentation
¶
Overview ¶
Read and parse Refractor engine configuration files (.con)
Index ¶
- type ErrGameNotSupported
- type FileRepository
- type Game
- type Handler
- func (h *Handler) BuildBasePath(game Game) (string, error)
- func (h *Handler) GetProfileKeys(game Game) ([]string, error)
- func (h *Handler) IsValidProfileKey(game Game, profileKey string) (bool, error)
- func (h *Handler) ReadConfigFile(path string) (*config.Config, error)
- func (h *Handler) ReadGlobalConfig(game Game) (*config.Config, error)
- func (h *Handler) ReadProfileConfig(game Game, profileKey string) (*config.Config, error)
- func (h *Handler) WriteConfigFile(c *config.Config) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrGameNotSupported ¶
type ErrGameNotSupported struct {
// contains filtered or unexported fields
}
func (*ErrGameNotSupported) Error ¶
func (e *ErrGameNotSupported) Error() string
type FileRepository ¶ added in v0.0.2
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func New ¶
func New(repository FileRepository) *Handler
func (*Handler) BuildBasePath ¶ added in v0.1.0
func (*Handler) GetProfileKeys ¶ added in v0.1.0
Retrieve a list of profile keys (valid profile directories in the game's profile folder)
func (*Handler) IsValidProfileKey ¶ added in v0.1.0
Checks whether a given profile key is valid (a profile with the given key exists)
func (*Handler) ReadConfigFile ¶ added in v0.1.0
func (*Handler) ReadGlobalConfig ¶
func (*Handler) ReadProfileConfig ¶
Click to show internal directories.
Click to hide internal directories.