gati

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRngs

func GetRngs(rngURL string, gameID string, nums int) ([]int, error)

GetRngs - get rngs

Types

type Config

type Config struct {
	GameID  string
	RNGURL  string
	RngNums int
}

Config - configuration

func NewConfig

func NewConfig(gameid string, rngnums int) *Config

NewConfig - new a config

type PluginGATI

type PluginGATI struct {
	sgc7plugin.BasicPlugin

	Cfg  *Config
	Rngs []int
}

PluginGATI - plugin for GATI

func NewPluginGATI

func NewPluginGATI(cfg *Config) *PluginGATI

NewPluginGATI - new PluginGATI (IPlugin)

func (*PluginGATI) ClearCache

func (plugin *PluginGATI) ClearCache()

ClearCache - clear cached rngs

func (*PluginGATI) Init

func (plugin *PluginGATI) Init()

Init - initial

func (*PluginGATI) Random

func (plugin *PluginGATI) Random(ctx context.Context, r int) (int, error)

Random - return [0, r)

func (*PluginGATI) SetCache

func (plugin *PluginGATI) SetCache(arr []int)

SetCache - set cache

Jump to

Keyboard shortcuts

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