Setup entry point + integrated moonworks stuff

This commit is contained in:
2024-07-05 14:32:58 +02:00
parent e7a4a862be
commit 8334a24fd1
116 changed files with 16988 additions and 3 deletions
+29
View File
@@ -0,0 +1,29 @@
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
namespace Nerfed.Runtime;
public struct ProfilerScope : IDisposable
{
public ProfilerScope(string label) {
Profiler.BeginSample(label);
}
public void Dispose() {
Profiler.EndSample();
}
}
public static class Profiler
{
[Conditional("PROFILER")]
public static void BeginSample(string label) {
}
[Conditional("PROFILER")]
public static void EndSample() {
}
}