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); }
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); }
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); }
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); }