Beispiel #1
0
        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);
        }
Beispiel #2
0
        public DataStore(Assembly assembly)
            : this()
        {
            Assembly = assembly;

            Lua = Seven.GetLua();

            LoadItems();
            LoadWeapons();
            LoadArmor();
            LoadAccessories();
            LoadMagicSpells();
            LoadSummonSpells();
            LoadEnemySkills();
            LoadFormations();

            CharacterMetrics = new Character.Metrics(assembly);
        }
Beispiel #3
0
        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);
        }