-
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.
- Loading branch information
1 parent
ce71ab2
commit 770ec9f
Showing
16 changed files
with
57 additions
and
68 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
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
2 changes: 1 addition & 1 deletion
2
Hypercube.Shared/Entities/Realisation/EventBus/EntitiesEventRefHandler.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using Hypercube.Shared.Utilities.Ref; | ||
using Hypercube.Utilities.Ref; | ||
|
||
namespace Hypercube.Shared.EventBus; | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
6 changes: 4 additions & 2 deletions
6
Hypercube.Shared/Utilities/UnitHelper.cs → Hypercube.Utilities/Helpers/UnitHelper.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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
using Hypercube.Utilities.Units; | ||
|
||
namespace Hypercube.Utilities.Ref; | ||
|
||
public delegate void RefHandler(ref Unit ev); |
14 changes: 8 additions & 6 deletions
14
...be.Shared/Utilities/RuntimeInformation.cs → Hypercube.Utilities/RuntimeInformation.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,21 +1,23 @@ | ||
using System.Runtime; | ||
using JetBrains.Annotations; | ||
using SysRuntimeInformation = System.Runtime.InteropServices.RuntimeInformation; | ||
|
||
namespace Hypercube.Shared.Utilities; | ||
namespace Hypercube.Utilities; | ||
|
||
[PublicAPI] | ||
public static class RuntimeInformation | ||
{ | ||
public static string[] GetInformationDump() | ||
{ | ||
var version = typeof(RuntimeInformation).Assembly.GetName().Version; | ||
|
||
return new[] | ||
{ | ||
return | ||
[ | ||
$"OS: {SysRuntimeInformation.OSDescription} {SysRuntimeInformation.OSArchitecture}", | ||
$".NET Runtime: {SysRuntimeInformation.FrameworkDescription} {SysRuntimeInformation.RuntimeIdentifier}", | ||
$"Server GC: {GCSettings.IsServerGC}", | ||
$"Architecture: {SysRuntimeInformation.ProcessArchitecture}", | ||
$"Hypercube Version: {version}", | ||
}; | ||
$"Version: {version}" | ||
]; | ||
} | ||
} |
7 changes: 5 additions & 2 deletions
7
Hypercube.Shared/Utilities/Units/Unit.cs → Hypercube.Utilities/Units/Unit.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,6 +1,9 @@ | ||
namespace Hypercube.Shared.Utilities.Units; | ||
using JetBrains.Annotations; | ||
|
||
namespace Hypercube.Utilities.Units; | ||
|
||
/// <summary> | ||
/// Whenever you see this struct it some other object, it should be resolved using Unsafe.As() | ||
/// Whenever you see this struct it some other object, it should be resolved using Unsafe.As(). | ||
/// </summary> | ||
[PublicAPI] | ||
public readonly struct Unit; |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Runtime.InteropServices; | ||
using JetBrains.Annotations; | ||
|
||
namespace Hypercube.Utilities.Units; | ||
|
||
/// <summary> | ||
/// Whenever you see this it is some other object, it should be resolved using Unsafe.As(). | ||
/// </summary> | ||
/// <remarks> | ||
/// Should be used whenever we want to pass value by ref. | ||
/// </remarks> | ||
[PublicAPI, StructLayout(LayoutKind.Sequential)] | ||
public sealed class UnitBox | ||
{ | ||
public Unit Value; | ||
|
||
public static implicit operator Unit(UnitBox unitBox) | ||
{ | ||
return unitBox.Value; | ||
} | ||
} |