more ported bits
This commit is contained in:
@@ -10,9 +10,13 @@ namespace OpenRa.Game.GameRules
|
||||
{
|
||||
public readonly string Parent;
|
||||
public readonly TypeDictionary Traits = new TypeDictionary();
|
||||
public readonly string Name;
|
||||
|
||||
public NewUnitInfo( MiniYaml node )
|
||||
public NewUnitInfo( string name, MiniYaml node )
|
||||
{
|
||||
Name = name;
|
||||
|
||||
// todo: make inheritance actually work
|
||||
MiniYaml inherit;
|
||||
if( node.Nodes.TryGetValue( "Inherits", out inherit ) )
|
||||
{
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace OpenRa.Game
|
||||
|
||||
NewUnitInfo = new Dictionary<string, NewUnitInfo>();
|
||||
foreach( var kv in MiniYaml.FromFile( "ra.yaml" ) )
|
||||
NewUnitInfo.Add( kv.Key.ToLowerInvariant(), new NewUnitInfo( kv.Value ) );
|
||||
NewUnitInfo.Add(kv.Key.ToLowerInvariant(), new NewUnitInfo(kv.Key.ToLowerInvariant(), kv.Value));
|
||||
}
|
||||
|
||||
static void LoadCategories(params string[] types)
|
||||
|
||||
Reference in New Issue
Block a user