StyleCop
This commit is contained in:
@@ -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),
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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) }));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user