hooked into Mobile

This commit is contained in:
Chris Forbes
2010-03-29 19:41:58 +13:00
parent 4154543005
commit 78aff19fa2
3 changed files with 9 additions and 2 deletions

View File

@@ -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);

View File

@@ -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); }
} }
} }

View File

@@ -268,6 +268,7 @@ World:
EvaAlerts: EvaAlerts:
SpatialBins: SpatialBins:
BinSize: 4 BinSize: 4
Shroud:
MGG: MGG:
GeneratesGap: GeneratesGap: