server

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func Start

func Start(opts Options) error

func TryDeserialize added in v1.0.23

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

Types

type CharInfo

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

type DeserializeFunc added in v1.0.23

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

type ItemRequest added in v1.0.4

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 added in v1.0.23

type Platforms map[string]shared.Magic

Jump to

Keyboard shortcuts

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