Files
OpenRA/OpenRa.Game/GameRules/Rules.cs
2009-10-11 15:21:19 +13:00

22 lines
509 B
C#
Executable File

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;
public static Footprint Footprint;
// TODO: load rules from the map, where appropriate.
public static void LoadRules()
{
UnitInfo = new UnitInfo( new IniFile( FileSystem.Open( "rules.ini" ) ) );
Footprint = new Footprint(FileSystem.Open("footprint.txt"));
}
}
}