Documentation ¶
Index ¶
- type Api
- func (ffapi *Api) CacheCompanies(modulePath string, embedded bool)
- func (ffapi *Api) CacheModuleData(modulePath string, embedded bool)
- func (ffapi *Api) CachePlayers(cachePath string)
- func (ffapi *Api) CacheProfiles(modulePath string, embedded bool)
- func (ffapi *Api) CacheRosters(modulePath string, embedded bool)
- func (ffapi *Api) CacheScriptLibraries(modulePath string, embedded bool)
- func (ffapi *Api) CacheScriptModules(modulePath string, embedded bool)
- func (ffapi *Api) CacheSpells(modulePath string, embedded bool)
- func (ffapi *Api) CacheTraits(modulePath string, embedded bool)
- func (ffapi *Api) CachingFs(embedded bool) *afero.Afero
- func (ffapi *Api) GetActiveSkirmish(activeUserPersona *persona.Persona[player.Data, player.Settings], ...) (*instance.Instance[skirmish.Skirmish], error)
- func (ffapi *Api) GetPlayer(name string, cachePath string) (foundPlayer player.Player, err error)
- func (ffapi *Api) InitializeEngine()
- func (ffapi *Api) InitializeGameState() error
- func (ffapi *Api) InstalledModules() (installedModules []string, err error)
- type Configuration
- type DataCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct { Tympan *tympan.Tympan[*Configuration] EMFS *embed.FS Cache DataCache ScriptEngine *scripting.Engine }
func (*Api) CacheCompanies ¶
func (*Api) CacheModuleData ¶
func (*Api) CachePlayers ¶
func (*Api) CacheProfiles ¶
func (*Api) CacheRosters ¶
func (*Api) CacheScriptLibraries ¶
func (*Api) CacheScriptModules ¶
func (*Api) CacheSpells ¶
func (*Api) CacheTraits ¶
func (*Api) GetActiveSkirmish ¶
func (*Api) InitializeEngine ¶
func (ffapi *Api) InitializeEngine()
func (*Api) InitializeGameState ¶
func (*Api) InstalledModules ¶
type Configuration ¶
type Configuration struct { ActiveUserPersona string `mapstructure:"active_user_persona"` }
func (*Configuration) Initialize ¶
func (config *Configuration) Initialize() error
Click to show internal directories.
Click to hide internal directories.