systems

package
v1.69.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelUpThreshold = 100
)

Variables

This section is empty.

Functions

func AIInputSystem added in v1.69.0

func AIInputSystem(world w.World)

func BattleCommandSystem added in v1.52.0

func BattleCommandSystem(world w.World)

1回1回実行ごとにコマンドを取り出して結果を得られるようになっている クリックごとにコマンドの結果を見られるようにするため

func EquipmentChangedSystem added in v1.20.0

func EquipmentChangedSystem(world w.World) bool

装備変更のダーティフラグが立ったら、ステータス補正まわりを再計算する TODO: 最大HP/SPの更新はここでやったほうがよさそう TODO: マイナスにならないようにする

func HUDSystem added in v1.38.0

func HUDSystem(world w.World, screen *ebiten.Image)

func MoveSystem

func MoveSystem(world w.World)

func PlayerInputSystem added in v1.69.0

func PlayerInputSystem(world w.World)

func RenderSpriteSystem added in v1.33.0

func RenderSpriteSystem(world w.World, screen *ebiten.Image)

(下) タイル -> 影 -> スプライト (上) の順に表示する

func VisionSystem added in v1.67.0

func VisionSystem(world w.World, screen *ebiten.Image)

探索範囲エリアを表示する

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

戦闘終了後に経験値や素材を獲得する 獲得した素材名を返す

Jump to

Keyboard shortcuts

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