client

package
v0.0.0-...-9c30cc4 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wraps the entire UI

func New

func New(ctx context.Context, cancel context.CancelFunc, cfg *config.Config, version string, patcherUrl string) (*Client, error)

New creates a new client

func (*Client) AutoPlay

func (c *Client) AutoPlay() error

AutoPlay will automatically patch then play the game. It is designed to be called after New

func (*Client) CopyBackup

func (c *Client) CopyBackup(rofPath string) error

func (*Client) Done

func (c *Client) Done() error

func (*Client) Patch

func (c *Client) Patch() error

func (*Client) Play

func (c *Client) Play() error

func (*Client) PrePatch

func (c *Client) PrePatch() error

func (*Client) Torrent

func (c *Client) Torrent(ctx context.Context) error

Torrent downloads the torrent

type FileEntry

type FileEntry struct {
	Name string `yaml:"name"`
	Md5  string `yaml:"md5"`
	Date string `yaml:"date"`
	Zip  string `yaml:"zip"`
	Size int    `yaml:"size"`
}

FileEntry is an entry inside FileList

type FileList

type FileList struct {
	Version        string      `yaml:"version"`
	DownloadPrefix string      `yaml:"downloadprefix"`
	Deletes        []FileEntry `yaml:"deletes"`
	Downloads      []FileEntry `yaml:"downloads"`
	Unpacks        []FileEntry `yaml:"unpacks"`
}

FileList represents a file_list.yml file downloaded from server

Jump to

Keyboard shortcuts

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