public async void OnStart(IXCore core) { if (core.Services.TryGet <IXILRTInternal>(out var ilrt)) { await ilrt.InvokeEntryMethod(); } }
public void OnInit(IXCore core) { if (ScriptableSingleton <FileServerDataCache> .instance.Server_Switch) { if (!FileServerEditorManager.IsServerRunning) { FileServerEditorManager.StartServer(); } } }
public XRuntime() { mCore = XCore.GetMainInstance(); mAssemblyFilePath = Path.Combine(XCore.LocalStorage_TinaX, "xruntime", XRuntimeConst.AssemblyFileName); mSymbolFilePath = Path.Combine(XCore.LocalStorage_TinaX, "runtime", XRuntimeConst.SymbolFileName); mAppDomain = new ILAppDomain(); #if DEBUG && (UNITY_EDITOR || UNITY_ANDROID || UNITY_IPHONE) mAppDomain.UnityMainThreadID = System.Threading.Thread.CurrentThread.ManagedThreadId; #endif }
public void OnStart(IXCore core) { if (core.Services.TryGet <ITSInternal>(out var ts)) { try { ts.RequireEntryFile(); } catch (Exception e) { UnityEngine.Debug.LogException(e); } } }
public XILRT(IAssetService assets) { m_Assets = assets; m_AppDomain = new ILAppDomain(); m_Core = XCore.GetMainInstance(); m_XServices = m_Core.Services; #if DEBUG && (UNITY_EDITOR || UNITY_ANDROID || UNITY_IPHONE) m_AppDomain.UnityMainThreadID = System.Threading.Thread.CurrentThread.ManagedThreadId; #endif LoadSymbol = XCore.GetMainInstance().DevelopMode; #if UNITY_EDITOR LoadSymbol = true; #endif }
public static bool IsCmnHans(this IXCore core) { if (core.Services.TryGet <ILocalizationService>(out var locatization)) { var langs = locatization.GetCurrentLanguages(); if (langs == null) { return(false); } return(langs.Any(l => l == UnityEngine.SystemLanguage.Chinese || l == UnityEngine.SystemLanguage.ChineseSimplified)); } else { return(Application.systemLanguage == SystemLanguage.Chinese || Application.systemLanguage == SystemLanguage.ChineseSimplified); } }
public static IXCore UseGameStage(this IXCore core) { return(core.RegisterServiceProvider(new GameStageProvider())); }
public void OnServiceRegister(IXCore core) { core.Services.BindBuiltInService <IAppDomain, IXILRuntime, XILRT>() .SetAlias <IXILRTInternal>(); }
public Task <XException> OnStart(IXCore core) { return(core.Services.Get <IXILRTInternal>().StartAsync()); }
public void OnInit(IXCore core) { var xil = core.Services.Get <IXILRuntime>(); this.RegisterILRuntimes(xil); }
public void OnServiceRegister(IXCore core) { core.Services.Singleton <IGameStage, GameStageCore>() .SetAlias <IGameStageInternal>(); }
public void OnStart(IXCore core) { //move to hotfix project. }
public void OnServiceRegister(IXCore core) { core.Services.Singleton <ITypeScript, TypeScriptManager>() .SetAlias <Internal.ITSInternal>(); }
public static IXCore UseUIKit(this IXCore core) { core.RegisterServiceProvider(new UIKitProvider()); return(core); }
public static IXCore UseLuaRuntime(this IXCore core) { core.RegisterServiceProvider(new LuaProvider()); return(core); }
public void OnServiceRegister(IXCore core) { core.Services.Singleton <ILua, LuaManager>() .SetAlias <Internal.ILuaInternal>(); }
public Task <XException> OnStart(IXCore core) => core.GetService <Internal.ILuaInternal>().Start();
public static IXCore UseI18N(this IXCore core) { core.RegisterServiceProvider(new I18NProvider()); return(core); }
public Task <XException> OnStart(IXCore core) => core.Services.Get <IVFSInternal>().Start();
public void OnServiceRegister(IXCore core) { core.Services.BindBuiltInService <IAssetService, IVFS, VFSKit>() .SetAlias <IVFSInternal>(); }
public void OnServiceRegister(IXCore core) { core.Services.BindBuiltInService <ILocalizationService, II18N, I18NManager>() .SetAlias <II18NInternal>(); }
//private LuaFunction m_EntryFunc; //private CustomLoadHandlerManager m_CustomLoadHandlerManager = new CustomLoadHandlerManager(); public TypeScriptManager(IAssetService buildInAssets) { m_Assets = buildInAssets; m_Core = XCore.GetMainInstance(); //m_JsVM = new JsEnv(new XTSLoader(buildInAssets, c_InternalLuaSign, )); }
public void OnInit(IXCore core) { }
public void OnServiceRegister(IXCore core) { core.Services.Singleton <IUIKit, UIManager>() .SetAlias <IUIKitInternal>(); }
public Task <bool> OnInit() { mCore = XCore.GetMainInstance(); return(Task.FromResult(true)); }
public Task <XException> OnStart(IXCore core) { return(core.Services.Get <IUIKitInternal>().Start()); }
public static IXCore UseVFS(this IXCore core) { core.RegisterServiceProvider(new VFSProvider()); return(core); }
public Task <XException> OnInit(IXCore core) => Task.FromResult <XException>(null);
public void OnStart(IXCore core) { }
public Task <XException> OnInit(IXCore core) { return(Task.FromResult <XException>(null)); }