diff --git a/Awperative/Kernel/Communication/Debug/Writer.cs b/Awperative/Kernel/Communication/Debug/Writer.cs index 14896f6..c539760 100644 --- a/Awperative/Kernel/Communication/Debug/Writer.cs +++ b/Awperative/Kernel/Communication/Debug/Writer.cs @@ -7,14 +7,37 @@ namespace Awperative; public static partial class Debug { + /// + /// Writes the current message to the log file. + /// + /// Message to debug + public static void LogAction(string __message) => LogGeneric(__message, "ACT", [], []); + + /// + /// Writes the current message to the log file. With any given call sign. + /// + /// Message to debug + /// Names of values to debug + /// Values to debug + public static void LogAction(string __message, string[] __parameters, string[] __values) => LogGeneric(__message, "ACT", __parameters, __values); + + /// + /// Writes the current message to the log file if the condition is true. + /// + /// Condition to debug + /// Message to debug + public static void AssertAction(bool __condition, string __message) => AssertGeneric(__condition, __message, "ACT", [], []); + + + + + /// /// Writes the current message to the log file. /// /// Message to debug public static void LogState(string __message) => LogGeneric(__message, "STA", [], []); - - /// /// Writes the current message to the log file. With any given call sign. /// @@ -22,6 +45,13 @@ public static partial class Debug /// Names of values to debug /// Values to debug public static void LogState(string __message, string[] __parameters, string[] __values) => LogGeneric(__message, "STA", __parameters, __values); + + /// + /// Writes the current message to the log file if the condition is true. + /// + /// Condition to debug + /// Message to debug + public static void AssertState(bool __condition, string __message) => AssertGeneric(__condition, __message, "STA", [], []); @@ -33,8 +63,6 @@ public static partial class Debug /// Message to debug public static void LogValue(string __message) => LogGeneric(__message, "VAL", [], []); - - /// /// Writes the current message to the log file. With any given call sign. /// @@ -42,6 +70,13 @@ public static partial class Debug /// Names of values to debug /// Values to debug public static void LogValue(string __message, string[] __parameters, string[] __values) => LogGeneric(__message, "VAL", __parameters, __values); + + /// + /// Writes the current message to the log file if the condition is true. + /// + /// Condition to debug + /// Message to debug + public static void AssertValue(bool __condition, string __message) => AssertGeneric(__condition, __message, "VAL", [], []); @@ -53,8 +88,6 @@ public static partial class Debug /// Message to debug public static void LogWarning(string __message) => LogGeneric(__message, "WAR", [], []); - - /// /// Writes the current message to the log file. With any given call sign. /// @@ -63,6 +96,13 @@ public static partial class Debug /// Values to debug public static void LogWarning(string __message, string[] __parameters, string[] __values) => LogGeneric(__message, "WAR", __parameters, __values); + /// + /// Writes the current message to the log file if the condition is true. + /// + /// Condition to debug + /// Message to debug + public static void AssertWarning(bool __condition, string __message) => AssertGeneric(__condition, __message, "WAR", [], []); + @@ -73,8 +113,6 @@ public static partial class Debug /// Message to debug public static void LogError(string __message) => LogGeneric(__message, "ERR", [], []); - - /// /// Writes the current message to the log file. With any given call sign. /// @@ -83,15 +121,12 @@ public static partial class Debug /// Values to debug public static void LogError(string __message, string[] __parameters, string[] __values) => LogGeneric(__message, "ERR", __parameters, __values); - - /// - /// Writes the current message to the log file. + /// Writes the current message to the log file if the condition is true. /// - /// Message to debug /// Condition to debug + /// Message to debug public static void AssertError(bool __condition, string __message) => AssertGeneric(__condition, __message, "ERR", [], []); -//todo: add more asserts and overrides @@ -114,6 +149,17 @@ public static partial class Debug } + + + + /// + /// Writes the current message to the log file if the condition is true. With any given call sign. + /// + /// Condition to debug + /// Message to debug + /// Message identifier + /// Names of values to debug + /// Values to debug public static void AssertGeneric(bool __condition, string __message, string __callSign, string[] __parameters, string[] __values) { if (!__condition) return; @@ -124,5 +170,4 @@ public static partial class Debug File.AppendAllText(LogFilePath, output); } - } \ No newline at end of file diff --git a/Awperative/Kernel/Scripting/Components/Component.cs b/Awperative/Kernel/Scripting/Components/Component.cs index 92bbb55..7e461f7 100644 --- a/Awperative/Kernel/Scripting/Components/Component.cs +++ b/Awperative/Kernel/Scripting/Components/Component.cs @@ -15,7 +15,7 @@ public abstract class Component //todo: add optional parameter for priority at creation public int Priority { get => _priority; - set { _priority = value; body.RecompileComponentOrder(); } + set { _priority = value; } } private int _priority = 0; @@ -42,11 +42,11 @@ public abstract class Component - public Generic AddComponent() where Generic : Component => body.AddComponent(); - public Generic AddComponent(object[] __args) where Generic : Component => body.AddComponent(__args); + public Component AddComponent() where Generic : Component => body.AddComponent(); + public Component AddComponent(object[] __args) where Generic : Component => body.AddComponent(__args); - public Generic GetComponent() where Generic : Component => body.GetComponent(); - public Generic[] GetComponents() where Generic : Component => body.GetComponents(); + public Component GetComponent() where Generic : Component => body.GetComponent(); + public Component[] GetComponents() where Generic : Component => body.GetComponents(); public void RemoveComponent() where Generic : Component => body.RemoveComponent(); @@ -70,7 +70,7 @@ public abstract class Component internal void Initiate(Body __body) { body = __body; - scene = __body.scene; + scene = __body.Scene; Create(); } diff --git a/Awperative/bin/Debug/net8.0/Awperative.dll b/Awperative/bin/Debug/net8.0/Awperative.dll index 71b7541..5bd431f 100644 Binary files a/Awperative/bin/Debug/net8.0/Awperative.dll and b/Awperative/bin/Debug/net8.0/Awperative.dll differ diff --git a/Awperative/bin/Debug/net8.0/Awperative.pdb b/Awperative/bin/Debug/net8.0/Awperative.pdb index e225dcb..357fce2 100644 Binary files a/Awperative/bin/Debug/net8.0/Awperative.pdb and b/Awperative/bin/Debug/net8.0/Awperative.pdb differ diff --git a/Awperative/obj/Awperative.csproj.nuget.dgspec.json b/Awperative/obj/Awperative.csproj.nuget.dgspec.json index e8b6061..58ccd1e 100644 --- a/Awperative/obj/Awperative.csproj.nuget.dgspec.json +++ b/Awperative/obj/Awperative.csproj.nuget.dgspec.json @@ -1,20 +1,20 @@ { "format": 1, "restore": { - "/Users/averynorris/RiderProjects/Awperative/Awperative/Awperative.csproj": {} + "/home/avery/Programming/Awperative/Awperative/Awperative.csproj": {} }, "projects": { - "/Users/averynorris/RiderProjects/Awperative/Awperative/Awperative.csproj": { + "/home/avery/Programming/Awperative/Awperative/Awperative.csproj": { "version": "1.0.0", "restore": { - "projectUniqueName": "/Users/averynorris/RiderProjects/Awperative/Awperative/Awperative.csproj", + "projectUniqueName": "/home/avery/Programming/Awperative/Awperative/Awperative.csproj", "projectName": "Awperative", - "projectPath": "/Users/averynorris/RiderProjects/Awperative/Awperative/Awperative.csproj", - "packagesPath": "/Users/averynorris/.nuget/packages/", - "outputPath": "/Users/averynorris/RiderProjects/Awperative/Awperative/obj/", + "projectPath": "/home/avery/Programming/Awperative/Awperative/Awperative.csproj", + "packagesPath": "/home/avery/.nuget/packages/", + "outputPath": "/home/avery/Programming/Awperative/Awperative/obj/", "projectStyle": "PackageReference", "configFilePaths": [ - "/Users/averynorris/.nuget/NuGet/NuGet.Config" + "/home/avery/.nuget/NuGet/NuGet.Config" ], "originalTargetFrameworks": [ "net8.0" @@ -32,13 +32,7 @@ "warnAsError": [ "NU1605" ] - }, - "restoreAuditProperties": { - "enableAudit": "true", - "auditLevel": "low", - "auditMode": "direct" - }, - "SdkAnalysisLevel": "9.0.300" + } }, "frameworks": { "net8.0": { @@ -61,22 +55,12 @@ ], "assetTargetFallback": true, "warn": true, - "downloadDependencies": [ - { - "name": "Microsoft.AspNetCore.App.Ref", - "version": "[8.0.20, 8.0.20]" - }, - { - "name": "Microsoft.NETCore.App.Ref", - "version": "[8.0.20, 8.0.20]" - } - ], "frameworkReferences": { "Microsoft.NETCore.App": { "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/9.0.305/PortableRuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "/usr/lib/dotnet/sdk/8.0.123/PortableRuntimeIdentifierGraph.json" } } } diff --git a/Awperative/obj/Awperative.csproj.nuget.g.props b/Awperative/obj/Awperative.csproj.nuget.g.props index 3e128ba..08dec0c 100644 --- a/Awperative/obj/Awperative.csproj.nuget.g.props +++ b/Awperative/obj/Awperative.csproj.nuget.g.props @@ -4,12 +4,12 @@ True NuGet $(MSBuildThisFileDirectory)project.assets.json - /Users/averynorris/.nuget/packages/ - /Users/averynorris/.nuget/packages/ + /home/avery/.nuget/packages/ + /home/avery/.nuget/packages/ PackageReference 6.14.0 - + \ No newline at end of file diff --git a/Awperative/obj/Debug/net8.0/Awperative.AssemblyInfo.cs b/Awperative/obj/Debug/net8.0/Awperative.AssemblyInfo.cs index 08c868c..994cd9b 100644 --- a/Awperative/obj/Debug/net8.0/Awperative.AssemblyInfo.cs +++ b/Awperative/obj/Debug/net8.0/Awperative.AssemblyInfo.cs @@ -13,7 +13,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("Awperative")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+e987c8092f471ce03238b8612f7201ea93407653")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+a78b5aef96c286d7f54b11963ffa6c3090398b85")] [assembly: System.Reflection.AssemblyProductAttribute("Awperative")] [assembly: System.Reflection.AssemblyTitleAttribute("Awperative")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/Awperative/obj/Debug/net8.0/Awperative.AssemblyInfoInputs.cache b/Awperative/obj/Debug/net8.0/Awperative.AssemblyInfoInputs.cache index 0125cdf..cfff6bc 100644 --- a/Awperative/obj/Debug/net8.0/Awperative.AssemblyInfoInputs.cache +++ b/Awperative/obj/Debug/net8.0/Awperative.AssemblyInfoInputs.cache @@ -1 +1 @@ -048fb6054ed9b529ea18f588fbae06b4c18cb6b3b2b0f2dfb5e7cef86db14863 +5ebc44aa1d8b334bde6fb25c7d47f03612c55ffac27d8f46c1f104b7334054b4 diff --git a/Awperative/obj/Debug/net8.0/Awperative.GeneratedMSBuildEditorConfig.editorconfig b/Awperative/obj/Debug/net8.0/Awperative.GeneratedMSBuildEditorConfig.editorconfig index 2e98d1b..d9e84d9 100644 --- a/Awperative/obj/Debug/net8.0/Awperative.GeneratedMSBuildEditorConfig.editorconfig +++ b/Awperative/obj/Debug/net8.0/Awperative.GeneratedMSBuildEditorConfig.editorconfig @@ -8,8 +8,6 @@ build_property.PlatformNeutralAssembly = build_property.EnforceExtendedAnalyzerRules = build_property._SupportedPlatformList = Linux,macOS,Windows build_property.RootNamespace = Awperative -build_property.ProjectDir = /Users/averynorris/RiderProjects/Awperative/Awperative/ +build_property.ProjectDir = /home/avery/Programming/Awperative/Awperative/ build_property.EnableComHosting = build_property.EnableGeneratedComInterfaceComImportInterop = -build_property.EffectiveAnalysisLevelStyle = 8.0 -build_property.EnableCodeStyleSeverity = diff --git a/Awperative/obj/Debug/net8.0/Awperative.assets.cache b/Awperative/obj/Debug/net8.0/Awperative.assets.cache index 2c2f0c8..73acc41 100644 Binary files a/Awperative/obj/Debug/net8.0/Awperative.assets.cache and b/Awperative/obj/Debug/net8.0/Awperative.assets.cache differ diff --git a/Awperative/obj/Debug/net8.0/Awperative.csproj.AssemblyReference.cache b/Awperative/obj/Debug/net8.0/Awperative.csproj.AssemblyReference.cache index 5aa557f..26465f8 100644 Binary files a/Awperative/obj/Debug/net8.0/Awperative.csproj.AssemblyReference.cache and b/Awperative/obj/Debug/net8.0/Awperative.csproj.AssemblyReference.cache differ diff --git a/Awperative/obj/Debug/net8.0/Awperative.csproj.CoreCompileInputs.cache b/Awperative/obj/Debug/net8.0/Awperative.csproj.CoreCompileInputs.cache index 9ca9d73..1bd1268 100644 --- a/Awperative/obj/Debug/net8.0/Awperative.csproj.CoreCompileInputs.cache +++ b/Awperative/obj/Debug/net8.0/Awperative.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -f552bda458f25e93b640f2f86a474c139ae16e84a42a47639427c638e2566334 +0400c56c4a1b68e1972a170888bce3d3aee36f4c67a26871cb8491bbb0e074af diff --git a/Awperative/obj/Debug/net8.0/Awperative.dll b/Awperative/obj/Debug/net8.0/Awperative.dll index 71b7541..5bd431f 100644 Binary files a/Awperative/obj/Debug/net8.0/Awperative.dll and b/Awperative/obj/Debug/net8.0/Awperative.dll differ diff --git a/Awperative/obj/Debug/net8.0/Awperative.pdb b/Awperative/obj/Debug/net8.0/Awperative.pdb index e225dcb..357fce2 100644 Binary files a/Awperative/obj/Debug/net8.0/Awperative.pdb and b/Awperative/obj/Debug/net8.0/Awperative.pdb differ diff --git a/Awperative/obj/Debug/net8.0/ref/Awperative.dll b/Awperative/obj/Debug/net8.0/ref/Awperative.dll index 1d43b1c..b9b2b16 100644 Binary files a/Awperative/obj/Debug/net8.0/ref/Awperative.dll and b/Awperative/obj/Debug/net8.0/ref/Awperative.dll differ diff --git a/Awperative/obj/Debug/net8.0/refint/Awperative.dll b/Awperative/obj/Debug/net8.0/refint/Awperative.dll index 1d43b1c..b9b2b16 100644 Binary files a/Awperative/obj/Debug/net8.0/refint/Awperative.dll and b/Awperative/obj/Debug/net8.0/refint/Awperative.dll differ diff --git a/Awperative/obj/project.assets.json b/Awperative/obj/project.assets.json index 13ed217..721c7fe 100644 --- a/Awperative/obj/project.assets.json +++ b/Awperative/obj/project.assets.json @@ -273,19 +273,19 @@ ] }, "packageFolders": { - "/Users/averynorris/.nuget/packages/": {} + "/home/avery/.nuget/packages/": {} }, "project": { "version": "1.0.0", "restore": { - "projectUniqueName": "/Users/averynorris/RiderProjects/Awperative/Awperative/Awperative.csproj", + "projectUniqueName": "/home/avery/Programming/Awperative/Awperative/Awperative.csproj", "projectName": "Awperative", - "projectPath": "/Users/averynorris/RiderProjects/Awperative/Awperative/Awperative.csproj", - "packagesPath": "/Users/averynorris/.nuget/packages/", - "outputPath": "/Users/averynorris/RiderProjects/Awperative/Awperative/obj/", + "projectPath": "/home/avery/Programming/Awperative/Awperative/Awperative.csproj", + "packagesPath": "/home/avery/.nuget/packages/", + "outputPath": "/home/avery/Programming/Awperative/Awperative/obj/", "projectStyle": "PackageReference", "configFilePaths": [ - "/Users/averynorris/.nuget/NuGet/NuGet.Config" + "/home/avery/.nuget/NuGet/NuGet.Config" ], "originalTargetFrameworks": [ "net8.0" @@ -303,13 +303,7 @@ "warnAsError": [ "NU1605" ] - }, - "restoreAuditProperties": { - "enableAudit": "true", - "auditLevel": "low", - "auditMode": "direct" - }, - "SdkAnalysisLevel": "9.0.300" + } }, "frameworks": { "net8.0": { @@ -332,22 +326,12 @@ ], "assetTargetFallback": true, "warn": true, - "downloadDependencies": [ - { - "name": "Microsoft.AspNetCore.App.Ref", - "version": "[8.0.20, 8.0.20]" - }, - { - "name": "Microsoft.NETCore.App.Ref", - "version": "[8.0.20, 8.0.20]" - } - ], "frameworkReferences": { "Microsoft.NETCore.App": { "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/9.0.305/PortableRuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "/usr/lib/dotnet/sdk/8.0.123/PortableRuntimeIdentifierGraph.json" } } } diff --git a/Awperative/obj/project.nuget.cache b/Awperative/obj/project.nuget.cache index 9aa2dce..a01abdc 100644 --- a/Awperative/obj/project.nuget.cache +++ b/Awperative/obj/project.nuget.cache @@ -1,17 +1,15 @@ { "version": 2, - "dgSpecHash": "rY6Za5NlkX4=", + "dgSpecHash": "oHHZKOBBLTE=", "success": true, - "projectFilePath": "/Users/averynorris/RiderProjects/Awperative/Awperative/Awperative.csproj", + "projectFilePath": "/home/avery/Programming/Awperative/Awperative/Awperative.csproj", "expectedPackageFiles": [ - "/Users/averynorris/.nuget/packages/monogame.framework.desktopgl/3.8.4.1/monogame.framework.desktopgl.3.8.4.1.nupkg.sha512", - "/Users/averynorris/.nuget/packages/monogame.library.openal/1.24.3.2/monogame.library.openal.1.24.3.2.nupkg.sha512", - "/Users/averynorris/.nuget/packages/monogame.library.sdl/2.32.2.1/monogame.library.sdl.2.32.2.1.nupkg.sha512", - "/Users/averynorris/.nuget/packages/nvorbis/0.10.4/nvorbis.0.10.4.nupkg.sha512", - "/Users/averynorris/.nuget/packages/system.memory/4.5.3/system.memory.4.5.3.nupkg.sha512", - "/Users/averynorris/.nuget/packages/system.valuetuple/4.5.0/system.valuetuple.4.5.0.nupkg.sha512", - "/Users/averynorris/.nuget/packages/microsoft.netcore.app.ref/8.0.20/microsoft.netcore.app.ref.8.0.20.nupkg.sha512", - "/Users/averynorris/.nuget/packages/microsoft.aspnetcore.app.ref/8.0.20/microsoft.aspnetcore.app.ref.8.0.20.nupkg.sha512" + "/home/avery/.nuget/packages/monogame.framework.desktopgl/3.8.4.1/monogame.framework.desktopgl.3.8.4.1.nupkg.sha512", + "/home/avery/.nuget/packages/monogame.library.openal/1.24.3.2/monogame.library.openal.1.24.3.2.nupkg.sha512", + "/home/avery/.nuget/packages/monogame.library.sdl/2.32.2.1/monogame.library.sdl.2.32.2.1.nupkg.sha512", + "/home/avery/.nuget/packages/nvorbis/0.10.4/nvorbis.0.10.4.nupkg.sha512", + "/home/avery/.nuget/packages/system.memory/4.5.3/system.memory.4.5.3.nupkg.sha512", + "/home/avery/.nuget/packages/system.valuetuple/4.5.0/system.valuetuple.4.5.0.nupkg.sha512" ], "logs": [] } \ No newline at end of file diff --git a/Awperative/obj/project.packagespec.json b/Awperative/obj/project.packagespec.json index 7b00ac3..f45ed5a 100644 --- a/Awperative/obj/project.packagespec.json +++ b/Awperative/obj/project.packagespec.json @@ -1 +1 @@ -"restore":{"projectUniqueName":"/Users/averynorris/RiderProjects/Awperative/Awperative/Awperative.csproj","projectName":"Awperative","projectPath":"/Users/averynorris/RiderProjects/Awperative/Awperative/Awperative.csproj","outputPath":"/Users/averynorris/RiderProjects/Awperative/Awperative/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net8.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net8.0":{"targetAlias":"net8.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]},"restoreAuditProperties":{"enableAudit":"true","auditLevel":"low","auditMode":"direct"},"SdkAnalysisLevel":"9.0.300"}"frameworks":{"net8.0":{"targetAlias":"net8.0","dependencies":{"MonoGame.Framework.DesktopGL":{"suppressParent":"All","target":"Package","version":"[3.8.*, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"downloadDependencies":[{"name":"Microsoft.AspNetCore.App.Ref","version":"[8.0.20, 8.0.20]"},{"name":"Microsoft.NETCore.App.Ref","version":"[8.0.20, 8.0.20]"}],"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/local/share/dotnet/sdk/9.0.305/PortableRuntimeIdentifierGraph.json"}} \ No newline at end of file +"restore":{"projectUniqueName":"/home/avery/Programming/Awperative/Awperative/Awperative.csproj","projectName":"Awperative","projectPath":"/home/avery/Programming/Awperative/Awperative/Awperative.csproj","outputPath":"/home/avery/Programming/Awperative/Awperative/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net8.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net8.0":{"targetAlias":"net8.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net8.0":{"targetAlias":"net8.0","dependencies":{"MonoGame.Framework.DesktopGL":{"suppressParent":"All","target":"Package","version":"[3.8.*, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/lib/dotnet/sdk/8.0.123/PortableRuntimeIdentifierGraph.json"}} \ No newline at end of file diff --git a/Awperative/obj/rider.project.restore.info b/Awperative/obj/rider.project.restore.info index 351b447..0e34b82 100644 --- a/Awperative/obj/rider.project.restore.info +++ b/Awperative/obj/rider.project.restore.info @@ -1 +1 @@ -17705737329502274 \ No newline at end of file +17705828120140388 \ No newline at end of file