コード例 #1
0
ファイル: VersionManager.cs プロジェクト: zcaalock/valkyrie
    /// <summary>
    /// Download the latest version number on Github.</summary>
    /// <param name="action">Callback when version number has been downloaded (not called in case of error).</param>
    public static void GetLatestVersionAsync(Action action)
    {
        // check here for official release
        string url = "https://raw.githubusercontent.com/NPBruce/valkyrie/master/unity/Assets/Resources/version.txt";

        version_downloaded_action = action;

        HTTPManager.Get(url, GetLatestVersion_callback);
    }
コード例 #2
0
ファイル: QuestDownload.cs プロジェクト: samdoj/valkyrie
    /// <summary>
    /// Download required files then draw screen
    /// </summary>
    void Start()
    {
        new LoadingScreen(new StringKey("val", "DOWNLOAD_LIST").Translate());
        game         = Game.Get();
        remoteQuests = new List <RemoteQuest>();
        string remoteManifest = GetServerLocation() + "manifest.ini";

        HTTPManager.Get(remoteManifest, DownloadManifest_callback);
    }
コード例 #3
0
    public QuestsManager()
    {
        remote_quests_data = new Dictionary <string, QuestData.Quest>();

        Game game = Game.Get();

        // -- Download remote quests list INI file --
        if (game.gameType.TypeName() == "MoM")
        {
            HTTPManager.Get("https://drive.google.com/uc?id=13JEtzRQ1LcCAAhKluxii0tgKDW71XODV&export=download", QuestsDownload_callback);
            quest_list_mode = QuestListMode.DOWNLOADING;
        }
        else if (game.gameType.TypeName() == "D2E")
        {
            HTTPManager.Get("https://drive.google.com/uc?id=1oa6NhKLUFn61RH1niPJzpFT4fG9iQFas&export=download", QuestsDownload_callback);
            quest_list_mode = QuestListMode.DOWNLOADING;
        }
        else
        {
            ValkyrieTools.ValkyrieDebug.Log("ERROR: DownloadQuests is called when no game type has been selected");
            return;
        }
    }
コード例 #4
0
ファイル: StatsManager.cs プロジェクト: zcaalock/valkyrie
 // Download JSON
 public void DownloadStats()
 {
     download_ongoing = true;
     HTTPManager.Get("https://drive.google.com/uc?id=1lEhwFWrryzNH6DUMbte37G1p22SyDhu9&export=download", StatsDownload_callback);
 }