Documentation ¶
Index ¶
- Variables
- func AddEffect(creator *ecs.Entity, effectType EffectType, targets Targets)
- func AffectEntity(world w.World, es EffectSpawner, target *ecs.Entity)
- func ConsumeStamina(world w.World, consume EffectSpawner, target ecs.Entity)
- func HealDamage(world w.World, healing EffectSpawner, target ecs.Entity)
- func InflictDamage(world w.World, damage EffectSpawner, target ecs.Entity)
- func ItemTrigger(creator *ecs.Entity, item ecs.Entity, targets Targets, world w.World)
- func RecoverStamina(world w.World, recover EffectSpawner, target ecs.Entity)
- func RunEffectQueue(world w.World)
- func TargetApplicator(world w.World, es EffectSpawner)
- func WarpEscapeTask(world w.World)
- func WarpNextTask(world w.World)
- type ConsumptionStamina
- type Damage
- type EffectSpawner
- type EffectType
- type Healing
- type ItemUse
- type None
- type Party
- type RecoveryStamina
- type Single
- type Targets
- type WarpEscape
- type WarpNext
Constants ¶
This section is empty.
Variables ¶
View Source
var EffectQueue []EffectSpawner
Functions ¶
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 ¶
アイテムについたComponentからEffectを登録する 消費アイテムはなくなる
func RecoverStamina ¶ added in v1.20.1
func RecoverStamina(world w.World, recover EffectSpawner, target ecs.Entity)
func TargetApplicator ¶
func TargetApplicator(world w.World, es EffectSpawner)
単数or複数Targetを処理する。最終的にAffectEntityが呼ばれるのは同じ
func WarpEscapeTask ¶ added in v1.46.0
func WarpNextTask ¶ added in v1.46.0
Types ¶
type ConsumptionStamina ¶ added in v1.59.0
スタミナを消費する
type EffectSpawner ¶
type EffectSpawner struct { Creator *ecs.Entity EffectType EffectType Targets Targets }
queueの中身
type EffectType ¶
type EffectType interface {
// contains filtered or unexported methods
}
type RecoveryStamina ¶ added in v1.20.1
スタミナを回復する
Click to show internal directories.
Click to hide internal directories.