Documentation ¶
Index ¶
- type Config
- type FileRepository
- func (repo *FileRepository) Exist(ctx context.Context, id int) bool
- func (repo *FileRepository) LoadMetaList(ctx context.Context, ids ...int) ([]*state.MetaData, error)
- func (repo *FileRepository) LoadShareData(ctx context.Context, uv *state.UserVariables) error
- func (repo *FileRepository) LoadSystemData(ctx context.Context, id int, system *state.SystemData, info *state.SaveInfo) error
- func (repo *FileRepository) SaveShareData(ctx context.Context, uv *state.UserVariables) error
- func (repo *FileRepository) SaveSystemData(ctx context.Context, id int, system *state.SystemData, info *state.SaveInfo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileRepository ¶
type FileRepository struct {
// contains filtered or unexported fields
}
implements local/erago/state.Repository
func NewFileRepository ¶
func NewFileRepository(csvdb *csv.CsvManager, config Config) *FileRepository
func (*FileRepository) LoadMetaList ¶
func (*FileRepository) LoadShareData ¶
func (repo *FileRepository) LoadShareData(ctx context.Context, uv *state.UserVariables) error
load shared data from file
func (*FileRepository) LoadSystemData ¶
func (repo *FileRepository) LoadSystemData(ctx context.Context, id int, system *state.SystemData, info *state.SaveInfo) error
Load game system data from file.
func (*FileRepository) SaveShareData ¶
func (repo *FileRepository) SaveShareData(ctx context.Context, uv *state.UserVariables) error
save share data to file
func (*FileRepository) SaveSystemData ¶
func (repo *FileRepository) SaveSystemData(ctx context.Context, id int, system *state.SystemData, info *state.SaveInfo) error
save game system data to file.
Click to show internal directories.
Click to hide internal directories.