diff --git a/UniTAS/.gitignore b/UniTAS/.gitignore index 9043df054..d3248c53e 100644 --- a/UniTAS/.gitignore +++ b/UniTAS/.gitignore @@ -1,3 +1,7 @@ +# Created by https://www.toptal.com/developers/gitignore/api/windows,linux,csharp,jetbrains+all +# Edit at https://www.toptal.com/developers/gitignore?templates=windows,linux,csharp,jetbrains+all + +### Csharp ### ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. ## @@ -302,8 +306,531 @@ node_modules/ *.dsp # Visual Studio 6 technical files -*.ncb + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +*.sln.iml + +### JetBrains+all ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### JetBrains+all Patch ### +# Ignore everything but code style settings and run configurations +# that are supposed to be shared within teams. + +.idea/* + +!.idea/codeStyles +!.idea/runConfigurations + +### Linux ### + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files + +# Windows shortcuts +*.lnk + +# End of https://www.toptal.com/developers/gitignore/api/windows,linux,csharp,jetbrains+all +# Created by https://www.toptal.com/developers/gitignore/api/csharp,jetbrains+all +# Edit at https://www.toptal.com/developers/gitignore?templates=csharp,jetbrains+all + +### Csharp ### +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ *.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files # Visual Studio LightSwitch build output **/*.HTMLClient/GeneratedArtifacts @@ -397,4 +924,94 @@ FodyWeavers.xsd # JetBrains Rider *.sln.iml -.antlr/ \ No newline at end of file +### JetBrains+all ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### JetBrains+all Patch ### +# Ignore everything but code style settings and run configurations +# that are supposed to be shared within teams. + +.idea/* + +!.idea/codeStyles +!.idea/runConfigurations + +# End of https://www.toptal.com/developers/gitignore/api/csharp,jetbrains+all +" +" \ No newline at end of file diff --git a/UniTAS/Patcher/Implementations/GUI/TerminalCommands/Traverse.cs b/UniTAS/Patcher/Implementations/GUI/TerminalCommands/TraverseCmd.cs similarity index 73% rename from UniTAS/Patcher/Implementations/GUI/TerminalCommands/Traverse.cs rename to UniTAS/Patcher/Implementations/GUI/TerminalCommands/TraverseCmd.cs index be50f5c07..40e6612a4 100644 --- a/UniTAS/Patcher/Implementations/GUI/TerminalCommands/Traverse.cs +++ b/UniTAS/Patcher/Implementations/GUI/TerminalCommands/TraverseCmd.cs @@ -1,17 +1,18 @@ using System; +using HarmonyLib; using MoonSharp.Interpreter; using UniTAS.Patcher.Interfaces.GUI; using UniTAS.Patcher.Utils; namespace UniTAS.Patcher.Implementations.GUI.TerminalCommands; -public class Traverse : TerminalCmd +public class TraverseCmd : TerminalCmd { public override string Name => "traverse"; public override string Description => "traverse API wrapper"; public override Delegate Callback => Execute; - private HarmonyLib.Traverse Execute(Script script, object arg) + private static Traverse Execute(Script script, object arg) { if (arg is string s) { @@ -23,16 +24,16 @@ private HarmonyLib.Traverse Execute(Script script, object arg) return null; } - return new HarmonyLib.Traverse(type); + return new Traverse(type); } - return new HarmonyLib.Traverse(arg); + return new Traverse(arg); } public override void Setup() { base.Setup(); - UserData.RegisterType(); + UserData.RegisterType(); } } diff --git a/UniTAS/Patcher/Implementations/LiveScripting.cs b/UniTAS/Patcher/Implementations/LiveScripting.cs index 3b0717a13..65307e3fb 100644 --- a/UniTAS/Patcher/Implementations/LiveScripting.cs +++ b/UniTAS/Patcher/Implementations/LiveScripting.cs @@ -1,8 +1,10 @@ using System; +using HarmonyLib; using MoonSharp.Interpreter; using MoonSharp.Interpreter.Interop; using MoonSharp.Interpreter.Interop.RegistrationPolicies; using MoonSharp.Interpreter.Loaders; +using UniTAS.Patcher.Implementations.Proxies; using UniTAS.Patcher.Interfaces.DependencyInjection; using UniTAS.Patcher.Services; using UniTAS.Patcher.Services.Logging; @@ -36,6 +38,9 @@ public bool AllowTypeAutoRegistration(Type type) public LiveScripting(ILogger logger) { UserData.RegistrationPolicy = new CustomInteropRegistrationPolicy(); + // TODO: movie proxies should be registered here instead + // TODO: proxies must be gathered with some attribute + UserData.RegisterProxyType(x => new TraverseProxy(x)); _logger = logger; } diff --git a/UniTAS/Patcher/Implementations/Proxies/TraverseProxy.cs b/UniTAS/Patcher/Implementations/Proxies/TraverseProxy.cs new file mode 100644 index 000000000..dd16d1047 --- /dev/null +++ b/UniTAS/Patcher/Implementations/Proxies/TraverseProxy.cs @@ -0,0 +1,90 @@ +using System; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Reflection; +using HarmonyLib; +using MoonSharp.Interpreter; + +namespace UniTAS.Patcher.Implementations.Proxies; + +[method: MoonSharpHidden] +[SuppressMessage("ReSharper", "UnusedMember.Global")] +public class TraverseProxy(Traverse traverse) +{ + private static readonly AccessTools.FieldRef TraverseMethodField = + AccessTools.FieldRefAccess(typeof(Traverse), "_method"); + + private static readonly AccessTools.FieldRef TraverseInfoField = + AccessTools.FieldRefAccess(typeof(Traverse), "_info"); + + public object GetValue(params object[] args) => traverse.GetValue(args); + + public object GetValue() => traverse.GetValue(); + + public Traverse SetValue(DynValue value) + { + var memberInfo = TraverseInfoField(traverse); + + switch (memberInfo) + { + case FieldInfo f: + return traverse.SetValue(value.ToObject(f.FieldType)); + case PropertyInfo p: + return traverse.SetValue(value.ToObject(p.PropertyType)); + } + + var args = TraverseMethodField(traverse).GetParameters(); + var argsLength = args.Length; + var argTypes = args.Select(x => x.ParameterType); + + object valueConverted; + if (argsLength == 1) + { + valueConverted = value.ToObject(argTypes.First()); + } + else if (value.Type is not (DataType.Table or DataType.UserData)) + { + throw new Exception("Traverse has more than 1 arguments required, but didn't receive a table or UserData"); + } + else if (value.Type is DataType.Table && value.Table.Length != argsLength) + { + throw new Exception($"Mismatch in traverse method argument count, expected {argsLength} arguments"); + } + else + { + var convertedArray = new object[argsLength]; + var table = value.Table; + var values = table.Values.GetEnumerator(); + var argTypesEnumerator = argTypes.GetEnumerator(); + for (var i = 0; i < table.Length; i++) + { + // wont fail + values.MoveNext(); + argTypesEnumerator.MoveNext(); + + var item = values.Current; + var argType = argTypesEnumerator.Current; + + convertedArray[i] = item!.ToObject(argType); + } + + values.Dispose(); + argTypesEnumerator.Dispose(); + + valueConverted = convertedArray; + } + + return traverse.SetValue(valueConverted); + } + + public Traverse Field(string name) => traverse.Field(name); + + public Traverse Property(string name, object[] index = null) => traverse.Property(name, index); + + public Traverse Method(string name, params object[] arguments) => traverse.Method(name, arguments); + + public Traverse Method(string name, Type[] paramTypes, object[] arguments = null) => + traverse.Method(name, paramTypes, arguments); + + public bool PropertyExists() => traverse.PropertyExists(); +} \ No newline at end of file diff --git a/UniTAS/Patcher/Implementations/UnityEvents/UnityEvents.cs b/UniTAS/Patcher/Implementations/UnityEvents/UnityEvents.cs index 339334c9d..9cad1e823 100644 --- a/UniTAS/Patcher/Implementations/UnityEvents/UnityEvents.cs +++ b/UniTAS/Patcher/Implementations/UnityEvents/UnityEvents.cs @@ -34,7 +34,7 @@ public UnityEvents(IEnumerable onAwakesUnconditional, IEnumerable onPreUpdatesActual, IEnumerable onUpdatesUnconditional, IEnumerable onFixedUpdatesUnconditional, - IEnumerable onGUIsUnconditional, + IEnumerable onGuisUnconditional, IEnumerable onFixedUpdatesActual, IEnumerable onStartsActual, IEnumerable onUpdatesActual, @@ -95,7 +95,7 @@ public UnityEvents(IEnumerable onAwakesUnconditional, CallbackUpdate.FixedUpdateUnconditional); } - foreach (var onGui in onGUIsUnconditional) + foreach (var onGui in onGuisUnconditional) { RegisterMethod(onGui, onGui.OnGUIUnconditional, CallbackUpdate.GUIUnconditional); } @@ -457,8 +457,6 @@ public void InvokeUpdate() if (_updated) return; _updated = true; - _calledFixedUpdate = false; - #if TRACE StaticLogger.Trace($"InvokeUpdate, time: {_patchReverseInvoker.Invoke(() => Time.time)}"); #endif @@ -503,6 +501,12 @@ public void InvokeLateUpdate() } } + // isn't called at the very first yield WaitForFixedUpdate, but this is enough + public void CoroutineFixedUpdate() + { + _calledFixedUpdate = false; + } + public void InvokeFixedUpdate() { if (_calledFixedUpdate) return; @@ -557,4 +561,4 @@ private void InvokeCallOnPreUpdate() preUpdate(); } } -} +} \ No newline at end of file diff --git a/UniTAS/Patcher/MonoBehaviourScripts/MonoBehaviourUpdateInvoker.cs b/UniTAS/Patcher/MonoBehaviourScripts/MonoBehaviourUpdateInvoker.cs index cee5b6dec..fbc187992 100644 --- a/UniTAS/Patcher/MonoBehaviourScripts/MonoBehaviourUpdateInvoker.cs +++ b/UniTAS/Patcher/MonoBehaviourScripts/MonoBehaviourUpdateInvoker.cs @@ -22,7 +22,8 @@ private void Awake() _monoBehEventInvoker.InvokeAwake(); - StartCoroutine(EndOfFrame()); + StartCoroutine(EndOfFrameCoroutine()); + StartCoroutine(FixedUpdateCoroutine()); } private void OnDestroy() @@ -60,10 +61,17 @@ private void OnEnable() _monoBehEventInvoker.InvokeOnEnable(); } + private void OnApplicationFocus(bool hasFocus) + { + _logger.LogDebug($"game in focus = {hasFocus}"); + _gameInfo.IsFocused = hasFocus; + } + // stupid optimization since object alloc private readonly WaitForEndOfFrame _waitForEndOfFrame = new(); + private readonly WaitForFixedUpdate _waitForFixedUpdate = new(); - private IEnumerator EndOfFrame() + private IEnumerator EndOfFrameCoroutine() { while (true) { @@ -73,9 +81,13 @@ private IEnumerator EndOfFrame() // ReSharper disable once IteratorNeverReturns } - private void OnApplicationFocus(bool hasFocus) + private IEnumerator FixedUpdateCoroutine() { - _logger.LogDebug($"game in focus = {hasFocus}"); - _gameInfo.IsFocused = hasFocus; + while (true) + { + yield return _waitForFixedUpdate; + _monoBehEventInvoker.CoroutineFixedUpdate(); + } + // ReSharper disable once IteratorNeverReturns } } \ No newline at end of file diff --git a/UniTAS/Patcher/Services/UnityEvents/IMonoBehEventInvoker.cs b/UniTAS/Patcher/Services/UnityEvents/IMonoBehEventInvoker.cs index 1b49ac3bd..2d700d1c8 100644 --- a/UniTAS/Patcher/Services/UnityEvents/IMonoBehEventInvoker.cs +++ b/UniTAS/Patcher/Services/UnityEvents/IMonoBehEventInvoker.cs @@ -10,4 +10,5 @@ public interface IMonoBehEventInvoker void InvokeLastUpdate(); void InvokeOnGUI(); void InvokeOnEnable(); + void CoroutineFixedUpdate(); } \ No newline at end of file