Make ActorPreview and EditorActorPreview wrap ActorReference.
This commit is contained in:
@@ -334,6 +334,11 @@ namespace OpenRA
|
||||
return CreateActor(true, name, initDict);
|
||||
}
|
||||
|
||||
public Actor CreateActor(bool addToWorld, ActorReference reference)
|
||||
{
|
||||
return CreateActor(addToWorld, reference.Type, reference.InitDict);
|
||||
}
|
||||
|
||||
public Actor CreateActor(bool addToWorld, string name, TypeDictionary initDict)
|
||||
{
|
||||
var a = new Actor(this, name, initDict);
|
||||
|
||||
Reference in New Issue
Block a user