coldbrew_clientsystems

package
v0.0.0-...-5a25bdc Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0, MIT Imports: 14 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConversation

func InitConversation(scene coldbrew.Scene, convo *dialogue.Conversation, fontFace *text.GoTextFace, maxWidth float64) bool

Types

type BackgroundScrollSystem

type BackgroundScrollSystem struct{}

BackgroundScrollSystem handles parallax scrolling effects for backgrounds based on camera movement

func (BackgroundScrollSystem) Run

type CameraBorderLockSystem

type CameraBorderLockSystem struct{}

CameraBorderLockSystem ensures cameras stay within scene boundaries

func (CameraBorderLockSystem) Run

Run implements the system that constrains camera movement to scene boundaries

type CameraSceneAssignerSystem

type CameraSceneAssignerSystem struct {
	// contains filtered or unexported fields
}

CameraSceneAssignerSystem manages cameras across scenes. It uses the 'CameraIndex' component to determine which cameras should be active. When all scenes are inactive (loading or similar states), the system will only keep the first camera active to display loaders or other UI elements.

func (*CameraSceneAssignerSystem) Run

Run executes the camera scene assignment logic

type DialogueSoundSystem

type DialogueSoundSystem struct {
	Volume                     float64
	TEXT_REVEAL_DELAY_IN_TICKS int
	SoundOnWord                bool
}

func (DialogueSoundSystem) Run

type DialogueTextSystem

type DialogueTextSystem struct {
	TEXT_REVEAL_DELAY_IN_TICKS int
	FONT_SIZE                  int
	FONT_FACE                  *text.GoTextFace
	MAX_LINE_WIDTH             int
}

func (DialogueTextSystem) Run

type InputBufferSystem

type InputBufferSystem struct{}

InputBufferSystem extracts client inputs and passes them to the core system components as StampedActions

func (InputBufferSystem) Run

type InputSenderSystem

type InputSenderSystem struct{}

InputSenderSystem collects inputs from local receivers and sends them over the network as StampedActions

func (InputSenderSystem) Run

type SplitScreenLayoutSystem

type SplitScreenLayoutSystem struct {
	// contains filtered or unexported fields
}

SplitScreenLayoutSystem manages camera layouts based on resolution, window size and active camera count

func (*SplitScreenLayoutSystem) Run

Run processes active cameras and updates layout when count changes

Jump to

Keyboard shortcuts

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