component

package
v0.0.0-...-3eebe10 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CharacterAttachmentComponent

type CharacterAttachmentComponent struct {
	Files map[character.AttachmentType]grf.ActionSpriteFilePair
}

CharacterAttachmentComponent defines a component that holds state about character character attachments (shadow, body, head...).

type CharacterAttachmentComponentConfig

type CharacterAttachmentComponentConfig struct {
	Gender           character.GenderType
	JobSpriteID      jobspriteid.Type
	HeadIndex        character.HeadIndex
	EnableShield     bool
	ShieldSpriteName string // Loaded from GRF
}

type CharacterAttachmentComponentFace

type CharacterAttachmentComponentFace interface {
	GetCharacterAttachmentComponent() *CharacterAttachmentComponent
}

type CharacterSpriteRenderInfoComponent

type CharacterSpriteRenderInfoComponent struct {
	ActionIndex        actionindex.Type
	AnimationDelay     time.Duration
	AnimationEndsAt    time.Time
	AnimationStartedAt time.Time
	Direction          directiontype.Type
	ForcedDuration     time.Duration
	FPSMultiplier      float64
	IsStandingBy       bool
}

func NewCharacterSpriteRenderInfoComponent

func NewCharacterSpriteRenderInfoComponent() *CharacterSpriteRenderInfoComponent

type CharacterSpriteRenderInfoComponentFace

type CharacterSpriteRenderInfoComponentFace interface {
	GetCharacterSpriteRenderInfoComponent() *CharacterSpriteRenderInfoComponent
}

type CharacterStateComponent

type CharacterStateComponent struct {
	PlayMode             actionplaymode.Type
	PreviousState, State statetype.Type
}

CharacterStateComponent defines a component that holds information about character state, such as the action (Idle, Walking...), the direction (South, North...) and state.

type CharacterStateComponentFace

type CharacterStateComponentFace interface {
	GetCharacterStateComponent() *CharacterStateComponent
}

Jump to

Keyboard shortcuts

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