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) PlayerHasEffectState ¶ added in v0.13.0
PlayerHasEffectState reads the server's actor options, not status-icon timers.
func (Context) ScreenSize ¶
func (Context) ScriptPath ¶ added in v0.16.0
type RuntimeSettings ¶
type RuntimeSettings interface {
Fullscreen() bool
SetFullscreen(bool)
VSync() bool
SetVSync(bool)
FPS() bool
SetFPS(bool)
Anisotropy() int
SetAnisotropy(int)
TextureUpscaling() bool
SetTextureUpscaling(bool)
SmoothSprites() bool
SetSmoothSprites(bool)
MSAA() bool
SetMSAA(bool)
Bloom() bool
SetBloom(bool)
SSAO() bool
SetSSAO(bool)
}
Click to show internal directories.
Click to hide internal directories.