systems

package
v0.0.0-...-9c7fcfc Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JobSelectPhaseOne = iota
	NameSelectPhaseOne
	JobSelectPhaseTwo
	NameSelectPhaseTwo
	JobSelectPhaseThree
	NameSelectPhaseThree
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptSystem

type AcceptSystem struct {
	Fnt    *common.Font
	LogSnd *common.Player
	// contains filtered or unexported fields
}

func (*AcceptSystem) Add

func (s *AcceptSystem) Add(i *ecs.BasicEntity, job string)

func (*AcceptSystem) New

func (s *AcceptSystem) New(w *ecs.World)

func (*AcceptSystem) Remove

func (s *AcceptSystem) Remove(basic ecs.BasicEntity)

func (*AcceptSystem) Update

func (s *AcceptSystem) Update(dt float32)

type CombatLogDoneMessage

type CombatLogDoneMessage struct {
	Done bool
}

func (*CombatLogDoneMessage) Type

func (m *CombatLogDoneMessage) Type() string

type CombatLogMessage

type CombatLogMessage struct {
	Msg  string
	Fnt  *common.Font
	Clip *common.Player
}

func (CombatLogMessage) Type

func (m CombatLogMessage) Type() string

type CombatLogSystem

type CombatLogSystem struct {
	BackgroundURL, FontURL, DotURL string
	LineDelay, LetterDelay         float32
	// contains filtered or unexported fields
}

func (*CombatLogSystem) New

func (s *CombatLogSystem) New(w *ecs.World)

func (*CombatLogSystem) Remove

func (s *CombatLogSystem) Remove(basic ecs.BasicEntity)

func (*CombatLogSystem) Update

func (s *CombatLogSystem) Update(dt float32)

type CursorComponent

type CursorComponent struct {
	Selected bool
}

func (*CursorComponent) GetCursorComponent

func (c *CursorComponent) GetCursorComponent() *CursorComponent

type CursorFace

type CursorFace interface {
	GetCursorComponent() *CursorComponent
}

type CursorJumpSetMessage

type CursorJumpSetMessage struct {
	Jump int
}

func (CursorJumpSetMessage) Type

type CursorSetMessage

type CursorSetMessage struct {
	ID ecs.Identifier
}

func (CursorSetMessage) Type

func (CursorSetMessage) Type() string

type CursorSystem

type CursorSystem struct {
	ClickSoundURL string
	CursorURL     string
	// contains filtered or unexported fields
}

func (*CursorSystem) Add

func (s *CursorSystem) Add(basic *ecs.BasicEntity, space *common.SpaceComponent, render *common.RenderComponent, selection *CursorComponent)

func (*CursorSystem) AddByInterface

func (s *CursorSystem) AddByInterface(id ecs.Identifier)

func (*CursorSystem) New

func (s *CursorSystem) New(w *ecs.World)

func (*CursorSystem) Remove

func (s *CursorSystem) Remove(basic ecs.BasicEntity)

func (*CursorSystem) Update

func (s *CursorSystem) Update(dt float32)

type ExitSystem

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

ExitSystem exits the game when you press esc for 3 seconds.

func (*ExitSystem) New

func (e *ExitSystem) New(w *ecs.World)

func (*ExitSystem) Remove

func (e *ExitSystem) Remove(basic ecs.BasicEntity)

func (*ExitSystem) Update

func (e *ExitSystem) Update(dt float32)

type FullScreenSystem

type FullScreenSystem struct{}

func (*FullScreenSystem) Remove

func (*FullScreenSystem) Remove(basic ecs.BasicEntity)

func (*FullScreenSystem) Update

func (f *FullScreenSystem) Update(float32)

type JobSelectAble

type JobSelectAble interface {
	common.BasicFace
	JobSelectFace
}

type JobSelectComponent

type JobSelectComponent struct {
	Atk, Def, Spd int
	Job, Name     string
	SpecialName   string
	SpecialURL    string
	// contains filtered or unexported fields
}

func (*JobSelectComponent) GetJobSelectComponent

func (c *JobSelectComponent) GetJobSelectComponent() *JobSelectComponent

type JobSelectFace

type JobSelectFace interface {
	GetJobSelectComponent() *JobSelectComponent
}

type JobSelectPauseMessage

type JobSelectPauseMessage struct{}

func (JobSelectPauseMessage) Type

type JobSelectSystem

type JobSelectSystem struct {
	Fnt    *common.Font
	LogSnd *common.Player
	// contains filtered or unexported fields
}

func (*JobSelectSystem) Add

func (s *JobSelectSystem) Add(basic *ecs.BasicEntity, sel *JobSelectComponent)

