/// <summary> /// Builds a WeaverCore DLL without any resources embedded into it. This also runs <see cref="BuildHollowKnightAsm(FileInfo)"/> and puts it into the same output directory, since WeaverCore depends on it /// </summary> /// <returns>The output file</returns> public static IAsyncBuildTask <BuildOutput> BuildPartialWeaverCore(FileInfo outputPath) { var task = new BuildTask <BuildOutput>(); UnboundCoroutine.Start(BuildPartialWeaverCoreRoutine(outputPath, task)); return(task); }
/// <summary> /// Builds a DLL using the scripts from WeaverCore/Hollow Knight /// </summary> /// <param name="outputPath">The path the file will be placed</param> /// <returns></returns> public static IAsyncBuildTask <BuildOutput> BuildHollowKnightAsm(FileInfo outputPath) { var task = new BuildTask <BuildOutput>(); UnboundCoroutine.Start(BuildHollowKnightAsmRoutine(outputPath, task)); return(task); }
// Token: 0x06000491 RID: 1169 RVA: 0x0000F8D8 File Offset: 0x0000DAD8 public void PlayVanishBurstEffects() { this.DisableAll(); this.VanishBurst.gameObject.SetActive(true); GameObject.Find("Dream Fall Catcher").SetActive(false); GameObject gameObject = GameObject.Find("_GameCameras").transform.Find("HudCamera").Find("Blanker White").gameObject; //WeaverLog.Log("Blanker = " + gameObject); if (gameObject == null) { throw new Exception("Error : Blanker not found"); } //WeaverLog.Log("Blanker Enabled = " + gameObject.activeInHierarchy); //WeaverLog.Log("Blanker Enabled Self = " + gameObject.activeSelf); if (PlayMakerUtilities.PlayMakerAvailable) { PlayMakerUtilities.SetFsmFloat(gameObject, "Blanker Control", "Fade Time", 0.9f); //WeaverEvents.SendEventToObject(gameObject, "FADE IN"); EventManager.SendEventToGameObject("FADE IN", gameObject); string @string = PlayerData.instance.GetString("dreamReturnScene"); //WeaverLog.Log("Returning To Scene = " + @string); UnboundCoroutine.Start(EssenceEffects.ReturnToScene(@string)); return; } throw new Exception("Playmaker not available"); }
public override void Stop(UnboundCoroutine routine) { var gameRoutine = routine as GameRoutine; if (gameRoutine != null) { RoutineObject.Instance.StopCoroutine(gameRoutine.routine); } }
public override void EndBossBattle(float delayTime) { //OnBossesDead?.Invoke(); if (OnBossesDead != null) { OnBossesDead.Invoke(); } UnboundCoroutine.Start(EndBossDelayed(delayTime)); }
void OnGUI() { if (TK2DUnpacker.CollectionDataType == null) { EditorGUILayout.LabelField("There is no tk2dSpriteAnmation Type found"); return; } else { animation = EditorGUILayout.ObjectField("Animation Data", animation, TK2DUnpacker.SpriteAnimationType, true); if (GUILayout.Button("Unpack")) { Close(); UnboundCoroutine.Start(TK2DUnpacker.DecomposeTK2DAnimation(animation)); } } }
static void Init() { //BuildWeaverCoreGameAsm(); bool ranMethod = false; if (PersistentData.ContainsData <BundleTools.BundleBuildData>()) { var bundleData = BundleTools.Data; if (bundleData?.NextMethod.Method != null) { ranMethod = true; var method = bundleData.NextMethod.Method; bundleData.NextMethod = default; PersistentData.StoreData(bundleData); PersistentData.SaveData(); UnboundCoroutine.Start(Delay()); IEnumerator Delay() { yield return(new WaitForSeconds(0.5f)); method.Invoke(null, null); } } } if (!ranMethod) { UnboundCoroutine.Start(BuildPartialWeaverCoreRoutine(WeaverCoreBuildLocation, null)); } UnboundCoroutine.Start(RunEnvironmentCheck()); }
/// <summary> /// Builds the WeaverCore.Game Assembly /// </summary> /// <param name="outputPath">The output path of the build. If set to null, it will be placed in the default build location</param> public static void BuildWeaverCoreGameAsm(FileInfo outputPath) { UnboundCoroutine.Start(BuildWeaverCoreGameRoutine(outputPath, null)); }
public static void BuildMod(FileInfo outputPath) { UnboundCoroutine.Start(BuildModRoutine(outputPath, null)); }
static void BeginBundleProcess() { UnboundCoroutine.Start(BundleRoutine()); IEnumerator BundleRoutine() { yield return(new WaitForSeconds(1f)); try { //Debug.Log("E_Editor File Locked = " + IsFileLocked(new FileInfo("Library\\ScriptAssemblies\\WeaverCore.Editor.dll"))); Debug.Log("Beginning Bundle Process"); #if !MULTI_THREADED_EMBEDDING var builtAssetBundles = new List <BuiltAssetBundle>(); #else List <Task> embeddingTasks = new List <Task>(); #endif var assemblies = new List <FileInfo> { new FileInfo(Data.WeaverCoreDLL) }; if (!Data.WeaverCoreOnly) { assemblies.Add(new FileInfo(Data.ModDLL)); } //BuildSettings settings = new BuildSettings(); //settings.GetStoredSettings(); var temp = Path.GetTempPath(); var bundleBuilds = new DirectoryInfo(temp + "BundleBuilds\\"); if (bundleBuilds.Exists) { bundleBuilds.Delete(true); } bundleBuilds.Create(); foreach (var target in BuildScreen.BuildSettings.GetBuildModes()) { if (!PlatformUtilities.IsPlatformSupportLoaded(target)) { continue; } var targetFolder = bundleBuilds.CreateSubdirectory(target.ToString()); targetFolder.Create(); BuildAssetBundles(target, BuildTargetGroup.Standalone, targetFolder); #if !MULTI_THREADED_EMBEDDING foreach (var bundleFile in targetFolder.GetFiles()) { if (bundleFile.Extension == "" && !bundleFile.Name.Contains("BundleBuilds")) { builtAssetBundles.Add(new BuiltAssetBundle { File = bundleFile, Target = target }); } } #else List <BuiltAssetBundle> builtBundles = new List <BuiltAssetBundle>(); foreach (var bundleFile in targetFolder.GetFiles()) { if (bundleFile.Extension == "" && !bundleFile.Name.Contains("BundleBuilds")) { builtBundles.Add(new BuiltAssetBundle { File = bundleFile, Target = target }); } } embeddingTasks.Add(Task.Run(() => { if (Data.WeaverCoreOnly) { EmbedAssetBundles(assemblies, builtBundles.Where(a => a.File.Name.ToLower().Contains("weavercore_bundle"))); } else { EmbedAssetBundles(assemblies, builtBundles); } })); #endif } #if !MULTI_THREADED_EMBEDDING if (Data.WeaverCoreOnly) { EmbedAssetBundles(assemblies, builtAssetBundles.Where(a => a.File.Name.ToLower().Contains("weavercore_bundle"))); } else { EmbedAssetBundles(assemblies, builtAssetBundles); } #else Task.WaitAll(embeddingTasks.ToArray()); #endif EmbedWeaverCoreResources(); Data.BundlingSuccessful = true; } catch (Exception e) { Debug.LogError("Error creating Asset Bundles"); Debug.LogException(e); } finally { if (!Data.BundlingSuccessful) { Debug.LogError("Error creating Asset Bundles"); } //Debug.Log("POST_4_Editor File Locked = " + IsFileLocked(new FileInfo("Library\\ScriptAssemblies\\WeaverCore.Editor.dll"))); //UnboundCoroutine.Start(Delay()); //IEnumerator Delay() //{ //Debug.Log("POST_5_Editor File Locked = " + IsFileLocked(new FileInfo("Library\\ScriptAssemblies\\WeaverCore.Editor.dll"))); //yield return new WaitForSeconds(0.5f); //Debug.Log("F_Editor File Locked = " + IsFileLocked(new FileInfo("Library\\ScriptAssemblies\\WeaverCore.Editor.dll"))); DoneWithAssetBundling(typeof(BundleTools).GetMethod(nameof(CompleteBundlingProcess), BindingFlags.Static | BindingFlags.NonPublic)); //} } } //Debug.Log("Beginning Bundle Process!!!"); }
public static void UnpackToSprite(UnityEngine.Object spriteCollectionData, string fileLocation = null) { UnboundCoroutine.Start(UnpackToSpriteAsyncInternal(spriteCollectionData, fileLocation: fileLocation)); }
public override void Stop(UnboundCoroutine routine) { coroutines.Remove((EditorCoroutine)routine); }
void Awake() { Instance = this; UnboundCoroutine.Start(KeyChecker()); gameObject.SetActive(false); }
public abstract void Stop(UnboundCoroutine routine);
static void Init() { UnboundCoroutine.Start(ScanForMixers()); }
public static void UnravelTexture() { //WeaverRoutine.Start(StartUnravelling()); UnboundCoroutine.Start(StartUnravelling()); }