This commit is contained in:
Matthias Mailänder
2014-05-03 11:32:03 +02:00
parent 0679940c77
commit 8f64835898
11 changed files with 35 additions and 35 deletions

View File

@@ -80,8 +80,8 @@ namespace OpenRA.Mods.RA.Activities
self.World.AddFrameEndTask(
w => w.CreateActor(self.Info.Traits.Get<MinelayerInfo>().Mine, new TypeDictionary
{
new LocationInit( self.Location ),
new OwnerInit( self.Owner ),
new LocationInit(self.Location),
new OwnerInit(self.Owner),
}));
}
}

View File

@@ -76,9 +76,9 @@ namespace OpenRA.Mods.RA
// Create a new actor for this bridge and keep track of which subtiles this bridge includes
var bridge = w.CreateActor(BridgeTypes[tile].First, new TypeDictionary
{
new LocationInit( new CPos(ni, nj) ),
new OwnerInit( w.WorldActor.Owner ),
new HealthInit( BridgeTypes[tile].Second ),
new LocationInit(new CPos(ni, nj)),
new OwnerInit(w.WorldActor.Owner),
new HealthInit(BridgeTypes[tile].Second),
}).Trait<Bridge>();
var subTiles = new Dictionary<CPos, byte>();

View File

@@ -59,8 +59,8 @@ namespace OpenRA.Mods.RA.Crates
collector.World.AddFrameEndTask(
w => w.CreateActor(Info.Unit, new TypeDictionary
{
new LocationInit( location.Value ),
new OwnerInit( Info.Owner ?? collector.Owner.InternalName )
new LocationInit(location.Value ),
new OwnerInit(Info.Owner ?? collector.Owner.InternalName)
}));
base.Activate(collector);

View File

@@ -21,7 +21,7 @@ namespace OpenRA.Mods.RA.Render
{
PlayerResources playerResources;
public RenderBuildingSilo( ActorInitializer init, RenderBuildingSiloInfo info )
public RenderBuildingSilo(ActorInitializer init, RenderBuildingSiloInfo info)
: base(init, info)
{
playerResources = init.self.Owner.PlayerActor.Trait<PlayerResources>();
@@ -36,7 +36,7 @@ namespace OpenRA.Mods.RA.Render
: 0);
}
public void OnCapture (Actor self, Actor captor, Player oldOwner, Player newOwner)
public void OnCapture(Actor self, Actor captor, Player oldOwner, Player newOwner)
{
playerResources = newOwner.PlayerActor.Trait<PlayerResources>();
}

View File

@@ -70,7 +70,7 @@ namespace OpenRA.Mods.RA
var cargo = a.Trait<Cargo>();
foreach (var i in items)
cargo.Load(a, self.World.CreateActor(false, i.ToLowerInvariant(),
new TypeDictionary { new OwnerInit( a.Owner ) }));
new TypeDictionary { new OwnerInit(a.Owner) }));
});
}
}