func (*JobSelectSystem) AddByInterface

func (s *JobSelectSystem) AddByInterface(i ecs.Identifier)

func (*JobSelectSystem) New

func (s *JobSelectSystem) New(w *ecs.World)

func (*JobSelectSystem) Remove

func (s *JobSelectSystem) Remove(basic ecs.BasicEntity)

func (*JobSelectSystem) Update

func (s *JobSelectSystem) Update(dt float32)

type JobSelectUnpauseMessage

type JobSelectUnpauseMessage struct {
	IDs []*ecs.BasicEntity
}

func (JobSelectUnpauseMessage) Type

type LogFinishedSetSceneMessage

type LogFinishedSetSceneMessage struct {
	To       string
	NewWorld bool
}

func (LogFinishedSetSceneMessage) Type

type LogFinishedSetSceneSystem

type LogFinishedSetSceneSystem struct {
	To       string
	NewWorld bool
}

func (*LogFinishedSetSceneSystem) New

func (s *LogFinishedSetSceneSystem) New(w *ecs.World)

func (*LogFinishedSetSceneSystem) Remove

func (s *LogFinishedSetSceneSystem) Remove(basic ecs.BasicEntity)

func (*LogFinishedSetSceneSystem) Update

func (s *LogFinishedSetSceneSystem) Update(dt float32)

type NameSelectPauseMessage

type NameSelectPauseMessage struct{}

func (NameSelectPauseMessage) Type

type NameSelectSystem

type NameSelectSystem struct {
	Fnt    *common.Font
	LogSnd *common.Player
	MaxLen int
	// contains filtered or unexported fields
}

func (*NameSelectSystem) New

func (s *NameSelectSystem) New(w *ecs.World)

func (*NameSelectSystem) Remove

func (s *NameSelectSystem) Remove(basic ecs.BasicEntity)

func (*NameSelectSystem) Update

func (s *NameSelectSystem) Update(dt float32)

type NameSelectUnpauseMessage

type NameSelectUnpauseMessage struct{}

func (NameSelectUnpauseMessage) Type

type NotCursorAble

type NotCursorAble interface {
	GetNotCursorComponent() *NotCursorComponent
}

type NotCursorComponent

type NotCursorComponent struct{}

func (*NotCursorComponent) GetNotCursorComponent

func (n *NotCursorComponent) GetNotCursorComponent() *NotCursorComponent

type NotJobSelectAble

type NotJobSelectAble interface {
	GetNotJobSelectComponent() *NotJobSelectComponent
}

type NotJobSelectComponent

type NotJobSelectComponent struct{}

func (*NotJobSelectComponent) GetNotJobSelectComponent

func (c *NotJobSelectComponent) GetNotJobSelectComponent() *NotJobSelectComponent

type NotSceneSwitchAble

type NotSceneSwitchAble interface {
	GetNotSceneSwitchComponent() *NotSceneSwitchComponent
}

type NotSceneSwitchComponent

type NotSceneSwitchComponent struct{}

func (*NotSceneSwitchComponent) GetNotSceneSwitchComponent

func (c *NotSceneSwitchComponent) GetNotSceneSwitchComponent() *NotSceneSwitchComponent

type NotShopItemSelectAble

type NotShopItemSelectAble interface {
	GetNotShopItemSelectComponent() *NotShopItemSelectComponent
}

type NotShopItemSelectComponent

type NotShopItemSelectComponent struct{}

func (*NotShopItemSelectComponent) GetNotShopItemSelectComponent

func (n *NotShopItemSelectComponent) GetNotShopItemSelectComponent() *NotShopItemSelectComponent

type NotShopPurchaseAble

type NotShopPurchaseAble interface {
	GetNotShopPurchaseComponent() *NotShopPurchaseComponent
}

type NotShopPurchaseComponent

type NotShopPurchaseComponent struct{}

func (*NotShopPurchaseComponent) GetNotShopPurchaseComponent

func (c *NotShopPurchaseComponent) GetNotShopPurchaseComponent() *NotShopPurchaseComponent

type SceneSwitchAble

type SceneSwitchAble interface {
	common.BasicFace
	CursorFace
	SceneSwitchFace
}

type SceneSwitchComponent

type SceneSwitchComponent struct {
	//scene to switch to
	To       string
	NewWorld bool
}

func (*SceneSwitchComponent) GetSceneSwitchComponent

func (c *SceneSwitchComponent) GetSceneSwitchComponent() *SceneSwitchComponent

type SceneSwitchFace

