Rename "Created" to "Initialize" and let it handle adding to the world

This commit is contained in:
abcdefg30
2020-05-25 16:37:23 +02:00
committed by reaperrr
parent 7386816f52
commit 52a9fcef3c
3 changed files with 8 additions and 9 deletions

View File

@@ -337,10 +337,7 @@ namespace OpenRA
public Actor CreateActor(bool addToWorld, string name, TypeDictionary initDict)
{
var a = new Actor(this, name, initDict);
a.Created();
if (addToWorld)
Add(a);
a.Initialize(addToWorld);
return a;
}