22 [
Serialize(
"",
IsPropertySaveable.Yes, description:
"The option that must be selected for the order. If the order has multiple options (such as turning on or turning off a reactor).")]
25 [
Serialize(
"",
IsPropertySaveable.Yes, description:
"Tag of the entity the order must be targeting. Only valid for orders that can target a specific entity (such as orders to operate a specific turret).")]
36 if (targetCharacters.None())
38 DebugConsole.LogError($
"CheckConditionalAction error: {GetEventName()} uses a CheckOrderAction but no valid target characters were found for tag \"{TargetTag}\"! This will cause the check to automatically fail.",
42 foreach (var t
in targetCharacters)
50 if (c.GetCurrentOrderWithTopPriority() is
Order topPrioOrder && IsMatch(topPrioOrder))
57 foreach (var order
in c.CurrentOrders)
66 bool IsMatch(
Order order)
85 private string GetEventName()
Check whether a specific character has been given a specific order.
CheckOrderAction(ScriptedEvent parentEvent, ContentXElement element)
Identifier OrderTargetTag
override? bool DetermineSuccess()
Identifier OrderIdentifier
readonly ScriptedEvent ParentEvent
bool HasTag(Identifier tag)
readonly Entity TargetEntity
readonly Identifier Option
ContentPackage? ContentPackage
readonly Identifier Identifier
IEnumerable< Entity > GetTargets(Identifier tag)