input

package
v0.0.0-...-126e10b Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 8 Imported by: 0

README

Template service

The purpose of this Service Mesh service is ...

Dependencies

This service has dependencies on all other Diablo2 file-loader services:

Integration with other services

This service integrates with the following services:

  • buzz

  • quzz

  • describe where the integration is optonal or not ...


This service exports an integration interface IsFoo with an alias Dependencncy which are intended to be used by other services for dependency resolution (see servicemesh.HasDependencies), and expose just the methods which other services should use.

type Dependency = Foo

type IsFoo interface {
    Foo()
}

Lua service integration

Describe how this service integrates with the lua service (this is just an example).

You should show an example of the lua API usage:

data = assets.load("/data/global/ui/Loading/loadingscreen.dc6")

Documentation

Index

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 (s *Service) DependenciesResolved() bool

func (*Service) ExportToLua

func (s *Service) ExportToLua(state *lua.LState)

func (*Service) Foo

func (s *Service) Foo()

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) Logger

func (s *Service) Logger() *slog.Logger

func (*Service) MouseButtonState

func (s *Service) MouseButtonState() map[int32]InputState

func (*Service) MouseCursorState

func (s *Service) MouseCursorState() (x, y int)

func (*Service) Name

func (s *Service) Name() string

func (*Service) Ready

func (s *Service) Ready() bool

func (*Service) ResolveDependencies

func (s *Service) ResolveDependencies(services []servicemesh.Service)

func (*Service) SetLogger

func (s *Service) SetLogger(logger *slog.Logger)

func (*Service) UnexportFromLua

func (s *Service) UnexportFromLua(state *lua.LState)

Jump to

Keyboard shortcuts

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