Documentation ¶
Index ¶
- type Dependency
- type GameEvent
- type IsFooService
- 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) Logger() *slog.Logger
- func (s *Service) Name() string
- func (s *Service) Ready() bool
- func (s *Service) ResolveDependencies(mesh servicemesh.Mesh)
- 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 = 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
type IsFooService ¶
type IsFooService interface {
Foo()
}
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) ResolveDependencies ¶
func (s *Service) ResolveDependencies(mesh servicemesh.Mesh)
func (*Service) UnexportFromLua ¶
Click to show internal directories.
Click to hide internal directories.