Back to godoc.org

Package server

v1.0.23
Latest Go to latest

The latest major version is .

Published: Sep 11, 2020 | License: MIT | Module: github.com/cfi2017/bl3-save

Index

Variables

var (
	BuildVersion = ""
	BuildCommit  = ""
	BuildDate    = ""
	BuiltBy      = ""
)
var ErrInvalidSavFile = errors.New("invalid save file")

func Start

func Start(opts Options) error

func TryDeserialize

func TryDeserialize(deserializeFunc DeserializeFunc, platforms Platforms, reader io.Reader) (s shared.SavFile, char pb.Character, platform string, err error)

type CharInfo

type CharInfo struct {
	ID         string `json:"id"`
	Name       string `json:"name"`
	Experience int32  `json:"experience"`
}

type DeserializeFunc

type DeserializeFunc func(reader io.Reader, magic shared.Magic) (shared.SavFile, pb.Character, error)

type ItemRequest

type ItemRequest struct {
	Items    []item.Item                         `json:"items"`
	Equipped []*pb.EquippedInventorySaveGameData `json:"equipped"`
	Active   []int32                             `json:"active"`
	Platform string                              `json:"platform"`
}

type Options

type Options struct {
	Insecure   bool
	DefaultPwd string
}

type Platforms

type Platforms map[string]shared.Magic

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier