effects

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: GPL-3.0 Imports: 5 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 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が呼ばれるのは同じ

Types

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 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
}

Jump to

Keyboard shortcuts

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