コード例 #1
0
 void Start()
 {
     Definitions.LoadDefinitions();
     GameDataLoader.LoadGameData();
     ResourceManager.LoadResources();
     //EventManager.OnDefinitionsDownloaded();
 }
コード例 #2
0
        static void Main(string[] args)
        {
            var root = args.FirstOrDefault();

            if (String.IsNullOrEmpty(root))
            {
                throw new ArgumentNullException("Must specify game data location as first parameter.");
            }
            var gameDataRoot = Path.GetFullPath(root);

            if (!Directory.Exists(gameDataRoot))
            {
                throw new ArgumentNullException(String.Format("Directory does not exist: {0}", gameDataRoot));
            }

            var loader = new GameDataLoader(new GameFileLoader(gameDataRoot));

            var localiser = loader.LoadLocalisations();
            var gameData  = loader.LoadGameData();

            new Program(gameData, localiser).Run_BlueprintGeneration();
            //new Program(gameData, localiser).Run_BlueprintSpeeds();
        }