finished TraitDictionary. Refactored permanent actor-removal.

This commit is contained in:
Bob
2010-08-15 01:14:06 +12:00
committed by Chris Forbes
parent c0d0636e08
commit 5561ac458b
14 changed files with 102 additions and 71 deletions

View File

@@ -26,8 +26,8 @@ namespace OpenRA.Mods.RA
public ReplaceWithActor(Actor self, ReplaceWithActorInfo info)
{
self.World.AddFrameEndTask(w =>
{
w.Remove(self);
{
self.Destroy();
w.CreateActor(info.Actor, new TypeDictionary
{
new LocationInit( self.Location ),