Merge pull request #12292 from pchote/fix-cargo-capture

Prevent mod-code from manpulating actor owners directly.
This commit is contained in:
abcdefg30
2016-10-23 18:06:51 +02:00
committed by GitHub
5 changed files with 10 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ namespace OpenRA
public readonly uint ActorID;
public Player Owner { get; set; }
public Player Owner { get; internal set; }
public bool IsInWorld { get; internal set; }
public bool Disposed { get; private set; }

View File

@@ -240,6 +240,11 @@ namespace OpenRA
rc.Metadata = new ReplayMetadata(gameInfo);
}
public void SetWorldOwner(Player p)
{
WorldActor.Owner = p;
}
public Actor CreateActor(string name, TypeDictionary initDict)
{
return CreateActor(true, name, initDict);