Make phase transport uncloak on loading cargo

This commit is contained in:
Gustas
2023-07-10 15:18:13 +03:00
committed by Matthias Mailänder
parent 7f37454666
commit 659ec5e335
6 changed files with 43 additions and 20 deletions

View File

@@ -21,7 +21,7 @@ namespace OpenRA.Mods.Common.Activities
{
readonly Actor self;
readonly Cargo cargo;
readonly INotifyUnload[] notifiers;
readonly INotifyUnloadCargo[] notifiers;
readonly bool unloadAll;
readonly Aircraft aircraft;
readonly Mobile mobile;
@@ -41,7 +41,7 @@ namespace OpenRA.Mods.Common.Activities
{
this.self = self;
cargo = self.Trait<Cargo>();
notifiers = self.TraitsImplementing<INotifyUnload>().ToArray();
notifiers = self.TraitsImplementing<INotifyUnloadCargo>().ToArray();
this.unloadAll = unloadAll;
aircraft = self.TraitOrDefault<Aircraft>();
mobile = self.TraitOrDefault<Mobile>();