effects

package
v1.59.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EffectQueue []EffectSpawner

Functions

func AddEffect

func AddEffect(creator *ecs.Entity, effectType EffectType, targets Targets)

func AffectEntity

func AffectEntity(world w.World, es EffectSpawner, target *ecs.Entity)

func ConsumeStamina added in v1.59.0

func ConsumeStamina(world w.World, consume EffectSpawner, target ecs.Entity)

func HealDamage

func HealDamage(world w.World, healing EffectSpawner, target ecs.Entity)

func InflictDamage

func InflictDamage(world w.World, damage EffectSpawner, target ecs.Entity)

func ItemTrigger

func ItemTrigger(creator *ecs.Entity, item ecs.Entity, targets Targets, world w.World)

アイテムについたComponentからEffectを登録する 消費アイテムはなくなる

func RecoverStamina added in v1.20.1

func RecoverStamina(world w.World, recover EffectSpawner, target ecs.Entity)

func RunEffectQueue

func RunEffectQueue(world w.World)

キューに貯められたEffectSpawnerを処理する

func TargetApplicator

func TargetApplicator(world w.World, es EffectSpawner)

単数or複数Targetを処理する。最終的にAffectEntityが呼ばれるのは同じ

func WarpEscapeTask added in v1.46.0

func WarpEscapeTask(world w.World)

func WarpNextTask added in v1.46.0

func WarpNextTask(world w.World)

Types

type ConsumptionStamina added in v1.59.0

type ConsumptionStamina struct {
	Amount gc.Amounter
}

スタミナを消費する

type Damage

type Damage struct {
	Amount int
}

ダメージを与える

type EffectSpawner

type EffectSpawner struct {
	Creator    *ecs.Entity
	EffectType EffectType
	Targets    Targets
}

queueの中身

type EffectType

type EffectType interface {
	// contains filtered or unexported methods
}

type Healing

type Healing struct {
	Amount gc.Amounter
}

体力を回復する

type ItemUse

type ItemUse struct {
	Item ecs.Entity
}

アイテムを使用する

type None added in v1.46.0

type None struct{}

type Party

type Party struct{}

type RecoveryStamina added in v1.20.1

type RecoveryStamina struct {
	Amount gc.Amounter
}

スタミナを回復する

type Single

type Single struct {
	Target ecs.Entity
}

type Targets

type Targets interface {
	// contains filtered or unexported methods
}

type WarpEscape added in v1.46.0

type WarpEscape struct{}

脱出

type WarpNext added in v1.46.0

type WarpNext struct{}

次階層に移動する

Jump to

Keyboard shortcuts

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