game

package
v0.0.0-...-50f1b1e Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CoinMintId    = 12500
	DollarMintId  = 12600
	BullionMintId = 12700
)
View Source
const Executable = "TTREngine"

Variables

View Source
var MintMaps embed.FS

Functions

func DataDir

func DataDir() (string, error)

func LaunchProcess

func LaunchProcess(ctx context.Context, creds *api.LoginSuccessPayload) error

func RunGLFW

func RunGLFW()

func RunMintInfoManager

func RunMintInfoManager(statusTracker *StatusTracker)

func ShouldDownload

func ShouldDownload(spec *api.ManifestEntry) bool

func ShowMintInfo

func ShowMintInfo(ctx context.Context, info MintInfo) error

func ShutdownGLFW

func ShutdownGLFW()

func SyncGameData

func SyncGameData(ctx context.Context, client api.DownloadClient) error

func UpsertDataDir

func UpsertDataDir() (string, error)

Types

type ActiveZone

type ActiveZone struct {
	Request EnterRequestStatus

	ZoneLogs chan string // buffered channel of lines
}

type EnterRequestStatus

type EnterRequestStatus struct {
	Loader  string `json:"loader"`
	Where   string `json:"where"`
	How     string `json:"how"`
	ZoneId  *int64 `json:"zoneId,omitempty"`
	HoodId  *int64 `json:"hoodId,omitempty"`
	ShardId *int64 `json:"shardId,omitempty"`
	AvId    *int64 `json:"avId,omitempty"`
	MintId  *int64 `json:"mintId,omitempty"`
}

func (EnterRequestStatus) String

func (e EnterRequestStatus) String() string

type MintInfo

type MintInfo struct {
	StageId int
	Floor   int
}

func ScanForMintInfo

func ScanForMintInfo(logs <-chan string) (MintInfo, error)

func (MintInfo) MapImage

func (i MintInfo) MapImage() (*image.RGBA, error)

func (MintInfo) String

func (m MintInfo) String() string

type StatusTracker

type StatusTracker struct {
	C chan *ActiveZone
	// contains filtered or unexported fields
}

func NewStatusTracker

func NewStatusTracker(logStream io.Reader) *StatusTracker

func (*StatusTracker) Run

func (r *StatusTracker) Run()

Jump to

Keyboard shortcuts

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