-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed error IEventArgs implementation
- Loading branch information
1 parent
294d38d
commit 50ea7ae
Showing
10 changed files
with
31 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
using Hypercube.Client.Graphics.Windows; | ||
using Hypercube.Shared.EventBus.Events; | ||
|
||
namespace Hypercube.Client.Graphics.Event; | ||
|
||
public readonly struct MainWindowClosedEvent(WindowRegistration registration) | ||
public readonly struct MainWindowClosedEvent(WindowRegistration registration) : IEventArgs | ||
{ | ||
public readonly WindowRegistration Registration = registration; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
Hypercube.Shared/Runtimes/Event/RuntimeInitializationEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
namespace Hypercube.Shared.Runtimes.Event; | ||
using Hypercube.Shared.EventBus.Events; | ||
|
||
public readonly record struct RuntimeInitializationEvent; | ||
namespace Hypercube.Shared.Runtimes.Event; | ||
|
||
public readonly record struct RuntimeInitializationEvent : IEventArgs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
namespace Hypercube.Shared.Runtimes.Event; | ||
using Hypercube.Shared.EventBus.Events; | ||
|
||
public readonly record struct RuntimeShutdownEvent(string Reason); | ||
namespace Hypercube.Shared.Runtimes.Event; | ||
|
||
public readonly record struct RuntimeShutdownEvent(string Reason) : IEventArgs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
namespace Hypercube.Shared.Runtimes.Event; | ||
using Hypercube.Shared.EventBus.Events; | ||
|
||
public readonly record struct RuntimeStartupEvent; | ||
namespace Hypercube.Shared.Runtimes.Event; | ||
|
||
public readonly record struct RuntimeStartupEvent : IEventArgs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
namespace Hypercube.Shared.Runtimes.Loop.Event; | ||
using Hypercube.Shared.EventBus.Events; | ||
|
||
public readonly struct RenderFrameEvent(float deltaSeconds) | ||
namespace Hypercube.Shared.Runtimes.Loop.Event; | ||
|
||
public readonly struct RenderFrameEvent(float deltaSeconds) : IEventArgs | ||
{ | ||
public readonly float DeltaSeconds = deltaSeconds; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
namespace Hypercube.Shared.Runtimes.Loop.Event; | ||
using Hypercube.Shared.EventBus.Events; | ||
|
||
public readonly struct UpdateFrameEvent(float deltaSeconds) | ||
namespace Hypercube.Shared.Runtimes.Loop.Event; | ||
|
||
public readonly struct UpdateFrameEvent(float deltaSeconds) : IEventArgs | ||
{ | ||
public readonly float DeltaSeconds = deltaSeconds; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters