Convert all CreateActor calls to use TypeDictionary

This commit is contained in:
alzeih
2010-08-02 01:28:07 +12:00
parent 4ea66ea309
commit 578d42614b
20 changed files with 131 additions and 63 deletions

View File

@@ -8,7 +8,8 @@
*/
#endregion
using OpenRA.Traits;
using OpenRA.Traits;
using OpenRA.FileFormats;
namespace OpenRA.Mods.RA
{
@@ -27,7 +28,11 @@ namespace OpenRA.Mods.RA
self.World.AddFrameEndTask(w =>
{
w.Remove(self);
w.CreateActor(info.Actor, self.Location, self.Owner);
w.CreateActor(info.Actor, new TypeDictionary
{
new LocationInit( self.Location ),
new OwnerInit( self.Owner ),
});
});
}
}