コード例 #1
0
    public static void AdvGetPagesInfo(string sURL, string sID, List <AdvPagePrefab> pages)
    {
        AdvScenarioManagerEditor instance = new AdvScenarioManagerEditor();

        instance.webServiceURL = sURL;
        instance.spreadsheetId = sID;
        instance.sheet_gid     = "dummy";
        instance.pagesInfo     = pages;
        instance.importType    = ImportType.DownloadPagesInfo;
        instance.Import_Google(false);
    }
コード例 #2
0
    public static void AdvCreateNew(string sURL, string sID, string gID, AdvPagePrefab page)
    {
        if (page == null || string.IsNullOrEmpty(page.Page_gid))
        {
            return;
        }

        AdvScenarioManagerEditor instance = new AdvScenarioManagerEditor();

        instance.webServiceURL = sURL;
        instance.spreadsheetId = sID;
        instance.sheet_gid     = gID;
        instance.pageRef       = page;
        instance.importType    = ImportType.Create;
        instance.Import_Google(false);
    }
コード例 #3
0
    public static void AdvUpdatePrefab(string sURL, string sID, string gID, AdvPagePrefab page, Fungus.AdvUpdateOption opt, bool popup, bool autoRm = false)
    {
        if (page == null || page.prefab == null)
        {
            return;
        }

        AdvScenarioManagerEditor instance = new AdvScenarioManagerEditor();

        instance.webServiceURL = sURL;
        instance.spreadsheetId = sID;
        instance.sheet_gid     = gID;
        instance.pageRef       = page;
        instance.option        = opt;
        instance.importType    = ImportType.Data;
        instance.autoRemove    = autoRm;
        instance.popupDetal    = popup;
        instance.Import_Google(false);
    }
コード例 #4
0
    public static void AdvGetDescription(string sURL, string sID, string gID, AdvPagePrefab page)
    {
        if (page == null || page.prefab == null)
        {
            return;
        }

        if (!string.IsNullOrEmpty(page.description))
        {
            return;
        }

        AdvScenarioManagerEditor instance = new AdvScenarioManagerEditor();

        instance.webServiceURL = sURL;
        instance.spreadsheetId = sID;
        instance.sheet_gid     = gID;
        instance.pageRef       = page;
        instance.importType    = ImportType.Description;
        instance.Import_Google(false);
    }