Prepare condition attributes for new lint rule.
This commit is contained in:
@@ -55,20 +55,22 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Cursor to display when unable to unload the passengers.")]
|
||||
public readonly string UnloadBlockedCursor = "deploy-blocked";
|
||||
|
||||
[UpgradeGrantedReference]
|
||||
[GrantedConditionReference]
|
||||
[Desc("The condition to grant to self while waiting for cargo to load.")]
|
||||
public readonly string LoadingCondition = null;
|
||||
|
||||
[UpgradeGrantedReference]
|
||||
[GrantedConditionReference]
|
||||
[Desc("The condition to grant to self while passengers are loaded.",
|
||||
"Condition can stack with multiple passengers.")]
|
||||
public readonly string LoadedCondition = null;
|
||||
|
||||
[UpgradeGrantedReference]
|
||||
[Desc("Conditions to grant when specified actors are loaded inside the transport.",
|
||||
"A dictionary of [actor id]: [condition].")]
|
||||
public readonly Dictionary<string, string> PassengerConditions = new Dictionary<string, string>();
|
||||
|
||||
[GrantedConditionReference]
|
||||
public IEnumerable<string> LinterPassengerConditions { get { return PassengerConditions.Values; } }
|
||||
|
||||
public object Create(ActorInitializer init) { return new Cargo(init, this); }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user