Documentation
¶
Overview ¶
Package client defines the runtime context shared by game orchestration and UI. It deliberately contains references to subsystems but no gameplay or rendering policy.
Index ¶
Constants ¶
View Source
const TokenOfSiegfriedItemID uint16 = 7621
Variables ¶
This section is empty.
Functions ¶
func AutoReviveAvailable ¶ added in v0.10.0
AutoReviveAvailable reports whether the local player can offer the classic Token of Siegfried resurrection action.
func RequestAutoRevive ¶ added in v0.10.0
RequestAutoRevive sends the normal client request. The server remains authoritative over consuming the token and resurrecting the character.
func SendChat ¶ added in v0.7.0
SendChat sends console-style chat input through the appropriate channel.
func SetSitting ¶ added in v0.7.0
SetSitting requests a sit or stand action and updates the local player state.
Types ¶
type Context ¶
type Context struct {
Config config.Config
Input *input.State
Resources *res.Manager
Session *session.Session
World *world.World
Network *network.Client
Audio *audio.BGM
Started time.Time
ScreenW int
ScreenH int
Runtime RuntimeSettings
RequestQuit func()
RequestScreenshot func() (string, error)
UIApp UIApp
UIManager UIManager
}
func (Context) ScreenSize ¶
type RuntimeSettings ¶
Click to show internal directories.
Click to hide internal directories.