2 using Microsoft.Xna.Framework;
3 using System.Collections.Generic;
13 private static readonly Color highlightColor = Color.Orange;
15 [Serialize(
"", IsPropertySaveable.Yes, description:
"Tag of the entity to highlight.")]
18 [Serialize(
"", IsPropertySaveable.Yes, description:
"Only the player controlling this character will see the highlight. If empty, all players will see it.")]
21 [Serialize(
true, IsPropertySaveable.Yes, description:
"Should the highlight be turned on or off?")]
24 private bool isFinished;
26 public HighlightAction(ScriptedEvent parentEvent, ContentXElement element) : base(parentEvent, element)
30 public override void Update(
float deltaTime)
32 if (isFinished) {
return; }
34 foreach (var target
in ParentEvent.GetTargets(
TargetTag))
36 SetHighlightProjSpecific(target, targetCharacters);
41 partial
void SetHighlightProjSpecific(Entity entity, IEnumerable<Character>? targetCharacters);
43 public override bool IsFinished(ref
string goToLabel) => isFinished;
45 public override void Reset() => isFinished =
false;
Highlights a specific entity.
Identifier TargetCharacter
override bool IsFinished(ref string goToLabel)
override void Update(float deltaTime)
HighlightAction(ScriptedEvent parentEvent, ContentXElement element)