Merge pull request #7937 from pchote/some-editor-prereqs

A collection of ActorPreview improvements.
This commit is contained in:
Oliver Brakmann
2015-04-26 18:46:26 +02:00
19 changed files with 167 additions and 18 deletions

View File

@@ -15,6 +15,8 @@ using OpenRA.Primitives;
namespace OpenRA
{
public interface ISuppressInitExport { }
public class ActorReference : IEnumerable
{
public string Type;
@@ -51,6 +53,9 @@ namespace OpenRA
var ret = new MiniYaml(Type);
foreach (var init in InitDict)
{
if (init is ISuppressInitExport)
continue;
var initName = init.GetType().Name;
ret.Nodes.Add(new MiniYamlNode(initName.Substring(0, initName.Length - 4), FieldSaver.Save(init)));
}