effects

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: GPL-3.0 Imports: 4 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 EventTrigger

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

イベントをトリガーする

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)

アイテムからイベントをトリガーする

func RunEffectQueue

func RunEffectQueue(world w.World)

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

func TargetApplicator

func TargetApplicator(world w.World, es EffectSpawner)

EffectSpawnerからEffectを生成する

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

type ItemUse

type ItemUse struct {
	Item ecs.Entity
}

type Party

type Party struct{}

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