Make Transform use child activities

This commit is contained in:
Oliver Brakmann
2017-04-30 18:28:13 +00:00
committed by Paul Chote
parent f9951f76ca
commit f9913db5e8
3 changed files with 63 additions and 43 deletions

View File

@@ -51,7 +51,7 @@ namespace OpenRA.Mods.Common.Traits.Render
Forward(self, () => building.NotifyBuildingComplete(self));
}
void Forward(Actor self, Action onComplete)
public void Forward(Actor self, Action onComplete)
{
if (conditionManager != null && !string.IsNullOrEmpty(info.Condition) && token == ConditionManager.InvalidConditionToken)
token = conditionManager.GrantCondition(self, info.Condition);
@@ -66,7 +66,7 @@ namespace OpenRA.Mods.Common.Traits.Render
});
}
void Reverse(Actor self, Action onComplete)
public void Reverse(Actor self, Action onComplete)
{
if (conditionManager != null && !string.IsNullOrEmpty(info.Condition) && token == ConditionManager.InvalidConditionToken)
token = conditionManager.GrantCondition(self, info.Condition);