Added UnitInfo.
- units.txt turned into infantry.txt and vehicles.txt
- slight sidebar fixes
This commit is contained in:
19
OpenRa.Game/GameRules/Rules.cs
Executable file
19
OpenRa.Game/GameRules/Rules.cs
Executable file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRa.FileFormats;
|
||||
using OpenRa.Game.GameRules;
|
||||
|
||||
namespace OpenRa.Game
|
||||
{
|
||||
static class Rules
|
||||
{
|
||||
public static UnitInfo UnitInfo;
|
||||
|
||||
// TODO: load rules from the map, where appropriate.
|
||||
public static void LoadRules()
|
||||
{
|
||||
UnitInfo = new UnitInfo( new IniFile( FileSystem.Open( "rules.ini" ) ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user