add PlayerReference.DefaultStartingUnits flag (set for autogenerated playerrefs; don't set this if you have custom stuff.

This commit is contained in:
Chris Forbes
2010-08-25 18:28:36 +12:00
parent def0580078
commit cfc937e8eb
2 changed files with 9 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ namespace OpenRA.FileFormats
public bool OwnsWorld = false;
public bool NonCombatant = false;
public bool Playable = false;
public bool DefaultStartingUnits = false;
public Color Color = Color.FromArgb(238,238,238);
public Color Color2 = Color.FromArgb(44,28,24);

View File

@@ -176,7 +176,13 @@ namespace OpenRA
{
for (int index = 0; index < Waypoints.Count; index++)
{
var p = new PlayerReference("Multi{0}".F(index), "Random", false, false) { Playable = true };
var p = new PlayerReference
{
Name = "Multi{0}".F(index),
Race = "Random",
Playable = true,
DefaultStartingUnits = true
};
Players.Add(p.Name, p);
}
}