public static void Main(string[] args) { if (args.Length < 1) { throw new ArgumentException("No first argument. First argument must be path to config xml."); } if (!File.Exists(args[0])) { throw new ArgumentException("Cannot find config xml at following path: " + args[0]); } Seven seven = new Seven(args[0]); Game.RunGame(seven); }
public DataStore(Assembly assembly) : this() { Assembly = assembly; Lua = Seven.GetLua(); LoadItems(); LoadWeapons(); LoadArmor(); LoadAccessories(); LoadMagicSpells(); LoadSummonSpells(); LoadEnemySkills(); LoadFormations(); CharacterMetrics = new Character.Metrics(assembly); }