static Bootstrap() { CollabVersionControl collabVersionControl = new CollabVersionControl(); Collab.SetVersionControl(collabVersionControl); JSProxyMgr.GetInstance().AddGlobalObject("unity/collab/proxy", new JsProxyClient(collabVersionControl)); }
public UnityConnectServiceData(string serviceName, string htmlSourcePath, CloudServiceAccess jsGlobalObject, string jsGlobalObjectName) { if (string.IsNullOrEmpty(serviceName)) { throw new ArgumentNullException("serviceName"); } if (string.IsNullOrEmpty(htmlSourcePath)) { throw new ArgumentNullException("htmlSourcePath"); } m_ServiceName = serviceName; m_HtmlSourcePath = htmlSourcePath; m_JavascriptGlobalObject = jsGlobalObject; m_JsGlobalObjectName = jsGlobalObjectName; if (m_JavascriptGlobalObject != null) { //If no name is specified use the service name if (string.IsNullOrEmpty(m_JsGlobalObjectName)) { m_JsGlobalObjectName = m_ServiceName; } JSProxyMgr.GetInstance().AddGlobalObject(m_JsGlobalObjectName, m_JavascriptGlobalObject); } }
private void Init() { JSProxyMgr.GetInstance().AddGlobalObject("UnityConnectEditor", this); if (Application.HasARGV("createProject")) { this.ShowService("Hub", true, "init_create_project"); } }
public static AssetStoreContext GetInstance() { if (AssetStoreContext.s_Instance == null) { AssetStoreContext.s_Instance = new AssetStoreContext(); JSProxyMgr.GetInstance().AddGlobalObject("AssetStoreContext", (object)AssetStoreContext.s_Instance); } return(AssetStoreContext.s_Instance); }
private void Init() { //Add this to the v8 global table so javascript can call ShowService("") JSProxyMgr.GetInstance().AddGlobalObject("UnityConnectEditor", this); // We want to show the service window when we create a project, but not every time we open one. if (Application.HasARGV("createProject")) { ShowService(HubAccess.kServiceName, true, "init_create_project"); } }
static Collab() { s_Instance = new Collab(); s_Instance.projectBrowserSingleSelectionPath = string.Empty; s_Instance.projectBrowserSingleMetaSelectionPath = string.Empty; JSProxyMgr.GetInstance().AddGlobalObject("unity/collab", s_Instance); ObjectListArea.postAssetIconDrawCallback += CollabProjectHook.OnProjectWindowIconOverlay; AssetsTreeViewGUI.postAssetIconDrawCallback += CollabProjectHook.OnProjectBrowserNavPanelIconOverlay; InitializeSoftlocksViewController(); CollabSettingsManager.statusNotifier[CollabSettingType.InProgressEnabled] += OnSettingStatusChanged; CollabSettingsManager.statusNotifier[CollabSettingType.InProgressEnabled] += SoftlockViewController.Instance.softLockFilters.OnSettingStatusChanged; }
static Collab() { Collab.s_IsFirstStateChange = true; Collab.clientType = new string[] { "Cloud Server", "Mock Server" }; Collab.editorPrefCollabClientType = "CollabConfig_Client"; Collab.s_Instance = new Collab(); Collab.s_Instance.projectBrowserSingleSelectionPath = string.Empty; Collab.s_Instance.projectBrowserSingleMetaSelectionPath = string.Empty; JSProxyMgr.GetInstance().AddGlobalObject("unity/collab", Collab.s_Instance); }
public UnityConnectServiceData(string serviceName, string htmlSourcePath, CloudServiceAccess jsGlobalObject, string jsGlobalObjectName) { if (string.IsNullOrEmpty(serviceName)) { throw new ArgumentNullException("serviceName"); } if (string.IsNullOrEmpty(htmlSourcePath)) { throw new ArgumentNullException("htmlSourcePath"); } this.m_ServiceName = serviceName; this.m_HtmlSourcePath = htmlSourcePath; this.m_JavascriptGlobalObject = jsGlobalObject; this.m_JsGlobalObjectName = jsGlobalObjectName; if (this.m_JavascriptGlobalObject != null) { if (string.IsNullOrEmpty(this.m_JsGlobalObjectName)) { this.m_JsGlobalObjectName = this.m_ServiceName; } JSProxyMgr.GetInstance().AddGlobalObject(this.m_JsGlobalObjectName, this.m_JavascriptGlobalObject); } }
static Collab() { Collab.s_IsFirstStateChange = true; Collab.clientType = new string[] { "Cloud Server", "Mock Server" }; Collab.editorPrefCollabClientType = "CollabConfig_Client"; Collab.s_Instance = new Collab(); Collab.s_Instance.projectBrowserSingleSelectionPath = string.Empty; Collab.s_Instance.projectBrowserSingleMetaSelectionPath = string.Empty; JSProxyMgr.GetInstance().AddGlobalObject("unity/collab", Collab.s_Instance); if (Collab.< > f__mg$cache0 == null) { Collab.< > f__mg$cache0 = new ObjectListArea.OnAssetIconDrawDelegate(CollabProjectHook.OnProjectWindowIconOverlay); } ObjectListArea.postAssetIconDrawCallback += Collab.< > f__mg$cache0; if (Collab.< > f__mg$cache1 == null) { Collab.< > f__mg$cache1 = new AssetsTreeViewGUI.OnAssetIconDrawDelegate(CollabProjectHook.OnProjectBrowserNavPanelIconOverlay); } AssetsTreeViewGUI.postAssetIconDrawCallback += Collab.< > f__mg$cache1; if (!Collab.InitializeSoftlocksViewController()) { Dictionary <CollabSettingType, CollabSettingsManager.SettingStatusChanged> statusNotifier; Dictionary <CollabSettingType, CollabSettingsManager.SettingStatusChanged> expr_BC = statusNotifier = CollabSettingsManager.statusNotifier; CollabSettingType arg_ED_1 = CollabSettingType.InProgressEnabled; Delegate arg_E3_0 = statusNotifier[CollabSettingType.InProgressEnabled]; if (Collab.< > f__mg$cache2 == null) { Collab.< > f__mg$cache2 = new CollabSettingsManager.SettingStatusChanged(Collab.OnSettingStatusChanged); } expr_BC[arg_ED_1] = (CollabSettingsManager.SettingStatusChanged)Delegate.Combine(arg_E3_0, Collab.< > f__mg$cache2); } }
static UnityConnect() { JSProxyMgr.GetInstance().AddGlobalObject("unity/connect", (object)UnityConnect.s_Instance); }
static UnityConnect() { s_Instance = new UnityConnect(); JSProxyMgr.GetInstance().AddGlobalObject("unity/connect", s_Instance); }
private void Init() { JSProxyMgr.GetInstance().AddGlobalObject("UnityConnectEditor", this); }
private void Init() { //Add this to the v8 global table so javascript can call ShowService("") JSProxyMgr.GetInstance().AddGlobalObject("UnityConnectEditor", this); }
static CloudBuild() { JSProxyMgr.GetInstance().AddGlobalObject("unity/cloudbuild", new UnityEditor.CloudBuild.CloudBuild()); }