savemanager

package
v1.0.52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadSaveFile

func DownloadSaveFile(fileName string) error

func GetSaveDir

func GetSaveDir() (string, error)

func GetSaveFiles

func GetSaveFiles()

func InitSaveManager

func InitSaveManager()

func ShutdownSaveManager

func ShutdownSaveManager() error

func UploadSaveFile

func UploadSaveFile(filePath string) error

func UploadSaveFiles

func UploadSaveFiles()

func UploadSaveInfo

func UploadSaveInfo()

Types

type HttpRequestBody_SaveInfo

type HttpRequestBody_SaveInfo struct {
	SaveDatas []SaveSession `json:"saveDatas"`
}

type SaveFile

type SaveFile struct {
	Level        string    `json:"level"`
	FilePath     string    `json:"filePath"`
	FileName     string    `json:"fileName"`
	ModTime      time.Time `json:"modTime"`
	UploadedTime time.Time `json:"-"`
	Size         int64     `json:"size"`
}

type SaveFileInfo

type SaveFileInfo struct {
	SessionName string    `json:"sessionName"`
	Level       string    `json:"level"`
	FileName    string    `json:"fileName"`
	FilePath    string    `json:"filePath"`
	ModTime     time.Time `json:"modTime"`
	Size        int64     `json:"size"`
}

func GetSaveInfo

func GetSaveInfo(filePath string) SaveFileInfo

type SaveSession

type SaveSession struct {
	SessionName string     `json:"sessionName"`
	SaveFiles   []SaveFile `json:"saveFiles"`
}

func GetSaveSessions

func GetSaveSessions() []SaveSession

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL