About to add 400 events

This commit is contained in:
2026-03-03 18:58:50 -05:00
parent c215cab014
commit b7fe374691
10 changed files with 19 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ public static class Awperative
/// <summary> Bottom class of Awperative. Contains the OpenTK Instance. </summary>
[DebugAttributes.NotNull, MarkerAttributes.UnsafeInternal] private static Base Base;
[DebugAttributes.NotNull, MarkerAttributes.UnsafeInternal] public static Base Base;
@@ -93,10 +93,12 @@ public static class Awperative
/// <summary> Gets Awperative ready to begin! Compiles Component functions etc. Please call before doing anything Awperative related! </summary>
public static void Start(string moduleManagerPath) {
public static void Start() {
if (IsStarted) return;
IsStarted = true;
Base = new Base();
ReflectionManager.ResolveModules(AppDomain.CurrentDomain.GetAssemblies());
Debug.Start();
@@ -114,7 +116,6 @@ public static class Awperative
public static void Run() {
if(!IsStarted && IsRunning) return;
IsRunning = true;
Base = new Base();
Base.Run();
}

View File

@@ -1,6 +1,9 @@
using System.ComponentModel;
using System;
using System.Collections.Immutable;
using System.ComponentModel;
using System.Linq;
using OpenTK;
using OpenTK.Graphics.OpenGL.Compatibility;
using OpenTK.Windowing.Common;
using OpenTK.Windowing.Desktop;
@@ -49,4 +52,11 @@ public sealed class Base() : GameWindow(GameWindowSettings.Default, new NativeWi
/// </summary>
/// <remarks> Hooks are unable to receive both Update() and Draw()</remarks>
protected override void OnRenderFrame(FrameEventArgs __args) { foreach(Scene scene in Awperative._scenes) scene.ChainEvent(3); base.OnRenderFrame(__args); }
protected override void OnResize(ResizeEventArgs e) {
GL.Viewport(0, 0, e.Width, e.Height);
base.OnResize(e);
}
}

View File

@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("AwperativeKernel")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+21747aa062b0a2602d7565f0b233fde393cc54c2")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c215cab014ff2debe4e45bf05947022f1fef3a3a")]
[assembly: System.Reflection.AssemblyProductAttribute("AwperativeKernel")]
[assembly: System.Reflection.AssemblyTitleAttribute("AwperativeKernel")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@@ -1 +1 @@
724a17504a0397b13f88a93dc5710a4c7a348910bcabad50e67ffb6927f0fa03
b7d1b14e9a1ac81938a6d0c218c9dab887f6f7a09fb1ffc6cc863c2d552ebcf4

View File

@@ -1 +1 @@
17724794171898753
17725709888021566

View File

@@ -1 +1 @@
17724794196898973
17725709890112277