type SceneSwitchFace interface {
	GetSceneSwitchComponent() *SceneSwitchComponent
}

type SceneSwitchSystem

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

func (*SceneSwitchSystem) Add

func (s *SceneSwitchSystem) Add(basic *ecs.BasicEntity, cursor *CursorComponent, scene *SceneSwitchComponent)

func (*SceneSwitchSystem) AddByInterface

func (s *SceneSwitchSystem) AddByInterface(i ecs.Identifier)

func (*SceneSwitchSystem) Remove

func (s *SceneSwitchSystem) Remove(basic ecs.BasicEntity)

func (*SceneSwitchSystem) Update

func (s *SceneSwitchSystem) Update(dt float32)

type SelectPhase

type SelectPhase uint
var CurrentPhase SelectPhase = JobSelectPhaseOne

type ShopItemSelectAble

type ShopItemSelectAble interface {
	common.BasicFace
	ShopItemSelectFace
}

type ShopItemSelectComponent

type ShopItemSelectComponent struct {
	Name, FullName, Desc, Cost string
}

func (*ShopItemSelectComponent) GetShopItemSelectComponent

func (c *ShopItemSelectComponent) GetShopItemSelectComponent() *ShopItemSelectComponent

type ShopItemSelectFace

type ShopItemSelectFace interface {
	GetShopItemSelectComponent() *ShopItemSelectComponent
}

type ShopItemSelectPauseMessage

type ShopItemSelectPauseMessage struct{}

func (ShopItemSelectPauseMessage) Type

type ShopItemSelectSystem

type ShopItemSelectSystem struct {
	URL string
	Fnt *common.Font
	// contains filtered or unexported fields
}

func (*ShopItemSelectSystem) Add

func (*ShopItemSelectSystem) AddByInterface

func (s *ShopItemSelectSystem) AddByInterface(i ecs.Identifier)

func (*ShopItemSelectSystem) New

func (s *ShopItemSelectSystem) New(w *ecs.World)

func (*ShopItemSelectSystem) Priority

func (s *ShopItemSelectSystem) Priority() int

func (*ShopItemSelectSystem) Remove

func (s *ShopItemSelectSystem) Remove(basic ecs.BasicEntity)

func (*ShopItemSelectSystem) Update

func (s *ShopItemSelectSystem) Update(dt float32)

type ShopItemSelectUnpauseMessage

type ShopItemSelectUnpauseMessage struct{}

func (ShopItemSelectUnpauseMessage) Type

type ShopKeeperSystem

type ShopKeeperSystem struct {
	KeeperURL string
	// contains filtered or unexported fields
}

func (*ShopKeeperSystem) New

func (s *ShopKeeperSystem) New(w *ecs.World)

func (*ShopKeeperSystem) Remove

func (s *ShopKeeperSystem) Remove(basic ecs.BasicEntity)

func (*ShopKeeperSystem) Update

func (s *ShopKeeperSystem) Update(dt float32)

type ShopPurchaseAble

type ShopPurchaseAble interface {
	common.BasicFace
	ShopItemSelectFace
	ShopPurchaseFace
}

type ShopPurchaseComponent

type ShopPurchaseComponent struct {
	MaxQuantity int
	Price       int
}

func (*ShopPurchaseComponent) GetShopPurchaseComponent

func (c *ShopPurchaseComponent) GetShopPurchaseComponent() *ShopPurchaseComponent

type ShopPurchaseFace

type ShopPurchaseFace interface {
	GetShopPurchaseComponent() *ShopPurchaseComponent
}

type ShopPurchasePauseMessage

type ShopPurchasePauseMessage struct{}

func (ShopPurchasePauseMessage) Type

type ShopPurchaseSystem

type ShopPurchaseSystem struct {
	Fnt *common.Font
	Snd *common.Player

	BGURL string

	MoneyBGURL string
	// contains filtered or unexported fields
}

func (*ShopPurchaseSystem) Add

func (*ShopPurchaseSystem) AddByInterface

func (s *ShopPurchaseSystem) AddByInterface(i ecs.Identifier)

func (*ShopPurchaseSystem) New

func (s *ShopPurchaseSystem) New(w *ecs.World)

func (*ShopPurchaseSystem) Remove

func (s *ShopPurchaseSystem) Remove(basic ecs.BasicEntity)

func (*ShopPurchaseSystem) Update

func (s *ShopPurchaseSystem) Update(dt float32)

type ShopPurchaseUnpauseMessage

type ShopPurchaseUnpauseMessage struct {
	ID ecs.Identifier
}

func (ShopPurchaseUnpauseMessage) Type

Jump to

Keyboard shortcuts

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