INotifyCreated
This commit is contained in:
@@ -188,6 +188,8 @@ namespace OpenRA
|
||||
public Actor CreateActor(bool addToWorld, string name, TypeDictionary initDict)
|
||||
{
|
||||
var a = new Actor(this, name, initDict);
|
||||
foreach (var t in a.TraitsImplementing<INotifyCreated>())
|
||||
t.Created(a);
|
||||
if (addToWorld)
|
||||
Add(a);
|
||||
return a;
|
||||
|
||||
Reference in New Issue
Block a user