Documentation
¶
Index ¶
- Constants
- func AIInputSystem(world w.World)
- func BattleCommandSystem(world w.World)
- func EquipmentChangedSystem(world w.World) bool
- func HUDSystem(world w.World, screen *ebiten.Image)
- func MoveSystem(world w.World)
- func PlayerInputSystem(world w.World)
- func RenderSpriteSystem(world w.World, screen *ebiten.Image)
- func VisionSystem(world w.World, screen *ebiten.Image)
- type BattleExtinctionType
- type DropResult
Constants ¶
View Source
const (
LevelUpThreshold = 100
)
Variables ¶
This section is empty.
Functions ¶
func AIInputSystem ¶ added in v1.69.0
func BattleCommandSystem ¶ added in v1.52.0
1回1回実行ごとにコマンドを取り出して結果を得られるようになっている クリックごとにコマンドの結果を見られるようにするため
func EquipmentChangedSystem ¶ added in v1.20.0
装備変更のダーティフラグが立ったら、ステータス補正まわりを再計算する TODO: 最大HP/SPの更新はここでやったほうがよさそう TODO: マイナスにならないようにする
func MoveSystem ¶
func PlayerInputSystem ¶ added in v1.69.0
func RenderSpriteSystem ¶ added in v1.33.0
(下) タイル -> 影 -> スプライト (上) の順に表示する
func VisionSystem ¶ added in v1.67.0
探索範囲エリアを表示する
Types ¶
type BattleExtinctionType ¶ added in v1.64.0
type BattleExtinctionType int
const ( BattleExtinctionNone BattleExtinctionType = iota BattleExtinctionAlly BattleExtinctionMonster )
func BattleExtinctionSystem ¶ added in v1.64.0
func BattleExtinctionSystem(world w.World) BattleExtinctionType
敵や味方の全滅をチェックする
type DropResult ¶ added in v1.65.0
type DropResult struct { // 獲得した素材名 MaterialNames []string // 獲得前の経験値 XPBefore map[ecs.Entity]int // 獲得後の経験値 XPAfter map[ecs.Entity]int // レベルアップしたかどうか IsLevelUp map[ecs.Entity]bool }
UI用に渡す実行結果
func BattleDropSystem ¶ added in v1.65.0
func BattleDropSystem(world w.World) DropResult
戦闘終了後に経験値や素材を獲得する 獲得した素材名を返す
Click to show internal directories.
Click to hide internal directories.