Documentation ¶
Index ¶
- type Dependency
- type GetsInputState
- type InputState
- type Service
- func (s *Service) DependenciesResolved() bool
- func (s *Service) ExportToLua(state *lua.LState)
- func (s *Service) Foo()
- func (s *Service) Init(mesh servicemesh.Mesh)
- func (s *Service) KeyboardModifierState() map[int32]InputState
- func (s *Service) KeyboardState() map[int32]InputState
- func (s *Service) Logger() *slog.Logger
- func (s *Service) MouseButtonState() map[int32]InputState
- func (s *Service) MouseCursorState() (x, y int)
- func (s *Service) Name() string
- func (s *Service) Ready() bool
- func (s *Service) ResolveDependencies(services []servicemesh.Service)
- func (s *Service) SetLogger(logger *slog.Logger)
- func (s *Service) UnexportFromLua(state *lua.LState)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
type Dependency = GetsInputState
type GetsInputState ¶
type GetsInputState interface { KeyboardState() map[int32]InputState KeyboardModifierState() map[int32]InputState MouseCursorState() (x, y int) MouseButtonState() map[int32]InputState }
type InputState ¶
type InputState int
const ( StateUp InputState = iota StateDown StateReleased StatePressed )
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) DependenciesResolved ¶
func (*Service) ExportToLua ¶
func (*Service) Init ¶
func (s *Service) Init(mesh servicemesh.Mesh)
func (*Service) KeyboardModifierState ¶
func (s *Service) KeyboardModifierState() map[int32]InputState
func (*Service) KeyboardState ¶
func (s *Service) KeyboardState() map[int32]InputState
func (*Service) MouseButtonState ¶
func (s *Service) MouseButtonState() map[int32]InputState
func (*Service) MouseCursorState ¶
func (*Service) ResolveDependencies ¶
func (s *Service) ResolveDependencies(services []servicemesh.Service)
func (*Service) UnexportFromLua ¶
Click to show internal directories.
Click to hide internal directories.