systems

package
v0.0.0-...-28575ab Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DrawInfo

type DrawInfo struct {
	// Where to put the text.
	Offset image.Point
	// Optionally, components required for a second entity count entry.
	Components []generic.Comp
	// contains filtered or unexported fields
}

DrawInfo is a system that draws info text.

func (*DrawInfo) FinalizeUI

func (s *DrawInfo) FinalizeUI(world *ecs.World)

FinalizeUI the system

func (*DrawInfo) InitializeUI

func (s *DrawInfo) InitializeUI(world *ecs.World)

InitializeUI the system

func (*DrawInfo) PostUpdateUI

func (s *DrawInfo) PostUpdateUI(world *ecs.World)

PostUpdateUI the system

func (*DrawInfo) UpdateUI

func (s *DrawInfo) UpdateUI(world *ecs.World)

UpdateUI the system

type SimSpeed

type SimSpeed struct {
	InitialExponent int
	MinExponent     int
	MaxExponent     int
	// contains filtered or unexported fields
}

SimSpeed is a simple system that changes the simulation speed when the user presses PageUp, PageDown or Home.

func (*SimSpeed) FinalizeUI

func (s *SimSpeed) FinalizeUI(world *ecs.World)

FinalizeUI the system

func (*SimSpeed) InitializeUI

func (s *SimSpeed) InitializeUI(world *ecs.World)

InitializeUI the system

func (*SimSpeed) PostUpdateUI

func (s *SimSpeed) PostUpdateUI(world *ecs.World)

PostUpdateUI the system

func (*SimSpeed) UpdateUI

func (s *SimSpeed) UpdateUI(world *ecs.World)

UpdateUI the system

Jump to

Keyboard shortcuts

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