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

@@ -172,7 +172,7 @@ namespace OpenRA
SyncHashes = TraitsImplementing<ISync>().Select(sync => new SyncHash(sync)).ToArray();
}
internal void Created()
internal void Initialize(bool addToWorld = true)
{
created = true;
@@ -226,6 +226,9 @@ namespace OpenRA
activity.Queue(CurrentActivity);
CurrentActivity = activity;
}
if (addToWorld)
World.Add(this);
}
public void Tick()