1 using Microsoft.Xna.Framework;
11 public float Size {
get;
set; }
18 private bool isFinished =
false;
29 public override void Update(
float deltaTime)
31 if (isFinished) {
return; }
33 foreach (var target
in targets)
35 Vector2 pos = target.WorldPosition;
38 newFire.Size =
new Vector2(
Size,
Size);
45 return $
"{ToolBox.GetDebugSymbol(isFinished)} {nameof(FireAction)} -> (TargetTag: {TargetTag.ColorizeObject()}, " +
46 $
"Size: {Size.ColorizeObject()})";
readonly ScriptedEvent ParentEvent
Starts a fire at the position of a specific target.
override bool IsFinished(ref string goTo)
Has the action finished.
override string ToDebugString()
Rich test to display in debugdraw
FireAction(ScriptedEvent parentEvent, ContentXElement element)
override void Update(float deltaTime)
IEnumerable< Entity > GetTargets(Identifier tag)