Documentation ¶
Index ¶
- Constants
- type AcceptSystem
- type CombatLogDoneMessage
- type CombatLogMessage
- type CombatLogSystem
- type CursorAble
- type CursorComponent
- type CursorEntity
- type CursorFace
- type CursorJumpSetMessage
- type CursorSetMessage
- type CursorSystem
- type ExitSystem
- type FullScreenSystem
- type JobSelectAble
- type JobSelectComponent
- type JobSelectFace
- type JobSelectPauseMessage
- type JobSelectSystem
- type JobSelectUnpauseMessage
- type LogFinishedSetSceneMessage
- type LogFinishedSetSceneSystem
- type NameSelectPauseMessage
- type NameSelectSystem
- type NameSelectUnpauseMessage
- type NotCursorAble
- type NotCursorComponent
- type NotJobSelectAble
- type NotJobSelectComponent
- type NotSceneSwitchAble
- type NotSceneSwitchComponent
- type NotShopItemSelectAble
- type NotShopItemSelectComponent
- type NotShopPurchaseAble
- type NotShopPurchaseComponent
- type SceneSwitchAble
- type SceneSwitchComponent
- type SceneSwitchFace
- type SceneSwitchSystem
- type SelectPhase
- type ShopItemSelectAble
- type ShopItemSelectComponent
- type ShopItemSelectFace
- type ShopItemSelectPauseMessage
- type ShopItemSelectSystem
- func (s *ShopItemSelectSystem) Add(basic *ecs.BasicEntity, item *ShopItemSelectComponent)
- func (s *ShopItemSelectSystem) AddByInterface(i ecs.Identifier)
- func (s *ShopItemSelectSystem) New(w *ecs.World)
- func (s *ShopItemSelectSystem) Priority() int
- func (s *ShopItemSelectSystem) Remove(basic ecs.BasicEntity)
- func (s *ShopItemSelectSystem) Update(dt float32)
- type ShopItemSelectUnpauseMessage
- type ShopKeeperSystem
- type ShopPurchaseAble
- type ShopPurchaseComponent
- type ShopPurchaseFace
- type ShopPurchasePauseMessage
- type ShopPurchaseSystem
- func (s *ShopPurchaseSystem) Add(basic *ecs.BasicEntity, sel *ShopItemSelectComponent, ...)
- func (s *ShopPurchaseSystem) AddByInterface(i ecs.Identifier)
- func (s *ShopPurchaseSystem) New(w *ecs.World)
- func (s *ShopPurchaseSystem) Remove(basic ecs.BasicEntity)
- func (s *ShopPurchaseSystem) Update(dt float32)
- type ShopPurchaseUnpauseMessage
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 ¶
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 CursorAble ¶
type CursorAble interface { common.BasicFace common.SpaceFace common.RenderFace CursorFace }
type CursorComponent ¶
type CursorComponent struct {
Selected bool
}
func (*CursorComponent) GetCursorComponent ¶
func (c *CursorComponent) GetCursorComponent() *CursorComponent
type CursorEntity ¶
type CursorEntity struct { *ecs.BasicEntity *common.SpaceComponent *common.RenderComponent *CursorComponent }
type CursorFace ¶
type CursorFace interface {
GetCursorComponent() *CursorComponent
}
type CursorJumpSetMessage ¶
type CursorJumpSetMessage struct {
Jump int
}
func (CursorJumpSetMessage) Type ¶
func (CursorJumpSetMessage) Type() string
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 ¶
func (JobSelectPauseMessage) Type() string
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 ¶
func (JobSelectUnpauseMessage) Type() string
type LogFinishedSetSceneMessage ¶
func (LogFinishedSetSceneMessage) Type ¶
func (LogFinishedSetSceneMessage) Type() string
type LogFinishedSetSceneSystem ¶
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 ¶
func (NameSelectPauseMessage) Type() string
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 ¶
func (NameSelectUnpauseMessage) Type() string
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 ¶
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 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 ¶
func (ShopItemSelectPauseMessage) Type() string
type ShopItemSelectSystem ¶
type ShopItemSelectSystem struct { URL string Fnt *common.Font // contains filtered or unexported fields }
func (*ShopItemSelectSystem) Add ¶
func (s *ShopItemSelectSystem) Add(basic *ecs.BasicEntity, item *ShopItemSelectComponent)
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 ¶
func (ShopItemSelectUnpauseMessage) Type() string
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 ¶
func (*ShopPurchaseComponent) GetShopPurchaseComponent ¶
func (c *ShopPurchaseComponent) GetShopPurchaseComponent() *ShopPurchaseComponent
type ShopPurchaseFace ¶
type ShopPurchaseFace interface {
GetShopPurchaseComponent() *ShopPurchaseComponent
}
type ShopPurchasePauseMessage ¶
type ShopPurchasePauseMessage struct{}
func (ShopPurchasePauseMessage) Type ¶
func (ShopPurchasePauseMessage) Type() string
type ShopPurchaseSystem ¶
type ShopPurchaseSystem struct { Fnt *common.Font Snd *common.Player BGURL string MoneyBGURL string // contains filtered or unexported fields }
func (*ShopPurchaseSystem) Add ¶
func (s *ShopPurchaseSystem) Add(basic *ecs.BasicEntity, sel *ShopItemSelectComponent, pur *ShopPurchaseComponent)
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 ¶
func (ShopPurchaseUnpauseMessage) Type() string
Click to show internal directories.
Click to hide internal directories.