Documentation ¶
Index ¶
- Constants
- Variables
- func Concrete[T any](object Reactive, path string, args ...interface{}) *T
- type Account
- type AccountDatabase
- type AltSync
- type Config
- type DiscordSettings
- type File
- type Format
- type JellyTool
- type List
- func (c *List[T]) Append(chain chain, index int, value interface{}) error
- func (c *List[T]) Delete(chain chain, index int) error
- func (c *List) File() Savable
- func (c *List[T]) ForEach(callback func(*T))
- func (c *List[T]) ForEachObject(callback func(*Object[T]))
- func (c *List[T]) Get(chain chain, index int) (interface{}, error)
- func (c *List[T]) GetConcrete(chain chain, index int) (interface{}, error)
- func (c *List[T]) Initialize(path string, file Savable) error
- func (c *List[T]) Length(chain chain, index int) int
- func (c *List[T]) Listen(chain chain, index int, callback func(ListenOp, interface{})) error
- func (c *List[T]) MarshalYAML() (interface{}, error)
- func (c *List[T]) Set(chain chain, index int, value interface{}) error
- func (c *List[T]) UnmarshalYAML(unmarshal func(interface{}) error) error
- type ListenOp
- type LoopState
- type MacroCounters
- type MacroNetworkingConfig
- type MacroSettings
- type MacroState
- type NetworkIdentity
- type Networking
- type Object
- func (c *Object[T]) Append(chain chain, index int, value interface{}) error
- func (c *Object[T]) AppendPath(path string) error
- func (c *Object[T]) AppendPathf(path string, args ...interface{}) error
- func (c *Object[T]) Delete(chain chain, index int) error
- func (c *Object[T]) DeletePath(path string) error
- func (c *Object[T]) DeletePathf(path string, args ...interface{}) error
- func (c *Object) File() Savable
- func (c *Object[T]) Get(chain chain, index int) (interface{}, error)
- func (c *Object[T]) GetConcrete(chain chain, index int) (interface{}, error)
- func (c *Object[T]) GetObjectPath(path string) (interface{}, error)
- func (c *Object[T]) GetPath(path string) (interface{}, error)
- func (c *Object[T]) GetPathf(path string, args ...interface{}) (interface{}, error)
- func (c *Object[T]) Initialize(path string, file Savable) error
- func (c *Object[T]) Length(chain chain, index int) int
- func (c *Object[T]) LengthPath(path string) int
- func (c *Object[T]) Listen(chain chain, index int, callback func(ListenOp, interface{})) error
- func (c *Object[T]) ListenPath(path string, callback func(ListenOp, interface{})) error
- func (c *Object[T]) MarshalYAML() (interface{}, error)
- func (c *Object[T]) Object() T
- func (c *Object[T]) Set(chain chain, index int, value interface{}) error
- func (c *Object[T]) SetPath(path string, value interface{}) error
- func (c *Object[T]) SetPathf(value interface{}, path string, args ...interface{}) error
- func (c *Object[T]) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Pattern
- type PatternMetadata
- type PatternOverride
- type PatternSettings
- type PlayerSettings
- type Reactive
- type Runtime
- type Savable
- type Scratch
- func (s *Scratch) Add(name string, value int)
- func (s *Scratch) Clear(name string)
- func (s *Scratch) Decrement(name string)
- func (s *Scratch) ExecutingRoutine(routine string) bool
- func (s *Scratch) Get(name string) interface{}
- func (s *Scratch) Increment(name string)
- func (s *Scratch) PrintStack() string
- func (s *Scratch) Reset(name string)
- func (s *Scratch) Set(name string, value interface{})
- func (s *Scratch) Subtract(name string, value int)
- type Server
- type Settings
- type State
- type StateConfig
- type Tools
- type UnwindLoop
- type VicHop
- type VicHopMacroStatistics
- type VicHopStatistics
- type VicHopVersion
- type WindowAlignment
- type WindowConfig
- type WindowSettings
- type WindowSize
Constants ¶
View Source
const ( FullScreenWindowAlignment WindowAlignment = "fullscreen" TopLeftWindowAlignment = "top-left" TopRightWindowAlignment = "top-right" BottomLeftWindowAlignment = "bottom-left" BottomRightWindowAlignment = "bottom-right" )
Variables ¶
View Source
var AppContext context.Context
Functions ¶
Types ¶
type Account ¶
type Account struct { Name string `yaml:"name" key:"true"` Preset string `yaml:"preset"` ServerID string `yaml:"serverID,omitempty"` LinkCode string `yaml:"linkCode,omitempty"` Invalid bool `yaml:"invalid,omitempty"` WindowConfigID string `yaml:"windowConfigID,omitempty"` }
func (*Account) GenerateJoinUrl ¶
type AccountDatabase ¶
type AccountDatabase struct { Accounts *List[Account] `yaml:"accounts"` Servers *List[Server] `yaml:"servers"` }
func (*AccountDatabase) Add ¶
func (d *AccountDatabase) Add(code string)
func (*AccountDatabase) Delete ¶
func (d *AccountDatabase) Delete(name string)
func (*AccountDatabase) Get ¶
func (d *AccountDatabase) Get(name string) *Account
type Config ¶
type Config struct { Presets *List[Settings] `yaml:"presets"` Windows *List[WindowConfig] `yaml:"windows"` Tools *Object[Tools] `yaml:"tools"` Networking *Object[Networking] `yaml:"networking"` DevMode bool `yaml:"devMode"` }
type DiscordSettings ¶
type JellyTool ¶
type JellyTool struct { Enabled bool `yaml:"enabled"` BeeTypes *List[string] `yaml:"beeTypes"` RequireMutation bool `yaml:"requireMutation"` MutationType string `yaml:"mutationType" default:"Movespeed"` MutationValue int `yaml:"mutationValue" default:"0"` StopGifted bool `yaml:"stopGifted"` StopMythic bool `yaml:"stopMythic"` }
type List ¶
type List[T any] struct { // contains filtered or unexported fields }
func (*List[T]) ForEachObject ¶
func (*List[T]) GetConcrete ¶
func (*List[T]) MarshalYAML ¶
func (*List[T]) UnmarshalYAML ¶
type LoopState ¶
type LoopState struct { Unwind *UnwindLoop Index []int }
type MacroCounters ¶
type MacroCounters struct {
ClaimedHive int `state:"claimedHive" default:"-1" yaml:"-"`
}
type MacroNetworkingConfig ¶
type MacroNetworkingConfig struct { SavedRelays *List[NetworkIdentity] `yaml:"savedRelays"` AvailableRelays *List[NetworkIdentity] `state:"availableRelays" yaml:"-"` ConnectedIdentities *List[NetworkIdentity] `state:"connectedIdentities" yaml:"-"` ConnectingAddress string `state:"connectingAddress" yaml:"-"` ConnectedAddress string `state:"connectedAddress" yaml:"-"` RelayStarting bool `state:"relayStarting" yaml:"-"` RelayActive bool `state:"relayActive" yaml:"-"` RoleRegisterError string `state:"roleRegisterError" yaml:"-"` Identity string `state:"identity" yaml:"-"` }
type MacroSettings ¶
type MacroSettings struct {
KeyDelay int `yaml:"keyDelay" default:"50"`
}
type MacroState ¶
type MacroState struct { AccountName string `yaml:"accountName" key:"true"` Running bool `state:"running" yaml:"-"` Paused bool `state:"paused" yaml:"-"` Status string `state:"status" default:"Ready" yaml:"-"` Counters *Object[MacroCounters] `state:"counters" default:"true" yaml:"-"` HoneyOriginX int `state:"honeyOriginX" yaml:"-"` HoneyOriginY int `state:"honeyOriginY" yaml:"-"` BaseOriginX int `state:"baseOriginX" yaml:"-"` BaseOriginY int `state:"baseOriginY" yaml:"-"` HotbarOriginX int `state:"hotbarOriginX" yaml:"-"` HotbarOriginY int `state:"hotbarOriginY" yaml:"-"` Networking *Object[MacroNetworkingConfig] `yaml:"networking"` }
type NetworkIdentity ¶
type Networking ¶
type Networking struct {
AutoConnect bool `yaml:"autoConnect"`
}
type Object ¶
type Object[T any] struct { // contains filtered or unexported fields }
func NewDatabase ¶
func NewDatabase(runtime *Runtime) (*Object[AccountDatabase], error)
func (*Object[T]) AppendPath ¶
func (*Object[T]) AppendPathf ¶
func (*Object[T]) DeletePath ¶
func (*Object[T]) DeletePathf ¶
func (*Object[T]) GetConcrete ¶
func (*Object[T]) GetObjectPath ¶
func (*Object[T]) LengthPath ¶
func (*Object[T]) ListenPath ¶
func (*Object[T]) MarshalYAML ¶
func (*Object[T]) UnmarshalYAML ¶
type Pattern ¶
type Pattern struct { PatternMetadata ID string `yaml:"id" key:"true"` Order int `yaml:"order"` }
type PatternMetadata ¶
type PatternOverride ¶
type PatternOverride struct { PatternMetadata Name string `yaml:"id" key:"true"` }
type PatternSettings ¶
type PlayerSettings ¶
type PlayerSettings struct {
MoveSpeed float64 `yaml:"moveSpeed" default:"24"`
}
type Reactive ¶
type Reactive interface { Initialize(path string, file Savable) error Set(chain chain, index int, value interface{}) error Get(chain chain, index int) (interface{}, error) GetConcrete(chain chain, index int) (interface{}, error) Append(chain chain, index int, value interface{}) error Delete(chain chain, index int) error Length(chain chain, index int) int Listen(chain chain, index int, callback func(ListenOp, interface{})) error File() Savable }
type Runtime ¶
func NewRuntime ¶
type Scratch ¶
type Scratch struct { LoopState *LoopState LastError error Stack []string Redirect bool // contains filtered or unexported fields }
func NewScratch ¶
func NewScratch() *Scratch
func (*Scratch) ExecutingRoutine ¶
func (*Scratch) PrintStack ¶
type Settings ¶
type Settings struct { Name string `yaml:"name" key:"true"` LogVerbosity int `yaml:"logVerbosity"` Discord *Object[DiscordSettings] `yaml:"discord"` Window *Object[WindowSettings] `yaml:"window"` Player *Object[PlayerSettings] `yaml:"player"` Patterns *Object[PatternSettings] `yaml:"patterns"` VicHop *Object[VicHop] `yaml:"vicHop"` Macro *Object[MacroSettings] `yaml:"macro"` }
Settings defines the configuration for an individual preset
type State ¶
type State struct { Config *Object[StateConfig] `yaml:"config"` Macros *List[MacroState] `yaml:"macros"` VicHop *Object[VicHopVersion] `state:"vicHop" yaml:"-"` }
type StateConfig ¶
type UnwindLoop ¶
type VicHopMacroStatistics ¶
type VicHopMacroStatistics struct { }
type VicHopStatistics ¶
type VicHopStatistics struct { }
type VicHopVersion ¶
type WindowAlignment ¶
type WindowAlignment string
type WindowConfig ¶
type WindowConfig struct { ID string `yaml:"id" key:"true" lock:"default"` Alignment WindowAlignment `yaml:"alignment" default:"top-left"` FullWidth bool `yaml:"fullWidth" default:"true"` Screen int `yaml:"screen"` }
type WindowSettings ¶
type WindowSettings struct { WindowConfigID string `yaml:"windowConfigId"` WindowSize WindowSize `yaml:"windowSize" default:"full"` PrivateServerLink string `yaml:"privateServerLink,omitempty"` FallbackToPublicServer bool `yaml:"fallbackToPublicServer" default:"true"` }
type WindowSize ¶
type WindowSize string
const ( QuarterWindowSize WindowSize = "quarter" HalfWindowSize WindowSize = "half" FullWindowSize WindowSize = "full" )
Click to show internal directories.
Click to hide internal directories.