hooked into Mobile
This commit is contained in:
@@ -52,6 +52,10 @@ namespace OpenRA.Traits
|
|||||||
{
|
{
|
||||||
self.World.WorldActor.traits.Get<UnitInfluence>().Remove(self, this);
|
self.World.WorldActor.traits.Get<UnitInfluence>().Remove(self, this);
|
||||||
self.Location = value;
|
self.Location = value;
|
||||||
|
|
||||||
|
self.World.WorldActor.traits.Get<Shroud>().UpdateActor(self);
|
||||||
|
|
||||||
|
// todo: dies
|
||||||
self.Owner.Shroud.Explore(self);
|
self.Owner.Shroud.Explore(self);
|
||||||
}
|
}
|
||||||
self.World.WorldActor.traits.Get<UnitInfluence>().Add(self, this);
|
self.World.WorldActor.traits.Get<UnitInfluence>().Add(self, this);
|
||||||
|
|||||||
@@ -18,10 +18,10 @@
|
|||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using OpenRA.FileFormats;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRA.GameRules;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using OpenRA.FileFormats;
|
||||||
|
using OpenRA.GameRules;
|
||||||
|
|
||||||
namespace OpenRA.Traits
|
namespace OpenRA.Traits
|
||||||
{
|
{
|
||||||
@@ -101,5 +101,7 @@ namespace OpenRA.Traits
|
|||||||
|
|
||||||
vis.Remove(a);
|
vis.Remove(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void UpdateActor(Actor a) { RemoveActor(a); AddActor(a); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -268,6 +268,7 @@ World:
|
|||||||
EvaAlerts:
|
EvaAlerts:
|
||||||
SpatialBins:
|
SpatialBins:
|
||||||
BinSize: 4
|
BinSize: 4
|
||||||
|
Shroud:
|
||||||
|
|
||||||
MGG:
|
MGG:
|
||||||
GeneratesGap:
|
GeneratesGap:
|
||||||
|
|||||||
Reference in New Issue
Block a user