service_template

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: 4 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 = IsFooService

type GameEvent

type GameEvent int

GameEvent represents an envent in the game engine

const (
	ToggleGameMenu       GameEvent = iota
	ToggleCharacterPanel           // panel toggles
	ToggleInventoryPanel
	TogglePartyPanel
	ToggleSkillTreePanel
	ToggleHirelingPanel
	ToggleQuestLog
	ToggleHelpScreen
	ToggleChatOverlay
	ToggleMessageLog
	ToggleRightSkillSelector // these two are for left/right speed-skill panel toggles
	ToggleLeftSkillSelector
	ToggleAutomap
	CenterAutomap        // recenters the automap when opened
	FadeAutomap          // reduces the brightness of the map (not the players/npcs)
	TogglePartyOnAutomap // toggles the display of the party members on the automap
	ToggleNamesOnAutomap // toggles the display of party members names and npcs on the automap
	ToggleMiniMap
	UseSkill1 // there can be 16 hotkeys, each hotkey can have a skill assigned
	UseSkill2
	UseSkill3
	UseSkill4
	UseSkill5
	UseSkill6
	UseSkill7
	UseSkill8
	UseSkill9
	UseSkill10
	UseSkill11
	UseSkill12
	UseSkill13
	UseSkill14
	UseSkill15
	UseSkill16
	SelectPreviousSkill
	SelectNextSkill
	ToggleBelt
	UseBeltSlot1
	UseBeltSlot2
	UseBeltSlot3
	UseBeltSlot4
	SwapWeapons
	ToggleChatBox
	ToggleRunWalk
	SayHelp
	SayFollowMe
	SayThisIsForYou
	SayThanks
	SaySorry
	SayBye
	SayNowYouDie
	SayRetreat
	HoldRun // these events are fired while a player holds the corresponding key
	HoldStandStill
	HoldShowGroundItems
	HoldShowPortraits
	TakeScreenShot
	ClearScreen // closes all active menus/panels
	ClearMessages
)

Game events

func (GameEvent) String

func (e GameEvent) String() string

type IsFooService

type IsFooService interface {
	Foo()
}

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

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

func (*Service) Name

func (s *Service) Name() string

func (*Service) Ready

func (s *Service) Ready() bool

func (*Service) ResolveDependencies

func (s *Service) ResolveDependencies(mesh servicemesh.Mesh)

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