From a6f52070eef5d74e9e183268151b3b6a0e4706c5 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Sun, 2 May 2021 01:08:25 +0200 Subject: [PATCH] Rename to TechbloxModdingAPI --- GamecraftModdingAPI.sln | 2 +- .../App/AppCallbacksTest.cs | 4 +- .../App/AppEngine.cs | 7 ++-- .../App/AppExceptions.cs | 2 +- .../App/Client.cs | 11 +++--- .../App/ClientAlertTest.cs | 4 +- .../App/CurrentGameMode.cs | 2 +- .../App/Game.cs | 16 ++++---- .../App/GameBuildSimEventEngine.cs | 7 ++-- .../App/GameGameEngine.cs | 9 ++--- .../App/GameMenuEngine.cs | 7 ++-- .../App/StateSyncRegPatch.cs | 2 +- .../App/UserPrompts.cs | 2 +- .../Block.cs | 9 ++--- .../BlockGroup.cs | 7 ++-- .../Blocks/BlockCloneEngine.cs | 4 +- .../Blocks/BlockColor.cs | 2 +- .../Blocks/BlockEngine.cs | 5 +-- .../Blocks/BlockEngineInit.cs | 2 +- .../Blocks/BlockEventsEngine.cs | 7 ++-- .../Blocks/BlockExceptions.cs | 4 +- .../Blocks/BlockIDs.cs | 2 +- .../Blocks/BlockIdentifiers.cs | 2 +- .../Blocks/BlockMaterial.cs | 2 +- .../Blocks/BlockTests.cs | 20 +++++----- .../Blocks/BlueprintEngine.cs | 6 +-- .../Blocks/CustomBlock.cs | 5 +-- .../Blocks/CustomBlockAttribute.cs | 2 +- .../Blocks/CustomBlockEngine.cs | 8 ++-- .../Blocks/DampedSpring.cs | 2 +- .../Blocks/LogicGate.cs | 2 +- .../Blocks/Motor.cs | 4 +- .../Blocks/MovementEngine.cs | 7 ++-- .../Blocks/MusicBlock.cs | 8 ++-- .../Blocks/ObjectIdentifier.cs | 2 +- .../Blocks/Piston.cs | 4 +- .../Blocks/PlacementEngine.cs | 9 ++--- .../Blocks/RemovalEngine.cs | 7 ++-- .../Blocks/RotationEngine.cs | 7 ++-- .../Blocks/ScalingEngine.cs | 7 ++-- .../Blocks/Servo.cs | 4 +- .../Blocks/SfxBlock.cs | 2 +- .../Blocks/SignalEngine.cs | 5 +-- .../Blocks/SignalingBlock.cs | 6 +-- .../Blocks/SpawnPoint.cs | 6 +-- .../Blocks/TextBlock.cs | 6 +-- .../Blocks/Timer.cs | 6 +-- .../Blocks/Wire.cs | 4 +- .../Blueprint.cs | 2 +- .../Cluster.cs | 2 +- .../Commands/CommandBuilder.cs | 5 +-- .../Commands/CommandEngineFactory.cs | 2 +- .../Commands/CommandExceptions.cs | 2 +- .../Commands/CommandManager.cs | 5 +-- .../Commands/CommandPatch.cs | 2 +- .../Commands/CommandRegistrationHelper.cs | 2 +- .../Commands/ExistingCommands.cs | 2 +- .../Commands/ICustomCommandEngine.cs | 6 +-- .../Commands/SimpleCustomCommandEngine.cs | 9 ++--- .../Commands/SimpleCustomCommandEngine1.cs | 9 ++--- .../Commands/SimpleCustomCommandEngine2.cs | 9 ++--- .../Commands/SimpleCustomCommandEngine3.cs | 9 ++--- .../Engines/IApiEngine.cs | 4 +- .../Engines/IFactoryEngine.cs | 4 +- .../Engines/IReactionaryEngine.cs | 4 +- ...terministicStepComposeEngineGroupsPatch.cs | 4 +- .../Events/EmitterBuilder.cs | 2 +- .../Events/EventEngineFactory.cs | 2 +- .../Events/EventExceptions.cs | 2 +- .../Events/EventManager.cs | 7 ++-- .../Events/EventType.cs | 2 +- .../Events/GameActivatedComposePatch.cs | 5 +-- .../Events/GameReloadedPatch.cs | 4 +- .../Events/GameStateBuildEmitterEngine.cs | 5 +-- .../GameStateSimulationEmitterEngine.cs | 5 +-- .../Events/GameSwitchedToPatch.cs | 4 +- .../Events/HandlerBuilder.cs | 2 +- .../Events/IEventEmitterEngine.cs | 5 +-- .../Events/IEventHandlerEngine.cs | 5 +-- .../Events/MenuActivatedPatch.cs | 5 +-- .../Events/MenuSwitchedToPatch.cs | 5 +-- .../Events/ModEventEntityDescriptor.cs | 2 +- .../Events/ModEventEntityStruct.cs | 2 +- .../Events/SimpleEventEmitterEngine.cs | 4 +- .../Events/SimpleEventHandlerEngine.cs | 5 +-- .../FlyCam.cs | 7 ++-- .../GamecraftModdingAPIException.cs | 2 +- .../Input/FakeInput.cs | 5 +-- .../Input/FakeInputEngine.cs | 6 +-- .../Interface/IMGUI/Button.cs | 2 +- .../Interface/IMGUI/Constants.cs | 4 +- .../Interface/IMGUI/Group.cs | 6 +-- .../Interface/IMGUI/IMGUIManager.cs | 6 +-- .../Interface/IMGUI/Image.cs | 6 +-- .../Interface/IMGUI/Label.cs | 6 +-- .../Interface/IMGUI/Text.cs | 2 +- .../Interface/IMGUI/UIElement.cs | 2 +- .../Inventory/Hotbar.cs | 7 ++-- .../Inventory/HotbarEngine.cs | 8 ++-- .../HotbarSlotSelectionHandlerEnginePatch.cs | 4 +- .../Main.cs | 28 ++++++------- .../DeserializeFromDiskEntitiesEnginePatch.cs | 4 +- .../Persistence/IEntitySerializer.cs | 4 +- .../SaveAndLoadCompositionRootPatch.cs | 2 +- .../Persistence/SaveGameEnginePatch.cs | 7 ++-- .../Persistence/SerializerManager.cs | 5 +-- .../Persistence/SimpleEntitySerializer.cs | 2 +- .../Player.cs | 13 +++---- .../Players/FlyCamEngine.cs | 4 +- .../Players/PlayerBuildingMode.cs | 2 +- .../Players/PlayerEngine.cs | 5 +-- .../Players/PlayerExceptions.cs | 2 +- .../Players/PlayerTests.cs | 6 +-- .../Players/PlayerType.cs | 2 +- .../SimBody.cs | 2 +- .../Tasks/ISchedulable.cs | 2 +- .../Tasks/Once.cs | 2 +- .../Tasks/Repeatable.cs | 2 +- .../Tasks/Scheduler.cs | 2 +- .../TechbloxModdingAPI.csproj | 1 + .../Tests/APITestAttributes.cs | 2 +- .../Tests/Assert.cs | 2 +- .../Tests/GamecraftModdingAPIPluginTest.cs | 39 +++++++++---------- .../Tests/TestRoot.cs | 13 +++---- .../Tests/TestTest.cs | 2 +- .../Utility/ApiExclusiveGroups.cs | 8 ++-- .../Utility/AsyncUtils.cs | 2 +- .../Utility/AsyncUtilsEngine.cs | 5 +-- .../Utility/Audio.cs | 2 +- .../Utility/AudioTools.cs | 2 +- .../Utility/DebugInterfaceEngine.cs | 8 ++-- .../Utility/Dependency.cs | 2 +- .../Utility/ExceptionUtil.cs | 4 +- .../Utility/FullGameFields.cs | 2 +- .../Utility/GameClient.cs | 4 +- .../Utility/GameEngineManager.cs | 5 +-- .../Utility/GameState.cs | 2 +- .../Utility/GameStateEngine.cs | 5 +-- .../Utility/Logging.cs | 2 +- .../Utility/MenuEngineManager.cs | 5 +-- .../Utility/OptionalRef.cs | 4 +- .../Utility/VersionTracking.cs | 7 ++-- 142 files changed, 334 insertions(+), 378 deletions(-) rename {GamecraftModdingAPI => TechbloxModdingAPI}/App/AppCallbacksTest.cs (93%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/App/AppEngine.cs (92%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/App/AppExceptions.cs (95%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/App/Client.cs (94%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/App/ClientAlertTest.cs (95%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/App/CurrentGameMode.cs (91%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/App/Game.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/App/GameBuildSimEventEngine.cs (91%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/App/GameGameEngine.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/App/GameMenuEngine.cs (97%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/App/StateSyncRegPatch.cs (93%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/App/UserPrompts.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Block.cs (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/BlockGroup.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/BlockCloneEngine.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/BlockColor.cs (97%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/BlockEngine.cs (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/BlockEngineInit.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/BlockEventsEngine.cs (92%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/BlockExceptions.cs (93%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/BlockIDs.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/BlockIdentifiers.cs (97%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/BlockMaterial.cs (82%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/BlockTests.cs (97%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/BlueprintEngine.cs (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/CustomBlock.cs (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/CustomBlockAttribute.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/CustomBlockEngine.cs (94%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/DampedSpring.cs (97%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/LogicGate.cs (88%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/Motor.cs (95%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/MovementEngine.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/MusicBlock.cs (97%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/ObjectIdentifier.cs (97%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/Piston.cs (94%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/PlacementEngine.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/RemovalEngine.cs (94%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/RotationEngine.cs (97%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/ScalingEngine.cs (93%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/Servo.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/SfxBlock.cs (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/SignalEngine.cs (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/SignalingBlock.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/SpawnPoint.cs (95%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/TextBlock.cs (93%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/Timer.cs (95%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blocks/Wire.cs (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Blueprint.cs (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Cluster.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Commands/CommandBuilder.cs (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Commands/CommandEngineFactory.cs (88%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Commands/CommandExceptions.cs (97%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Commands/CommandManager.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Commands/CommandPatch.cs (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Commands/CommandRegistrationHelper.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Commands/ExistingCommands.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Commands/ICustomCommandEngine.cs (85%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Commands/SimpleCustomCommandEngine.cs (87%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Commands/SimpleCustomCommandEngine1.cs (86%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Commands/SimpleCustomCommandEngine2.cs (86%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Commands/SimpleCustomCommandEngine3.cs (86%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Engines/IApiEngine.cs (83%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Engines/IFactoryEngine.cs (88%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Engines/IReactionaryEngine.cs (86%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/DeterministicStepComposeEngineGroupsPatch.cs (95%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/EmitterBuilder.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/EventEngineFactory.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/EventExceptions.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/EventManager.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/EventType.cs (92%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/GameActivatedComposePatch.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/GameReloadedPatch.cs (87%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/GameStateBuildEmitterEngine.cs (95%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/GameStateSimulationEmitterEngine.cs (95%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/GameSwitchedToPatch.cs (90%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/HandlerBuilder.cs (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/IEventEmitterEngine.cs (86%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/IEventHandlerEngine.cs (84%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/MenuActivatedPatch.cs (95%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/MenuSwitchedToPatch.cs (90%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/ModEventEntityDescriptor.cs (90%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/ModEventEntityStruct.cs (92%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/SimpleEventEmitterEngine.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Events/SimpleEventHandlerEngine.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/FlyCam.cs (97%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/GamecraftModdingAPIException.cs (94%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Input/FakeInput.cs (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Input/FakeInputEngine.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Interface/IMGUI/Button.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Interface/IMGUI/Constants.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Interface/IMGUI/Group.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Interface/IMGUI/IMGUIManager.cs (97%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Interface/IMGUI/Image.cs (89%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Interface/IMGUI/Label.cs (88%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Interface/IMGUI/Text.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Interface/IMGUI/UIElement.cs (94%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Inventory/Hotbar.cs (92%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Inventory/HotbarEngine.cs (88%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Inventory/HotbarSlotSelectionHandlerEnginePatch.cs (90%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Main.cs (87%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Persistence/DeserializeFromDiskEntitiesEnginePatch.cs (97%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Persistence/IEntitySerializer.cs (94%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Persistence/SaveAndLoadCompositionRootPatch.cs (90%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Persistence/SaveGameEnginePatch.cs (94%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Persistence/SerializerManager.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Persistence/SimpleEntitySerializer.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Player.cs (97%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Players/FlyCamEngine.cs (90%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Players/PlayerBuildingMode.cs (75%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Players/PlayerEngine.cs (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Players/PlayerExceptions.cs (92%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Players/PlayerTests.cs (94%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Players/PlayerType.cs (70%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/SimBody.cs (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Tasks/ISchedulable.cs (92%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Tasks/Once.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Tasks/Repeatable.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Tasks/Scheduler.cs (98%) rename GamecraftModdingAPI/GamecraftModdingAPI.csproj => TechbloxModdingAPI/TechbloxModdingAPI.csproj (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Tests/APITestAttributes.cs (97%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Tests/Assert.cs (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Tests/GamecraftModdingAPIPluginTest.cs (94%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Tests/TestRoot.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Tests/TestTest.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/ApiExclusiveGroups.cs (74%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/AsyncUtils.cs (95%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/AsyncUtilsEngine.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/Audio.cs (97%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/AudioTools.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/DebugInterfaceEngine.cs (94%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/Dependency.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/ExceptionUtil.cs (92%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/FullGameFields.cs (98%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/GameClient.cs (93%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/GameEngineManager.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/GameState.cs (97%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/GameStateEngine.cs (92%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/Logging.cs (99%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/MenuEngineManager.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/OptionalRef.cs (96%) rename {GamecraftModdingAPI => TechbloxModdingAPI}/Utility/VersionTracking.cs (96%) diff --git a/GamecraftModdingAPI.sln b/GamecraftModdingAPI.sln index 6482776..2191746 100644 --- a/GamecraftModdingAPI.sln +++ b/GamecraftModdingAPI.sln @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.29411.108 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GamecraftModdingAPI", "GamecraftModdingAPI\GamecraftModdingAPI.csproj", "{7FD5A7D8-4F3E-426A-B07D-7DC70442A4DF}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TechbloxModdingAPI", "TechbloxModdingAPI\TechbloxModdingAPI.csproj", "{7FD5A7D8-4F3E-426A-B07D-7DC70442A4DF}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/GamecraftModdingAPI/App/AppCallbacksTest.cs b/TechbloxModdingAPI/App/AppCallbacksTest.cs similarity index 93% rename from GamecraftModdingAPI/App/AppCallbacksTest.cs rename to TechbloxModdingAPI/App/AppCallbacksTest.cs index 041ac50..c1e184b 100644 --- a/GamecraftModdingAPI/App/AppCallbacksTest.cs +++ b/TechbloxModdingAPI/App/AppCallbacksTest.cs @@ -1,8 +1,8 @@ using System; -using GamecraftModdingAPI.Tests; +using TechbloxModdingAPI.Tests; -namespace GamecraftModdingAPI.App +namespace TechbloxModdingAPI.App { #if TEST /// diff --git a/GamecraftModdingAPI/App/AppEngine.cs b/TechbloxModdingAPI/App/AppEngine.cs similarity index 92% rename from GamecraftModdingAPI/App/AppEngine.cs rename to TechbloxModdingAPI/App/AppEngine.cs index 9cc454d..d14f932 100644 --- a/GamecraftModdingAPI/App/AppEngine.cs +++ b/TechbloxModdingAPI/App/AppEngine.cs @@ -3,11 +3,10 @@ using RobocraftX.GUI.MyGamesScreen; using RobocraftX.GUI; using Svelto.ECS; +using TechbloxModdingAPI.Engines; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Engines; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.App +namespace TechbloxModdingAPI.App { public class AppEngine : IFactoryEngine { diff --git a/GamecraftModdingAPI/App/AppExceptions.cs b/TechbloxModdingAPI/App/AppExceptions.cs similarity index 95% rename from GamecraftModdingAPI/App/AppExceptions.cs rename to TechbloxModdingAPI/App/AppExceptions.cs index 2e67695..b3393cb 100644 --- a/GamecraftModdingAPI/App/AppExceptions.cs +++ b/TechbloxModdingAPI/App/AppExceptions.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace GamecraftModdingAPI.App +namespace TechbloxModdingAPI.App { public class AppException : GamecraftModdingAPIException { diff --git a/GamecraftModdingAPI/App/Client.cs b/TechbloxModdingAPI/App/Client.cs similarity index 94% rename from GamecraftModdingAPI/App/Client.cs rename to TechbloxModdingAPI/App/Client.cs index ca5dcfa..4887448 100644 --- a/GamecraftModdingAPI/App/Client.cs +++ b/TechbloxModdingAPI/App/Client.cs @@ -4,11 +4,10 @@ using HarmonyLib; using RobocraftX.Services; using UnityEngine; - -using GamecraftModdingAPI.Utility; using RobocraftX.Common; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.App +namespace TechbloxModdingAPI.App { /// /// The Gamecraft application that is running this code right now. @@ -111,13 +110,13 @@ namespace GamecraftModdingAPI.App // this would have been so much simpler if this didn't involve a bunch of internal fields & classes Type errorHandler = AccessTools.TypeByName("RobocraftX.Services.ErrorHandler"); Type errorHandle = AccessTools.TypeByName("RobocraftX.Services.ErrorHandle"); - ErrorHandlerInstanceGetter = (Func) AccessTools.Method("GamecraftModdingAPI.App.Client:GenInstanceGetter") + ErrorHandlerInstanceGetter = (Func) AccessTools.Method("TechbloxModdingAPI.App.Client:GenInstanceGetter") .MakeGenericMethod(errorHandler) .Invoke(null, new object[0]); - EnqueueError = (Action) AccessTools.Method("GamecraftModdingAPI.App.Client:GenEnqueueError") + EnqueueError = (Action) AccessTools.Method("TechbloxModdingAPI.App.Client:GenEnqueueError") .MakeGenericMethod(errorHandler, errorHandle) .Invoke(null, new object[0]); - /*HandleErrorClosed = (Action) AccessTools.Method("GamecraftModdingAPI.App.Client:GenHandlePopupClosed") + /*HandleErrorClosed = (Action) AccessTools.Method("TechbloxModdingAPI.App.Client:GenHandlePopupClosed") .MakeGenericMethod(errorHandler) .Invoke(null, new object[0]);*/ // register engines diff --git a/GamecraftModdingAPI/App/ClientAlertTest.cs b/TechbloxModdingAPI/App/ClientAlertTest.cs similarity index 95% rename from GamecraftModdingAPI/App/ClientAlertTest.cs rename to TechbloxModdingAPI/App/ClientAlertTest.cs index 23ced76..20d8201 100644 --- a/GamecraftModdingAPI/App/ClientAlertTest.cs +++ b/TechbloxModdingAPI/App/ClientAlertTest.cs @@ -3,9 +3,9 @@ using HarmonyLib; using RobocraftX.Services; -using GamecraftModdingAPI.Tests; +using TechbloxModdingAPI.Tests; -namespace GamecraftModdingAPI.App +namespace TechbloxModdingAPI.App { #if TEST /// diff --git a/GamecraftModdingAPI/App/CurrentGameMode.cs b/TechbloxModdingAPI/App/CurrentGameMode.cs similarity index 91% rename from GamecraftModdingAPI/App/CurrentGameMode.cs rename to TechbloxModdingAPI/App/CurrentGameMode.cs index 84a6d78..85b3e09 100644 --- a/GamecraftModdingAPI/App/CurrentGameMode.cs +++ b/TechbloxModdingAPI/App/CurrentGameMode.cs @@ -1,4 +1,4 @@ -namespace GamecraftModdingAPI.App +namespace TechbloxModdingAPI.App { public enum CurrentGameMode { diff --git a/GamecraftModdingAPI/App/Game.cs b/TechbloxModdingAPI/App/Game.cs similarity index 96% rename from GamecraftModdingAPI/App/Game.cs rename to TechbloxModdingAPI/App/Game.cs index 3d73478..a3099eb 100644 --- a/GamecraftModdingAPI/App/Game.cs +++ b/TechbloxModdingAPI/App/Game.cs @@ -7,12 +7,12 @@ using RobocraftX.GUI.MyGamesScreen; using RobocraftX.StateSync; using Svelto.ECS; -using GamecraftModdingAPI; -using GamecraftModdingAPI.Blocks; -using GamecraftModdingAPI.Tasks; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI; +using TechbloxModdingAPI.Blocks; +using TechbloxModdingAPI.Tasks; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.App +namespace TechbloxModdingAPI.App { /// /// An in-game save. @@ -33,7 +33,7 @@ namespace GamecraftModdingAPI.App private bool hasId = false; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Menu identifier. public Game(uint id) : this(new EGID(id, MyGamesScreenExclusiveGroups.MyGames)) @@ -41,7 +41,7 @@ namespace GamecraftModdingAPI.App } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Menu identifier. public Game(EGID id) @@ -54,7 +54,7 @@ namespace GamecraftModdingAPI.App } /// - /// Initializes a new instance of the class without id. + /// Initializes a new instance of the class without id. /// This is assumed to be the current game. /// public Game() diff --git a/GamecraftModdingAPI/App/GameBuildSimEventEngine.cs b/TechbloxModdingAPI/App/GameBuildSimEventEngine.cs similarity index 91% rename from GamecraftModdingAPI/App/GameBuildSimEventEngine.cs rename to TechbloxModdingAPI/App/GameBuildSimEventEngine.cs index 4c9a536..f4b5766 100644 --- a/GamecraftModdingAPI/App/GameBuildSimEventEngine.cs +++ b/TechbloxModdingAPI/App/GameBuildSimEventEngine.cs @@ -4,11 +4,10 @@ using RobocraftX.Common; using RobocraftX.StateSync; using Svelto.ECS; using Unity.Jobs; +using TechbloxModdingAPI.Engines; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Engines; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.App +namespace TechbloxModdingAPI.App { public class GameBuildSimEventEngine : IApiEngine, IUnorderedInitializeOnTimeRunningModeEntered, IUnorderedInitializeOnTimeStoppedModeEntered { diff --git a/GamecraftModdingAPI/App/GameGameEngine.cs b/TechbloxModdingAPI/App/GameGameEngine.cs similarity index 96% rename from GamecraftModdingAPI/App/GameGameEngine.cs rename to TechbloxModdingAPI/App/GameGameEngine.cs index da270cc..d5a2f60 100644 --- a/GamecraftModdingAPI/App/GameGameEngine.cs +++ b/TechbloxModdingAPI/App/GameGameEngine.cs @@ -9,13 +9,12 @@ using RobocraftX.SimulationModeState; using Svelto.ECS; using Svelto.Tasks; using Svelto.Tasks.Lean; - -using GamecraftModdingAPI.Blocks; -using GamecraftModdingAPI.Engines; -using GamecraftModdingAPI.Utility; using RobocraftX.Blocks; +using TechbloxModdingAPI.Blocks; +using TechbloxModdingAPI.Engines; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.App +namespace TechbloxModdingAPI.App { public class GameGameEngine : IApiEngine { diff --git a/GamecraftModdingAPI/App/GameMenuEngine.cs b/TechbloxModdingAPI/App/GameMenuEngine.cs similarity index 97% rename from GamecraftModdingAPI/App/GameMenuEngine.cs rename to TechbloxModdingAPI/App/GameMenuEngine.cs index 67b159b..9fce3b7 100644 --- a/GamecraftModdingAPI/App/GameMenuEngine.cs +++ b/TechbloxModdingAPI/App/GameMenuEngine.cs @@ -7,12 +7,11 @@ using RobocraftX.GUI; using RobocraftX.GUI.MyGamesScreen; using Svelto.ECS; using Svelto.ECS.Experimental; - -using GamecraftModdingAPI.Engines; -using GamecraftModdingAPI.Utility; using Svelto.DataStructures; +using TechbloxModdingAPI.Engines; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.App +namespace TechbloxModdingAPI.App { public class GameMenuEngine : IFactoryEngine { diff --git a/GamecraftModdingAPI/App/StateSyncRegPatch.cs b/TechbloxModdingAPI/App/StateSyncRegPatch.cs similarity index 93% rename from GamecraftModdingAPI/App/StateSyncRegPatch.cs rename to TechbloxModdingAPI/App/StateSyncRegPatch.cs index 9c2ce68..87842d2 100644 --- a/GamecraftModdingAPI/App/StateSyncRegPatch.cs +++ b/TechbloxModdingAPI/App/StateSyncRegPatch.cs @@ -6,7 +6,7 @@ using RobocraftX.StateSync; using HarmonyLib; -namespace GamecraftModdingAPI.App +namespace TechbloxModdingAPI.App { [HarmonyPatch] class StateSyncRegPatch diff --git a/GamecraftModdingAPI/App/UserPrompts.cs b/TechbloxModdingAPI/App/UserPrompts.cs similarity index 96% rename from GamecraftModdingAPI/App/UserPrompts.cs rename to TechbloxModdingAPI/App/UserPrompts.cs index 26a9395..7548055 100644 --- a/GamecraftModdingAPI/App/UserPrompts.cs +++ b/TechbloxModdingAPI/App/UserPrompts.cs @@ -3,7 +3,7 @@ using HarmonyLib; using RobocraftX.Services; -namespace GamecraftModdingAPI.App +namespace TechbloxModdingAPI.App { public class DualChoicePrompt : MultiChoiceError { diff --git a/GamecraftModdingAPI/Block.cs b/TechbloxModdingAPI/Block.cs similarity index 99% rename from GamecraftModdingAPI/Block.cs rename to TechbloxModdingAPI/Block.cs index e4c50cd..4729a91 100644 --- a/GamecraftModdingAPI/Block.cs +++ b/TechbloxModdingAPI/Block.cs @@ -10,16 +10,15 @@ using RobocraftX.Common; using RobocraftX.Blocks; using Unity.Mathematics; using Gamecraft.Blocks.GUI; - -using GamecraftModdingAPI.Blocks; -using GamecraftModdingAPI.Utility; using RobocraftX.Rendering.GPUI; +using TechbloxModdingAPI.Blocks; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI +namespace TechbloxModdingAPI { /// /// A single (perhaps scaled) block. Properties may return default values if the block is removed and then setting them is ignored. - /// For specific block type operations, use the specialised block classes in the GamecraftModdingAPI.Blocks namespace. + /// For specific block type operations, use the specialised block classes in the TechbloxModdingAPI.Blocks namespace. /// public class Block : IEquatable, IEquatable { diff --git a/GamecraftModdingAPI/BlockGroup.cs b/TechbloxModdingAPI/BlockGroup.cs similarity index 98% rename from GamecraftModdingAPI/BlockGroup.cs rename to TechbloxModdingAPI/BlockGroup.cs index c1add9a..5361445 100644 --- a/GamecraftModdingAPI/BlockGroup.cs +++ b/TechbloxModdingAPI/BlockGroup.cs @@ -5,11 +5,10 @@ using System.Collections.Generic; using Gamecraft.Blocks.BlockGroups; using Unity.Mathematics; using UnityEngine; +using TechbloxModdingAPI.Blocks; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Blocks; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI +namespace TechbloxModdingAPI { /// /// A group of blocks that can be selected together. The placed version of blueprints. Dispose after usage. diff --git a/GamecraftModdingAPI/Blocks/BlockCloneEngine.cs b/TechbloxModdingAPI/Blocks/BlockCloneEngine.cs similarity index 98% rename from GamecraftModdingAPI/Blocks/BlockCloneEngine.cs rename to TechbloxModdingAPI/Blocks/BlockCloneEngine.cs index 1c9c91c..8703953 100644 --- a/GamecraftModdingAPI/Blocks/BlockCloneEngine.cs +++ b/TechbloxModdingAPI/Blocks/BlockCloneEngine.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Reflection; using Gamecraft.Wires; -using GamecraftModdingAPI.Engines; using HarmonyLib; using RobocraftX.Blocks; using RobocraftX.Character; @@ -10,8 +9,9 @@ using RobocraftX.Common; using RobocraftX.Common.Players; using Svelto.DataStructures; using Svelto.ECS; +using TechbloxModdingAPI.Engines; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class BlockCloneEngine : IApiEngine { diff --git a/GamecraftModdingAPI/Blocks/BlockColor.cs b/TechbloxModdingAPI/Blocks/BlockColor.cs similarity index 97% rename from GamecraftModdingAPI/Blocks/BlockColor.cs rename to TechbloxModdingAPI/Blocks/BlockColor.cs index bb5fa4a..33363a2 100644 --- a/GamecraftModdingAPI/Blocks/BlockColor.cs +++ b/TechbloxModdingAPI/Blocks/BlockColor.cs @@ -1,7 +1,7 @@ using System; using Unity.Mathematics; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public struct BlockColor { diff --git a/GamecraftModdingAPI/Blocks/BlockEngine.cs b/TechbloxModdingAPI/Blocks/BlockEngine.cs similarity index 99% rename from GamecraftModdingAPI/Blocks/BlockEngine.cs rename to TechbloxModdingAPI/Blocks/BlockEngine.cs index e0291c0..956871b 100644 --- a/GamecraftModdingAPI/Blocks/BlockEngine.cs +++ b/TechbloxModdingAPI/Blocks/BlockEngine.cs @@ -15,10 +15,9 @@ using Svelto.DataStructures; using Svelto.ECS; using Svelto.ECS.Hybrid; using Unity.Mathematics; +using TechbloxModdingAPI.Engines; -using GamecraftModdingAPI.Engines; - -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { /// /// Engine for executing general block actions diff --git a/GamecraftModdingAPI/Blocks/BlockEngineInit.cs b/TechbloxModdingAPI/Blocks/BlockEngineInit.cs similarity index 98% rename from GamecraftModdingAPI/Blocks/BlockEngineInit.cs rename to TechbloxModdingAPI/Blocks/BlockEngineInit.cs index ac7f3c4..b9b9eae 100644 --- a/GamecraftModdingAPI/Blocks/BlockEngineInit.cs +++ b/TechbloxModdingAPI/Blocks/BlockEngineInit.cs @@ -5,7 +5,7 @@ using Svelto.DataStructures; using Svelto.ECS; using Svelto.ECS.Internal; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public partial class BlockEngine { diff --git a/GamecraftModdingAPI/Blocks/BlockEventsEngine.cs b/TechbloxModdingAPI/Blocks/BlockEventsEngine.cs similarity index 92% rename from GamecraftModdingAPI/Blocks/BlockEventsEngine.cs rename to TechbloxModdingAPI/Blocks/BlockEventsEngine.cs index d1c2639..f89768b 100644 --- a/GamecraftModdingAPI/Blocks/BlockEventsEngine.cs +++ b/TechbloxModdingAPI/Blocks/BlockEventsEngine.cs @@ -2,12 +2,11 @@ using System; using RobocraftX.Common; using Svelto.ECS; - -using GamecraftModdingAPI.Engines; -using GamecraftModdingAPI.Utility; using RobocraftX.Blocks; +using TechbloxModdingAPI.Engines; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class BlockEventsEngine : IReactionaryEngine { diff --git a/GamecraftModdingAPI/Blocks/BlockExceptions.cs b/TechbloxModdingAPI/Blocks/BlockExceptions.cs similarity index 93% rename from GamecraftModdingAPI/Blocks/BlockExceptions.cs rename to TechbloxModdingAPI/Blocks/BlockExceptions.cs index 9949424..409bb02 100644 --- a/GamecraftModdingAPI/Blocks/BlockExceptions.cs +++ b/TechbloxModdingAPI/Blocks/BlockExceptions.cs @@ -1,8 +1,8 @@ using System; -using GamecraftModdingAPI; +using TechbloxModdingAPI; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class BlockException : GamecraftModdingAPIException { diff --git a/GamecraftModdingAPI/Blocks/BlockIDs.cs b/TechbloxModdingAPI/Blocks/BlockIDs.cs similarity index 98% rename from GamecraftModdingAPI/Blocks/BlockIDs.cs rename to TechbloxModdingAPI/Blocks/BlockIDs.cs index 5c44f11..30fa76f 100644 --- a/GamecraftModdingAPI/Blocks/BlockIDs.cs +++ b/TechbloxModdingAPI/Blocks/BlockIDs.cs @@ -1,4 +1,4 @@ -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { /// /// Possible block types diff --git a/GamecraftModdingAPI/Blocks/BlockIdentifiers.cs b/TechbloxModdingAPI/Blocks/BlockIdentifiers.cs similarity index 97% rename from GamecraftModdingAPI/Blocks/BlockIdentifiers.cs rename to TechbloxModdingAPI/Blocks/BlockIdentifiers.cs index bc426d5..10305dc 100644 --- a/GamecraftModdingAPI/Blocks/BlockIdentifiers.cs +++ b/TechbloxModdingAPI/Blocks/BlockIdentifiers.cs @@ -4,7 +4,7 @@ using RobocraftX.Common; using HarmonyLib; using Svelto.DataStructures; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { /// /// ExclusiveGroups and IDs used with blocks diff --git a/GamecraftModdingAPI/Blocks/BlockMaterial.cs b/TechbloxModdingAPI/Blocks/BlockMaterial.cs similarity index 82% rename from GamecraftModdingAPI/Blocks/BlockMaterial.cs rename to TechbloxModdingAPI/Blocks/BlockMaterial.cs index 74d45bb..723bd63 100644 --- a/GamecraftModdingAPI/Blocks/BlockMaterial.cs +++ b/TechbloxModdingAPI/Blocks/BlockMaterial.cs @@ -1,4 +1,4 @@ -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public enum BlockMaterial : byte { diff --git a/GamecraftModdingAPI/Blocks/BlockTests.cs b/TechbloxModdingAPI/Blocks/BlockTests.cs similarity index 97% rename from GamecraftModdingAPI/Blocks/BlockTests.cs rename to TechbloxModdingAPI/Blocks/BlockTests.cs index 7aac012..7a96c27 100644 --- a/GamecraftModdingAPI/Blocks/BlockTests.cs +++ b/TechbloxModdingAPI/Blocks/BlockTests.cs @@ -3,11 +3,11 @@ using Gamecraft.Wires; using Unity.Mathematics; -using GamecraftModdingAPI; -using GamecraftModdingAPI.Tests; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI; +using TechbloxModdingAPI.Tests; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { #if TEST /// @@ -31,7 +31,7 @@ namespace GamecraftModdingAPI.Blocks //Assert.Equal(newBlock.Exists, true, "Newly placed block does not exist, possibly because Sync() skipped/missed/failed.", "Newly placed block exists, Sync() successful."); } - [APITestCase(TestType.EditMode)] + /*[APITestCase(TestType.EditMode)] public static void TestTextBlock() { TextBlock textBlock = null; // Note: the assignment operation is a lambda, which slightly confuses the compiler @@ -74,7 +74,7 @@ namespace GamecraftModdingAPI.Blocks if (!Assert.CloseTo(b.MaximumAngle, 180f, $"Servo.MaximumAngle {b.MaximumAngle} does not equal default value, possibly because it failed silently.", "Servo.MaximumAngle is close enough to default.")) return; if (!Assert.CloseTo(b.MinimumAngle, -180f, $"Servo.MinimumAngle {b.MinimumAngle} does not equal default value, possibly because it failed silently.", "Servo.MinimumAngle is close enough to default.")) return; if (!Assert.CloseTo(b.MaximumForce, 60f, $"Servo.MaximumForce {b.MaximumForce} does not equal default value, possibly because it failed silently.", "Servo.MaximumForce is close enough to default.")) return; - } + }*/ [APITestCase(TestType.EditMode)] public static void TestDampedSpring() @@ -88,7 +88,7 @@ namespace GamecraftModdingAPI.Blocks if (!Assert.CloseTo(b.MaxExtension, 0.3f, $"DampedSpring.MaxExtension {b.MaxExtension} does not equal default value, possibly because it failed silently.", "DampedSpring.MaxExtension is close enough to default.")) return; } - [APITestCase(TestType.Game)] + /*[APITestCase(TestType.Game)] public static void TestMusicBlock1() { Block newBlock = Block.PlaceNew(BlockIDs.MusicBlock, Unity.Mathematics.float3.zero + 2); @@ -131,14 +131,14 @@ namespace GamecraftModdingAPI.Blocks Wire newWire = null; if (!Assert.Errorless(() => { newWire = b.Connect(0, target, 0);})) return; if (!Assert.NotNull(newWire, "SignalingBlock.Connect(...) returned null, possible because it failed silently.", "SignalingBlock.Connect(...) returned a non-null value.")) return; - } + }*/ - [APITestCase(TestType.EditMode)] + /*[APITestCase(TestType.EditMode)] public static void TestSpecialiseError() { Block newBlock = Block.PlaceNew(BlockIDs.Bench, new float3(1, 1, 1)); if (Assert.Errorful(() => newBlock.Specialise(), "Block.Specialise() was expected to error on a bench block.", "Block.Specialise() errored as expected for a bench block.")) return; - } + }*/ } #endif } diff --git a/GamecraftModdingAPI/Blocks/BlueprintEngine.cs b/TechbloxModdingAPI/Blocks/BlueprintEngine.cs similarity index 99% rename from GamecraftModdingAPI/Blocks/BlueprintEngine.cs rename to TechbloxModdingAPI/Blocks/BlueprintEngine.cs index ddfb051..19e0afc 100644 --- a/GamecraftModdingAPI/Blocks/BlueprintEngine.cs +++ b/TechbloxModdingAPI/Blocks/BlueprintEngine.cs @@ -3,8 +3,6 @@ using System.Collections.Generic; using System.Reflection; using Gamecraft.Blocks.BlockGroups; using Gamecraft.GUI.Blueprints; -using GamecraftModdingAPI.Engines; -using GamecraftModdingAPI.Utility; using HarmonyLib; using RobocraftX.Blocks; using RobocraftX.Common; @@ -15,12 +13,14 @@ using Svelto.ECS; using Svelto.ECS.DataStructures; using Svelto.ECS.EntityStructs; using Svelto.ECS.Serialization; +using TechbloxModdingAPI.Engines; +using TechbloxModdingAPI.Utility; using Unity.Collections; using Unity.Mathematics; using UnityEngine; using Allocator = Svelto.Common.Allocator; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class BlueprintEngine : IFactoryEngine { diff --git a/GamecraftModdingAPI/Blocks/CustomBlock.cs b/TechbloxModdingAPI/Blocks/CustomBlock.cs similarity index 99% rename from GamecraftModdingAPI/Blocks/CustomBlock.cs rename to TechbloxModdingAPI/Blocks/CustomBlock.cs index 3567afd..4027c31 100644 --- a/GamecraftModdingAPI/Blocks/CustomBlock.cs +++ b/TechbloxModdingAPI/Blocks/CustomBlock.cs @@ -17,11 +17,10 @@ using Svelto.Tasks.ExtraLean; using UnityEngine; using UnityEngine.AddressableAssets; using Material = UnityEngine.Material; - -using GamecraftModdingAPI.Utility; using ServiceLayer; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { /// /// Experimental support for adding custom blocks to the game. diff --git a/GamecraftModdingAPI/Blocks/CustomBlockAttribute.cs b/TechbloxModdingAPI/Blocks/CustomBlockAttribute.cs similarity index 98% rename from GamecraftModdingAPI/Blocks/CustomBlockAttribute.cs rename to TechbloxModdingAPI/Blocks/CustomBlockAttribute.cs index 7c7669f..b4a11f6 100644 --- a/GamecraftModdingAPI/Blocks/CustomBlockAttribute.cs +++ b/TechbloxModdingAPI/Blocks/CustomBlockAttribute.cs @@ -1,7 +1,7 @@ using System; using DataLoader; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { [AttributeUsage(AttributeTargets.Class)] public class CustomBlockAttribute : Attribute diff --git a/GamecraftModdingAPI/Blocks/CustomBlockEngine.cs b/TechbloxModdingAPI/Blocks/CustomBlockEngine.cs similarity index 94% rename from GamecraftModdingAPI/Blocks/CustomBlockEngine.cs rename to TechbloxModdingAPI/Blocks/CustomBlockEngine.cs index bb1192b..ef3c1e5 100644 --- a/GamecraftModdingAPI/Blocks/CustomBlockEngine.cs +++ b/TechbloxModdingAPI/Blocks/CustomBlockEngine.cs @@ -1,14 +1,14 @@ using System; using System.Collections.Generic; -using GamecraftModdingAPI.Engines; -using GamecraftModdingAPI.Persistence; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI.Engines; +using TechbloxModdingAPI.Persistence; +using TechbloxModdingAPI.Utility; using RobocraftX.Common; using Svelto.ECS; using Svelto.ECS.Experimental; using Svelto.ECS.Serialization; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { /*public class CustomBlockEngine : IFactoryEngine { diff --git a/GamecraftModdingAPI/Blocks/DampedSpring.cs b/TechbloxModdingAPI/Blocks/DampedSpring.cs similarity index 97% rename from GamecraftModdingAPI/Blocks/DampedSpring.cs rename to TechbloxModdingAPI/Blocks/DampedSpring.cs index 20d28f2..34c7543 100644 --- a/GamecraftModdingAPI/Blocks/DampedSpring.cs +++ b/TechbloxModdingAPI/Blocks/DampedSpring.cs @@ -2,7 +2,7 @@ using RobocraftX.Blocks; using RobocraftX.Common; using Svelto.ECS; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class DampedSpring : Block { diff --git a/GamecraftModdingAPI/Blocks/LogicGate.cs b/TechbloxModdingAPI/Blocks/LogicGate.cs similarity index 88% rename from GamecraftModdingAPI/Blocks/LogicGate.cs rename to TechbloxModdingAPI/Blocks/LogicGate.cs index 2ec4cef..50a819c 100644 --- a/GamecraftModdingAPI/Blocks/LogicGate.cs +++ b/TechbloxModdingAPI/Blocks/LogicGate.cs @@ -1,7 +1,7 @@ using RobocraftX.Common; using Svelto.ECS; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class LogicGate : SignalingBlock { diff --git a/GamecraftModdingAPI/Blocks/Motor.cs b/TechbloxModdingAPI/Blocks/Motor.cs similarity index 95% rename from GamecraftModdingAPI/Blocks/Motor.cs rename to TechbloxModdingAPI/Blocks/Motor.cs index 0a69d27..6b1e500 100644 --- a/GamecraftModdingAPI/Blocks/Motor.cs +++ b/TechbloxModdingAPI/Blocks/Motor.cs @@ -5,9 +5,9 @@ using RobocraftX.Common; using Svelto.ECS; using Unity.Mathematics; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class Motor : SignalingBlock { diff --git a/GamecraftModdingAPI/Blocks/MovementEngine.cs b/TechbloxModdingAPI/Blocks/MovementEngine.cs similarity index 96% rename from GamecraftModdingAPI/Blocks/MovementEngine.cs rename to TechbloxModdingAPI/Blocks/MovementEngine.cs index 87a7259..b01b714 100644 --- a/GamecraftModdingAPI/Blocks/MovementEngine.cs +++ b/TechbloxModdingAPI/Blocks/MovementEngine.cs @@ -4,11 +4,10 @@ using Svelto.ECS; using Svelto.ECS.EntityStructs; using Unity.Transforms; using Unity.Mathematics; +using TechbloxModdingAPI.Engines; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; -using GamecraftModdingAPI.Engines; - -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { /// /// Engine which executes block movement actions diff --git a/GamecraftModdingAPI/Blocks/MusicBlock.cs b/TechbloxModdingAPI/Blocks/MusicBlock.cs similarity index 97% rename from GamecraftModdingAPI/Blocks/MusicBlock.cs rename to TechbloxModdingAPI/Blocks/MusicBlock.cs index 6b99b6f..30ca5ab 100644 --- a/GamecraftModdingAPI/Blocks/MusicBlock.cs +++ b/TechbloxModdingAPI/Blocks/MusicBlock.cs @@ -8,11 +8,11 @@ using RobocraftX.Blocks; using Svelto.ECS; using Unity.Mathematics; -using GamecraftModdingAPI; -using GamecraftModdingAPI.Tests; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI; +using TechbloxModdingAPI.Tests; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class MusicBlock : SignalingBlock { diff --git a/GamecraftModdingAPI/Blocks/ObjectIdentifier.cs b/TechbloxModdingAPI/Blocks/ObjectIdentifier.cs similarity index 97% rename from GamecraftModdingAPI/Blocks/ObjectIdentifier.cs rename to TechbloxModdingAPI/Blocks/ObjectIdentifier.cs index 1233343..67e250e 100644 --- a/GamecraftModdingAPI/Blocks/ObjectIdentifier.cs +++ b/TechbloxModdingAPI/Blocks/ObjectIdentifier.cs @@ -2,7 +2,7 @@ using RobocraftX.Common; using Svelto.ECS; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class ObjectIdentifier : Block { diff --git a/GamecraftModdingAPI/Blocks/Piston.cs b/TechbloxModdingAPI/Blocks/Piston.cs similarity index 94% rename from GamecraftModdingAPI/Blocks/Piston.cs rename to TechbloxModdingAPI/Blocks/Piston.cs index d05ac20..b5953ee 100644 --- a/GamecraftModdingAPI/Blocks/Piston.cs +++ b/TechbloxModdingAPI/Blocks/Piston.cs @@ -4,10 +4,10 @@ using RobocraftX.Blocks; using Svelto.ECS; using Unity.Mathematics; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI.Utility; using RobocraftX.Common; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class Piston : SignalingBlock { diff --git a/GamecraftModdingAPI/Blocks/PlacementEngine.cs b/TechbloxModdingAPI/Blocks/PlacementEngine.cs similarity index 96% rename from GamecraftModdingAPI/Blocks/PlacementEngine.cs rename to TechbloxModdingAPI/Blocks/PlacementEngine.cs index 1d01ae8..38e27f1 100644 --- a/GamecraftModdingAPI/Blocks/PlacementEngine.cs +++ b/TechbloxModdingAPI/Blocks/PlacementEngine.cs @@ -13,13 +13,12 @@ using Svelto.ECS; using Svelto.ECS.EntityStructs; using Unity.Mathematics; using UnityEngine; - -using GamecraftModdingAPI.Utility; -using GamecraftModdingAPI.Engines; -using GamecraftModdingAPI.Players; +using TechbloxModdingAPI.Players; using RobocraftX.Rendering.GPUI; +using TechbloxModdingAPI.Engines; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { /// /// Engine which executes block placement actions diff --git a/GamecraftModdingAPI/Blocks/RemovalEngine.cs b/TechbloxModdingAPI/Blocks/RemovalEngine.cs similarity index 94% rename from GamecraftModdingAPI/Blocks/RemovalEngine.cs rename to TechbloxModdingAPI/Blocks/RemovalEngine.cs index c27c339..08216fc 100644 --- a/GamecraftModdingAPI/Blocks/RemovalEngine.cs +++ b/TechbloxModdingAPI/Blocks/RemovalEngine.cs @@ -4,11 +4,10 @@ using HarmonyLib; using RobocraftX.Blocks; using RobocraftX.Common; using Svelto.ECS; +using TechbloxModdingAPI.Engines; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; -using GamecraftModdingAPI.Engines; - -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class RemovalEngine : IApiEngine { diff --git a/GamecraftModdingAPI/Blocks/RotationEngine.cs b/TechbloxModdingAPI/Blocks/RotationEngine.cs similarity index 97% rename from GamecraftModdingAPI/Blocks/RotationEngine.cs rename to TechbloxModdingAPI/Blocks/RotationEngine.cs index 2d8d1db..1f35d17 100644 --- a/GamecraftModdingAPI/Blocks/RotationEngine.cs +++ b/TechbloxModdingAPI/Blocks/RotationEngine.cs @@ -4,11 +4,10 @@ using Svelto.ECS; using Svelto.ECS.EntityStructs; using Unity.Mathematics; using UnityEngine; +using TechbloxModdingAPI.Engines; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; -using GamecraftModdingAPI.Engines; - -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { /// /// Engine which executes block movement actions diff --git a/GamecraftModdingAPI/Blocks/ScalingEngine.cs b/TechbloxModdingAPI/Blocks/ScalingEngine.cs similarity index 93% rename from GamecraftModdingAPI/Blocks/ScalingEngine.cs rename to TechbloxModdingAPI/Blocks/ScalingEngine.cs index fcbf900..81131e6 100644 --- a/GamecraftModdingAPI/Blocks/ScalingEngine.cs +++ b/TechbloxModdingAPI/Blocks/ScalingEngine.cs @@ -5,11 +5,10 @@ using RobocraftX.Common; using RobocraftX.UECS; using Svelto.ECS; using Unity.Entities; +using TechbloxModdingAPI.Engines; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Engines; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class ScalingEngine : IApiEngine { diff --git a/GamecraftModdingAPI/Blocks/Servo.cs b/TechbloxModdingAPI/Blocks/Servo.cs similarity index 96% rename from GamecraftModdingAPI/Blocks/Servo.cs rename to TechbloxModdingAPI/Blocks/Servo.cs index a5dceec..12232de 100644 --- a/GamecraftModdingAPI/Blocks/Servo.cs +++ b/TechbloxModdingAPI/Blocks/Servo.cs @@ -5,9 +5,9 @@ using RobocraftX.Common; using Svelto.ECS; using Unity.Mathematics; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class Servo : SignalingBlock { diff --git a/GamecraftModdingAPI/Blocks/SfxBlock.cs b/TechbloxModdingAPI/Blocks/SfxBlock.cs similarity index 99% rename from GamecraftModdingAPI/Blocks/SfxBlock.cs rename to TechbloxModdingAPI/Blocks/SfxBlock.cs index 88d69d2..c72d37a 100644 --- a/GamecraftModdingAPI/Blocks/SfxBlock.cs +++ b/TechbloxModdingAPI/Blocks/SfxBlock.cs @@ -6,7 +6,7 @@ using RobocraftX.Blocks; using RobocraftX.Common; using Svelto.ECS; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class SfxBlock : SignalingBlock { diff --git a/GamecraftModdingAPI/Blocks/SignalEngine.cs b/TechbloxModdingAPI/Blocks/SignalEngine.cs similarity index 99% rename from GamecraftModdingAPI/Blocks/SignalEngine.cs rename to TechbloxModdingAPI/Blocks/SignalEngine.cs index 8329a3b..3b1cf6a 100644 --- a/GamecraftModdingAPI/Blocks/SignalEngine.cs +++ b/TechbloxModdingAPI/Blocks/SignalEngine.cs @@ -2,10 +2,9 @@ using Svelto.ECS; using Svelto.DataStructures; using Gamecraft.Wires; +using TechbloxModdingAPI.Engines; -using GamecraftModdingAPI.Engines; - -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { /// /// Engine which executes signal actions diff --git a/GamecraftModdingAPI/Blocks/SignalingBlock.cs b/TechbloxModdingAPI/Blocks/SignalingBlock.cs similarity index 98% rename from GamecraftModdingAPI/Blocks/SignalingBlock.cs rename to TechbloxModdingAPI/Blocks/SignalingBlock.cs index a137b98..b18521a 100644 --- a/GamecraftModdingAPI/Blocks/SignalingBlock.cs +++ b/TechbloxModdingAPI/Blocks/SignalingBlock.cs @@ -4,10 +4,10 @@ using Gamecraft.Wires; using Svelto.ECS; using Unity.Mathematics; -using GamecraftModdingAPI; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { /// /// Common implementation for blocks that support wiring. diff --git a/GamecraftModdingAPI/Blocks/SpawnPoint.cs b/TechbloxModdingAPI/Blocks/SpawnPoint.cs similarity index 95% rename from GamecraftModdingAPI/Blocks/SpawnPoint.cs rename to TechbloxModdingAPI/Blocks/SpawnPoint.cs index 17bffd9..ac6c014 100644 --- a/GamecraftModdingAPI/Blocks/SpawnPoint.cs +++ b/TechbloxModdingAPI/Blocks/SpawnPoint.cs @@ -6,10 +6,10 @@ using Gamecraft.CharacterVulnerability; using Svelto.ECS; using Unity.Mathematics; -using GamecraftModdingAPI; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class SpawnPoint : Block { diff --git a/GamecraftModdingAPI/Blocks/TextBlock.cs b/TechbloxModdingAPI/Blocks/TextBlock.cs similarity index 93% rename from GamecraftModdingAPI/Blocks/TextBlock.cs rename to TechbloxModdingAPI/Blocks/TextBlock.cs index 3d46611..0e33b75 100644 --- a/GamecraftModdingAPI/Blocks/TextBlock.cs +++ b/TechbloxModdingAPI/Blocks/TextBlock.cs @@ -5,10 +5,10 @@ using RobocraftX.Common; using Svelto.ECS; using Unity.Mathematics; -using GamecraftModdingAPI; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class TextBlock : SignalingBlock { diff --git a/GamecraftModdingAPI/Blocks/Timer.cs b/TechbloxModdingAPI/Blocks/Timer.cs similarity index 95% rename from GamecraftModdingAPI/Blocks/Timer.cs rename to TechbloxModdingAPI/Blocks/Timer.cs index 0bbd302..6337864 100644 --- a/GamecraftModdingAPI/Blocks/Timer.cs +++ b/TechbloxModdingAPI/Blocks/Timer.cs @@ -6,10 +6,10 @@ using Gamecraft.Blocks.TimerBlock; using Svelto.ECS; using Unity.Mathematics; -using GamecraftModdingAPI; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class Timer : SignalingBlock { diff --git a/GamecraftModdingAPI/Blocks/Wire.cs b/TechbloxModdingAPI/Blocks/Wire.cs similarity index 99% rename from GamecraftModdingAPI/Blocks/Wire.cs rename to TechbloxModdingAPI/Blocks/Wire.cs index e58a625..289dee7 100644 --- a/GamecraftModdingAPI/Blocks/Wire.cs +++ b/TechbloxModdingAPI/Blocks/Wire.cs @@ -4,9 +4,9 @@ using Gamecraft.Wires; using Svelto.ECS; using Svelto.ECS.Experimental; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Blocks +namespace TechbloxModdingAPI.Blocks { public class Wire { diff --git a/GamecraftModdingAPI/Blueprint.cs b/TechbloxModdingAPI/Blueprint.cs similarity index 99% rename from GamecraftModdingAPI/Blueprint.cs rename to TechbloxModdingAPI/Blueprint.cs index 4d9dff0..2724e5a 100644 --- a/GamecraftModdingAPI/Blueprint.cs +++ b/TechbloxModdingAPI/Blueprint.cs @@ -2,7 +2,7 @@ using Unity.Mathematics; using UnityEngine; -namespace GamecraftModdingAPI +namespace TechbloxModdingAPI { /// /// Represents a blueprint in the inventory. When placed it becomes a block group. diff --git a/GamecraftModdingAPI/Cluster.cs b/TechbloxModdingAPI/Cluster.cs similarity index 98% rename from GamecraftModdingAPI/Cluster.cs rename to TechbloxModdingAPI/Cluster.cs index 79b5822..11b995c 100644 --- a/GamecraftModdingAPI/Cluster.cs +++ b/TechbloxModdingAPI/Cluster.cs @@ -2,7 +2,7 @@ using RobocraftX.Common; using Svelto.ECS; -namespace GamecraftModdingAPI +namespace TechbloxModdingAPI { /// /// Represnts a cluster of blocks in time running mode, meaning blocks that are connected either directly or via joints. diff --git a/GamecraftModdingAPI/Commands/CommandBuilder.cs b/TechbloxModdingAPI/Commands/CommandBuilder.cs similarity index 99% rename from GamecraftModdingAPI/Commands/CommandBuilder.cs rename to TechbloxModdingAPI/Commands/CommandBuilder.cs index 7bd5ed9..1a34f45 100644 --- a/GamecraftModdingAPI/Commands/CommandBuilder.cs +++ b/TechbloxModdingAPI/Commands/CommandBuilder.cs @@ -1,10 +1,9 @@ using System; using Svelto.ECS; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Commands +namespace TechbloxModdingAPI.Commands { /// /// Custom Command builder. diff --git a/GamecraftModdingAPI/Commands/CommandEngineFactory.cs b/TechbloxModdingAPI/Commands/CommandEngineFactory.cs similarity index 88% rename from GamecraftModdingAPI/Commands/CommandEngineFactory.cs rename to TechbloxModdingAPI/Commands/CommandEngineFactory.cs index ddcdcb8..07e9a67 100644 --- a/GamecraftModdingAPI/Commands/CommandEngineFactory.cs +++ b/TechbloxModdingAPI/Commands/CommandEngineFactory.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace GamecraftModdingAPI.Commands +namespace TechbloxModdingAPI.Commands { /// /// UNIMPLEMENTED! diff --git a/GamecraftModdingAPI/Commands/CommandExceptions.cs b/TechbloxModdingAPI/Commands/CommandExceptions.cs similarity index 97% rename from GamecraftModdingAPI/Commands/CommandExceptions.cs rename to TechbloxModdingAPI/Commands/CommandExceptions.cs index 39502a7..4141a9f 100644 --- a/GamecraftModdingAPI/Commands/CommandExceptions.cs +++ b/TechbloxModdingAPI/Commands/CommandExceptions.cs @@ -1,5 +1,5 @@ using System; -namespace GamecraftModdingAPI.Commands +namespace TechbloxModdingAPI.Commands { public class CommandException : GamecraftModdingAPIException { diff --git a/GamecraftModdingAPI/Commands/CommandManager.cs b/TechbloxModdingAPI/Commands/CommandManager.cs similarity index 96% rename from GamecraftModdingAPI/Commands/CommandManager.cs rename to TechbloxModdingAPI/Commands/CommandManager.cs index 876d634..e275ace 100644 --- a/GamecraftModdingAPI/Commands/CommandManager.cs +++ b/TechbloxModdingAPI/Commands/CommandManager.cs @@ -5,10 +5,9 @@ using System.Text; using System.Threading.Tasks; using Svelto.ECS; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Commands +namespace TechbloxModdingAPI.Commands { /// /// Keeps track of custom commands diff --git a/GamecraftModdingAPI/Commands/CommandPatch.cs b/TechbloxModdingAPI/Commands/CommandPatch.cs similarity index 99% rename from GamecraftModdingAPI/Commands/CommandPatch.cs rename to TechbloxModdingAPI/Commands/CommandPatch.cs index bf9f186..d098948 100644 --- a/GamecraftModdingAPI/Commands/CommandPatch.cs +++ b/TechbloxModdingAPI/Commands/CommandPatch.cs @@ -8,7 +8,7 @@ using RobocraftX.CR.MainGame; using RobocraftX.Multiplayer; using RobocraftX.StateSync; -namespace GamecraftModdingAPI.Commands +namespace TechbloxModdingAPI.Commands { /// /// Patch of RobocraftX.CR.MainGame.MainGameCompositionRoot.DeterministicCompose() diff --git a/GamecraftModdingAPI/Commands/CommandRegistrationHelper.cs b/TechbloxModdingAPI/Commands/CommandRegistrationHelper.cs similarity index 98% rename from GamecraftModdingAPI/Commands/CommandRegistrationHelper.cs rename to TechbloxModdingAPI/Commands/CommandRegistrationHelper.cs index 5cb9069..633bf75 100644 --- a/GamecraftModdingAPI/Commands/CommandRegistrationHelper.cs +++ b/TechbloxModdingAPI/Commands/CommandRegistrationHelper.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using uREPL; using RobocraftX.CommandLine.Custom; -namespace GamecraftModdingAPI.Commands +namespace TechbloxModdingAPI.Commands { /// /// Convenient methods for registering commands to Gamecraft. diff --git a/GamecraftModdingAPI/Commands/ExistingCommands.cs b/TechbloxModdingAPI/Commands/ExistingCommands.cs similarity index 96% rename from GamecraftModdingAPI/Commands/ExistingCommands.cs rename to TechbloxModdingAPI/Commands/ExistingCommands.cs index 60bd900..35dd199 100644 --- a/GamecraftModdingAPI/Commands/ExistingCommands.cs +++ b/TechbloxModdingAPI/Commands/ExistingCommands.cs @@ -2,7 +2,7 @@ using uREPL; -namespace GamecraftModdingAPI.Commands +namespace TechbloxModdingAPI.Commands { public static class ExistingCommands { diff --git a/GamecraftModdingAPI/Commands/ICustomCommandEngine.cs b/TechbloxModdingAPI/Commands/ICustomCommandEngine.cs similarity index 85% rename from GamecraftModdingAPI/Commands/ICustomCommandEngine.cs rename to TechbloxModdingAPI/Commands/ICustomCommandEngine.cs index 1704e84..afb0237 100644 --- a/GamecraftModdingAPI/Commands/ICustomCommandEngine.cs +++ b/TechbloxModdingAPI/Commands/ICustomCommandEngine.cs @@ -6,10 +6,10 @@ using System.Threading.Tasks; using Svelto.ECS; -using GamecraftModdingAPI.Utility; -using GamecraftModdingAPI.Engines; +using TechbloxModdingAPI.Utility; +using TechbloxModdingAPI.Engines; -namespace GamecraftModdingAPI.Commands +namespace TechbloxModdingAPI.Commands { /// /// Engine interface to handle command operations. diff --git a/GamecraftModdingAPI/Commands/SimpleCustomCommandEngine.cs b/TechbloxModdingAPI/Commands/SimpleCustomCommandEngine.cs similarity index 87% rename from GamecraftModdingAPI/Commands/SimpleCustomCommandEngine.cs rename to TechbloxModdingAPI/Commands/SimpleCustomCommandEngine.cs index 2ce60a9..87e0960 100644 --- a/GamecraftModdingAPI/Commands/SimpleCustomCommandEngine.cs +++ b/TechbloxModdingAPI/Commands/SimpleCustomCommandEngine.cs @@ -5,10 +5,9 @@ using System.Text; using System.Threading.Tasks; using Svelto.ECS; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Commands +namespace TechbloxModdingAPI.Commands { /// /// A simple implementation of ICustomCommandEngine sufficient for most commands. @@ -37,13 +36,13 @@ namespace GamecraftModdingAPI.Commands public void Dispose() { - GamecraftModdingAPI.Utility.Logging.MetaDebugLog($"Unregistering SimpleCustomCommandEngine {this.Name}"); + Logging.MetaDebugLog($"Unregistering SimpleCustomCommandEngine {this.Name}"); CommandRegistrationHelper.Unregister(this.Name); } public void Ready() { - GamecraftModdingAPI.Utility.Logging.MetaDebugLog($"Registering SimpleCustomCommandEngine {this.Name}"); + Logging.MetaDebugLog($"Registering SimpleCustomCommandEngine {this.Name}"); CommandRegistrationHelper.Register(this.Name, this.InvokeCatchError, this.Description); } diff --git a/GamecraftModdingAPI/Commands/SimpleCustomCommandEngine1.cs b/TechbloxModdingAPI/Commands/SimpleCustomCommandEngine1.cs similarity index 86% rename from GamecraftModdingAPI/Commands/SimpleCustomCommandEngine1.cs rename to TechbloxModdingAPI/Commands/SimpleCustomCommandEngine1.cs index bac16ef..ef3bb02 100644 --- a/GamecraftModdingAPI/Commands/SimpleCustomCommandEngine1.cs +++ b/TechbloxModdingAPI/Commands/SimpleCustomCommandEngine1.cs @@ -5,10 +5,9 @@ using System.Text; using System.Threading.Tasks; using Svelto.ECS; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Commands +namespace TechbloxModdingAPI.Commands { /// /// A simple implementation of ICustomCommandEngine sufficient for most commands. @@ -28,13 +27,13 @@ namespace GamecraftModdingAPI.Commands public void Dispose() { - GamecraftModdingAPI.Utility.Logging.MetaDebugLog($"Unregistering SimpleCustomCommandEngine {this.Name}"); + Logging.MetaDebugLog($"Unregistering SimpleCustomCommandEngine {this.Name}"); CommandRegistrationHelper.Unregister(this.Name); } public void Ready() { - GamecraftModdingAPI.Utility.Logging.MetaDebugLog($"Registering SimpleCustomCommandEngine {this.Name}"); + Logging.MetaDebugLog($"Registering SimpleCustomCommandEngine {this.Name}"); CommandRegistrationHelper.Register(this.Name, this.InvokeCatchError, this.Description); } diff --git a/GamecraftModdingAPI/Commands/SimpleCustomCommandEngine2.cs b/TechbloxModdingAPI/Commands/SimpleCustomCommandEngine2.cs similarity index 86% rename from GamecraftModdingAPI/Commands/SimpleCustomCommandEngine2.cs rename to TechbloxModdingAPI/Commands/SimpleCustomCommandEngine2.cs index 4b2b38d..8127861 100644 --- a/GamecraftModdingAPI/Commands/SimpleCustomCommandEngine2.cs +++ b/TechbloxModdingAPI/Commands/SimpleCustomCommandEngine2.cs @@ -5,10 +5,9 @@ using System.Text; using System.Threading.Tasks; using Svelto.ECS; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Commands +namespace TechbloxModdingAPI.Commands { /// /// A simple implementation of ICustomCommandEngine sufficient for most commands. @@ -28,13 +27,13 @@ namespace GamecraftModdingAPI.Commands public void Dispose() { - GamecraftModdingAPI.Utility.Logging.MetaDebugLog($"Unregistering SimpleCustomCommandEngine {this.Name}"); + Logging.MetaDebugLog($"Unregistering SimpleCustomCommandEngine {this.Name}"); CommandRegistrationHelper.Unregister(this.Name); } public void Ready() { - GamecraftModdingAPI.Utility.Logging.MetaDebugLog($"Registering SimpleCustomCommandEngine {this.Name}"); + Logging.MetaDebugLog($"Registering SimpleCustomCommandEngine {this.Name}"); CommandRegistrationHelper.Register(this.Name, this.InvokeCatchError, this.Description); } diff --git a/GamecraftModdingAPI/Commands/SimpleCustomCommandEngine3.cs b/TechbloxModdingAPI/Commands/SimpleCustomCommandEngine3.cs similarity index 86% rename from GamecraftModdingAPI/Commands/SimpleCustomCommandEngine3.cs rename to TechbloxModdingAPI/Commands/SimpleCustomCommandEngine3.cs index c9c942e..9b2f6b1 100644 --- a/GamecraftModdingAPI/Commands/SimpleCustomCommandEngine3.cs +++ b/TechbloxModdingAPI/Commands/SimpleCustomCommandEngine3.cs @@ -5,10 +5,9 @@ using System.Text; using System.Threading.Tasks; using Svelto.ECS; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Commands +namespace TechbloxModdingAPI.Commands { /// /// A simple implementation of ICustomCommandEngine sufficient for most commands. @@ -28,13 +27,13 @@ namespace GamecraftModdingAPI.Commands public void Dispose() { - GamecraftModdingAPI.Utility.Logging.MetaDebugLog($"Unregistering SimpleCustomCommandEngine {this.Name}"); + Logging.MetaDebugLog($"Unregistering SimpleCustomCommandEngine {this.Name}"); CommandRegistrationHelper.Unregister(this.Name); } public void Ready() { - GamecraftModdingAPI.Utility.Logging.MetaDebugLog($"Registering SimpleCustomCommandEngine {this.Name}"); + Logging.MetaDebugLog($"Registering SimpleCustomCommandEngine {this.Name}"); CommandRegistrationHelper.Register(this.Name, this.InvokeCatchError, this.Description); } diff --git a/GamecraftModdingAPI/Engines/IApiEngine.cs b/TechbloxModdingAPI/Engines/IApiEngine.cs similarity index 83% rename from GamecraftModdingAPI/Engines/IApiEngine.cs rename to TechbloxModdingAPI/Engines/IApiEngine.cs index 210c13d..6a8519a 100644 --- a/GamecraftModdingAPI/Engines/IApiEngine.cs +++ b/TechbloxModdingAPI/Engines/IApiEngine.cs @@ -6,10 +6,10 @@ using System.Threading.Tasks; using Svelto.ECS; -namespace GamecraftModdingAPI.Engines +namespace TechbloxModdingAPI.Engines { /// - /// Base engine interface used by all GamecraftModdingAPI engines + /// Base engine interface used by all TechbloxModdingAPI engines /// public interface IApiEngine : IEngine, IQueryingEntitiesEngine, IDisposable { diff --git a/GamecraftModdingAPI/Engines/IFactoryEngine.cs b/TechbloxModdingAPI/Engines/IFactoryEngine.cs similarity index 88% rename from GamecraftModdingAPI/Engines/IFactoryEngine.cs rename to TechbloxModdingAPI/Engines/IFactoryEngine.cs index 3e9c23e..d03b4e3 100644 --- a/GamecraftModdingAPI/Engines/IFactoryEngine.cs +++ b/TechbloxModdingAPI/Engines/IFactoryEngine.cs @@ -6,9 +6,9 @@ using System.Threading.Tasks; using Svelto.ECS; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Engines +namespace TechbloxModdingAPI.Engines { /// /// Engine interface to create a ModEventEntityStruct in entitiesDB when Emit() is called. diff --git a/GamecraftModdingAPI/Engines/IReactionaryEngine.cs b/TechbloxModdingAPI/Engines/IReactionaryEngine.cs similarity index 86% rename from GamecraftModdingAPI/Engines/IReactionaryEngine.cs rename to TechbloxModdingAPI/Engines/IReactionaryEngine.cs index 9381605..d627866 100644 --- a/GamecraftModdingAPI/Engines/IReactionaryEngine.cs +++ b/TechbloxModdingAPI/Engines/IReactionaryEngine.cs @@ -7,9 +7,9 @@ using System.Threading.Tasks; using Svelto.ECS; using Svelto.ECS.Internal; -using GamecraftModdingAPI.Events; +using TechbloxModdingAPI.Events; -namespace GamecraftModdingAPI.Engines +namespace TechbloxModdingAPI.Engines { /// /// Engine interface to handle ModEventEntityStruct events emitted by IEventEmitterEngines. diff --git a/GamecraftModdingAPI/Events/DeterministicStepComposeEngineGroupsPatch.cs b/TechbloxModdingAPI/Events/DeterministicStepComposeEngineGroupsPatch.cs similarity index 95% rename from GamecraftModdingAPI/Events/DeterministicStepComposeEngineGroupsPatch.cs rename to TechbloxModdingAPI/Events/DeterministicStepComposeEngineGroupsPatch.cs index 9f16955..cf00ae0 100644 --- a/GamecraftModdingAPI/Events/DeterministicStepComposeEngineGroupsPatch.cs +++ b/TechbloxModdingAPI/Events/DeterministicStepComposeEngineGroupsPatch.cs @@ -10,9 +10,9 @@ using Svelto.ECS; using RobocraftX.Common; using RobocraftX.StateSync; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// Patch of RobocraftX.StateSync.DeterministicStepCompositionRoot.ComposeEnginesGroups(...) diff --git a/GamecraftModdingAPI/Events/EmitterBuilder.cs b/TechbloxModdingAPI/Events/EmitterBuilder.cs similarity index 98% rename from GamecraftModdingAPI/Events/EmitterBuilder.cs rename to TechbloxModdingAPI/Events/EmitterBuilder.cs index c6a6879..1e5a2c2 100644 --- a/GamecraftModdingAPI/Events/EmitterBuilder.cs +++ b/TechbloxModdingAPI/Events/EmitterBuilder.cs @@ -2,7 +2,7 @@ using Svelto.ECS; -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { [Obsolete] public class EmitterBuilder diff --git a/GamecraftModdingAPI/Events/EventEngineFactory.cs b/TechbloxModdingAPI/Events/EventEngineFactory.cs similarity index 98% rename from GamecraftModdingAPI/Events/EventEngineFactory.cs rename to TechbloxModdingAPI/Events/EventEngineFactory.cs index 7981303..7361053 100644 --- a/GamecraftModdingAPI/Events/EventEngineFactory.cs +++ b/TechbloxModdingAPI/Events/EventEngineFactory.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using Svelto.ECS; -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// Convenient factories for mod event engines diff --git a/GamecraftModdingAPI/Events/EventExceptions.cs b/TechbloxModdingAPI/Events/EventExceptions.cs similarity index 96% rename from GamecraftModdingAPI/Events/EventExceptions.cs rename to TechbloxModdingAPI/Events/EventExceptions.cs index b4458bc..a796752 100644 --- a/GamecraftModdingAPI/Events/EventExceptions.cs +++ b/TechbloxModdingAPI/Events/EventExceptions.cs @@ -1,5 +1,5 @@ using System; -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { public class EventException : GamecraftModdingAPIException { diff --git a/GamecraftModdingAPI/Events/EventManager.cs b/TechbloxModdingAPI/Events/EventManager.cs similarity index 96% rename from GamecraftModdingAPI/Events/EventManager.cs rename to TechbloxModdingAPI/Events/EventManager.cs index f021e9f..05b92cf 100644 --- a/GamecraftModdingAPI/Events/EventManager.cs +++ b/TechbloxModdingAPI/Events/EventManager.cs @@ -5,16 +5,15 @@ using System.Text; using System.Threading.Tasks; using Svelto.ECS; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// Keeps track of event handlers and emitters. /// This is used to add, remove and get API event handlers and emitters. /// - [Obsolete("This will be removed in an upcoming update. Use the new C# event architecture from GamecraftModdingAPI.App")] + [Obsolete("This will be removed in an upcoming update. Use the new C# event architecture from TechbloxModdingAPI.App")] public static class EventManager { private static Dictionary _eventEmitters = new Dictionary(); diff --git a/GamecraftModdingAPI/Events/EventType.cs b/TechbloxModdingAPI/Events/EventType.cs similarity index 92% rename from GamecraftModdingAPI/Events/EventType.cs rename to TechbloxModdingAPI/Events/EventType.cs index 468e214..3f826cc 100644 --- a/GamecraftModdingAPI/Events/EventType.cs +++ b/TechbloxModdingAPI/Events/EventType.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// Built-in event types. diff --git a/GamecraftModdingAPI/Events/GameActivatedComposePatch.cs b/TechbloxModdingAPI/Events/GameActivatedComposePatch.cs similarity index 96% rename from GamecraftModdingAPI/Events/GameActivatedComposePatch.cs rename to TechbloxModdingAPI/Events/GameActivatedComposePatch.cs index c3a5fb5..62b5666 100644 --- a/GamecraftModdingAPI/Events/GameActivatedComposePatch.cs +++ b/TechbloxModdingAPI/Events/GameActivatedComposePatch.cs @@ -9,10 +9,9 @@ using HarmonyLib; using RobocraftX.CR.MainGame; using Svelto.ECS; using Unity.Entities; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame() diff --git a/GamecraftModdingAPI/Events/GameReloadedPatch.cs b/TechbloxModdingAPI/Events/GameReloadedPatch.cs similarity index 87% rename from GamecraftModdingAPI/Events/GameReloadedPatch.cs rename to TechbloxModdingAPI/Events/GameReloadedPatch.cs index 7228084..5deb9ee 100644 --- a/GamecraftModdingAPI/Events/GameReloadedPatch.cs +++ b/TechbloxModdingAPI/Events/GameReloadedPatch.cs @@ -7,9 +7,9 @@ using System.Threading.Tasks; using HarmonyLib; using RobocraftX; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// Patch of RobocraftX.FullGameCompositionRoot.ReloadGame() diff --git a/GamecraftModdingAPI/Events/GameStateBuildEmitterEngine.cs b/TechbloxModdingAPI/Events/GameStateBuildEmitterEngine.cs similarity index 95% rename from GamecraftModdingAPI/Events/GameStateBuildEmitterEngine.cs rename to TechbloxModdingAPI/Events/GameStateBuildEmitterEngine.cs index 725f544..29fb418 100644 --- a/GamecraftModdingAPI/Events/GameStateBuildEmitterEngine.cs +++ b/TechbloxModdingAPI/Events/GameStateBuildEmitterEngine.cs @@ -4,10 +4,9 @@ using Unity.Jobs; using RobocraftX.SimulationModeState; using RobocraftX.StateSync; using Svelto.ECS; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// Event emitter engine for switching to to build mode. diff --git a/GamecraftModdingAPI/Events/GameStateSimulationEmitterEngine.cs b/TechbloxModdingAPI/Events/GameStateSimulationEmitterEngine.cs similarity index 95% rename from GamecraftModdingAPI/Events/GameStateSimulationEmitterEngine.cs rename to TechbloxModdingAPI/Events/GameStateSimulationEmitterEngine.cs index 6e6e2ce..add45d5 100644 --- a/GamecraftModdingAPI/Events/GameStateSimulationEmitterEngine.cs +++ b/TechbloxModdingAPI/Events/GameStateSimulationEmitterEngine.cs @@ -4,10 +4,9 @@ using Unity.Jobs; using RobocraftX.SimulationModeState; using RobocraftX.StateSync; using Svelto.ECS; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// Event emitter engine for switching to simulation mode. diff --git a/GamecraftModdingAPI/Events/GameSwitchedToPatch.cs b/TechbloxModdingAPI/Events/GameSwitchedToPatch.cs similarity index 90% rename from GamecraftModdingAPI/Events/GameSwitchedToPatch.cs rename to TechbloxModdingAPI/Events/GameSwitchedToPatch.cs index dbd63c0..f45eb0b 100644 --- a/GamecraftModdingAPI/Events/GameSwitchedToPatch.cs +++ b/TechbloxModdingAPI/Events/GameSwitchedToPatch.cs @@ -10,9 +10,9 @@ using RobocraftX; using RobocraftX.CR.MainGame; using Svelto.ECS; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame() diff --git a/GamecraftModdingAPI/Events/HandlerBuilder.cs b/TechbloxModdingAPI/Events/HandlerBuilder.cs similarity index 99% rename from GamecraftModdingAPI/Events/HandlerBuilder.cs rename to TechbloxModdingAPI/Events/HandlerBuilder.cs index 10f3290..f726d0a 100644 --- a/GamecraftModdingAPI/Events/HandlerBuilder.cs +++ b/TechbloxModdingAPI/Events/HandlerBuilder.cs @@ -2,7 +2,7 @@ using Svelto.ECS; -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { [Obsolete] public class HandlerBuilder diff --git a/GamecraftModdingAPI/Events/IEventEmitterEngine.cs b/TechbloxModdingAPI/Events/IEventEmitterEngine.cs similarity index 86% rename from GamecraftModdingAPI/Events/IEventEmitterEngine.cs rename to TechbloxModdingAPI/Events/IEventEmitterEngine.cs index 8917cef..1ae89d2 100644 --- a/GamecraftModdingAPI/Events/IEventEmitterEngine.cs +++ b/TechbloxModdingAPI/Events/IEventEmitterEngine.cs @@ -5,10 +5,9 @@ using System.Text; using System.Threading.Tasks; using Svelto.ECS; +using TechbloxModdingAPI.Engines; -using GamecraftModdingAPI.Engines; - -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// Engine interface to create a ModEventEntityStruct in entitiesDB when a specific event occurs. diff --git a/GamecraftModdingAPI/Events/IEventHandlerEngine.cs b/TechbloxModdingAPI/Events/IEventHandlerEngine.cs similarity index 84% rename from GamecraftModdingAPI/Events/IEventHandlerEngine.cs rename to TechbloxModdingAPI/Events/IEventHandlerEngine.cs index 228adb8..003b6c5 100644 --- a/GamecraftModdingAPI/Events/IEventHandlerEngine.cs +++ b/TechbloxModdingAPI/Events/IEventHandlerEngine.cs @@ -6,10 +6,9 @@ using System.Threading.Tasks; using Svelto.ECS; using Svelto.ECS.Internal; +using TechbloxModdingAPI.Engines; -using GamecraftModdingAPI.Engines; - -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// Engine interface to handle ModEventEntityStruct events emitted by IEventEmitterEngines. diff --git a/GamecraftModdingAPI/Events/MenuActivatedPatch.cs b/TechbloxModdingAPI/Events/MenuActivatedPatch.cs similarity index 95% rename from GamecraftModdingAPI/Events/MenuActivatedPatch.cs rename to TechbloxModdingAPI/Events/MenuActivatedPatch.cs index 382bac4..64aa57f 100644 --- a/GamecraftModdingAPI/Events/MenuActivatedPatch.cs +++ b/TechbloxModdingAPI/Events/MenuActivatedPatch.cs @@ -7,10 +7,9 @@ using System.Threading.Tasks; using HarmonyLib; using RobocraftX; using Svelto.ECS; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// Patch of RobocraftX.FullGameCompositionRoot.ActivateMenu() diff --git a/GamecraftModdingAPI/Events/MenuSwitchedToPatch.cs b/TechbloxModdingAPI/Events/MenuSwitchedToPatch.cs similarity index 90% rename from GamecraftModdingAPI/Events/MenuSwitchedToPatch.cs rename to TechbloxModdingAPI/Events/MenuSwitchedToPatch.cs index 30b84da..c8fec0a 100644 --- a/GamecraftModdingAPI/Events/MenuSwitchedToPatch.cs +++ b/TechbloxModdingAPI/Events/MenuSwitchedToPatch.cs @@ -7,10 +7,9 @@ using System.Threading.Tasks; using HarmonyLib; using RobocraftX; using Svelto.ECS; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// Patch of RobocraftX.FullGameCompositionRoot.SwitchToMenu() diff --git a/GamecraftModdingAPI/Events/ModEventEntityDescriptor.cs b/TechbloxModdingAPI/Events/ModEventEntityDescriptor.cs similarity index 90% rename from GamecraftModdingAPI/Events/ModEventEntityDescriptor.cs rename to TechbloxModdingAPI/Events/ModEventEntityDescriptor.cs index 5172d9c..a4b2235 100644 --- a/GamecraftModdingAPI/Events/ModEventEntityDescriptor.cs +++ b/TechbloxModdingAPI/Events/ModEventEntityDescriptor.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using Svelto.ECS; -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// EntityDescriptor for creating ModEventEntityStructs diff --git a/GamecraftModdingAPI/Events/ModEventEntityStruct.cs b/TechbloxModdingAPI/Events/ModEventEntityStruct.cs similarity index 92% rename from GamecraftModdingAPI/Events/ModEventEntityStruct.cs rename to TechbloxModdingAPI/Events/ModEventEntityStruct.cs index cc945ec..9b92bf3 100644 --- a/GamecraftModdingAPI/Events/ModEventEntityStruct.cs +++ b/TechbloxModdingAPI/Events/ModEventEntityStruct.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using Svelto.ECS; -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// The event entity struct diff --git a/GamecraftModdingAPI/Events/SimpleEventEmitterEngine.cs b/TechbloxModdingAPI/Events/SimpleEventEmitterEngine.cs similarity index 96% rename from GamecraftModdingAPI/Events/SimpleEventEmitterEngine.cs rename to TechbloxModdingAPI/Events/SimpleEventEmitterEngine.cs index 0ea8170..f80eda1 100644 --- a/GamecraftModdingAPI/Events/SimpleEventEmitterEngine.cs +++ b/TechbloxModdingAPI/Events/SimpleEventEmitterEngine.cs @@ -5,9 +5,9 @@ using System.Text; using System.Threading.Tasks; using Svelto.ECS; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// A simple implementation of IEventEmitterEngine sufficient for most uses diff --git a/GamecraftModdingAPI/Events/SimpleEventHandlerEngine.cs b/TechbloxModdingAPI/Events/SimpleEventHandlerEngine.cs similarity index 98% rename from GamecraftModdingAPI/Events/SimpleEventHandlerEngine.cs rename to TechbloxModdingAPI/Events/SimpleEventHandlerEngine.cs index ebce21d..7cfd979 100644 --- a/GamecraftModdingAPI/Events/SimpleEventHandlerEngine.cs +++ b/TechbloxModdingAPI/Events/SimpleEventHandlerEngine.cs @@ -5,10 +5,9 @@ using System.Text; using System.Threading.Tasks; using Svelto.ECS; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Events +namespace TechbloxModdingAPI.Events { /// /// A simple implementation of IEventHandlerEngine sufficient for most uses diff --git a/GamecraftModdingAPI/FlyCam.cs b/TechbloxModdingAPI/FlyCam.cs similarity index 97% rename from GamecraftModdingAPI/FlyCam.cs rename to TechbloxModdingAPI/FlyCam.cs index be9955f..b72b174 100644 --- a/GamecraftModdingAPI/FlyCam.cs +++ b/TechbloxModdingAPI/FlyCam.cs @@ -1,13 +1,12 @@ -using GamecraftModdingAPI.Players; -using GamecraftModdingAPI.Utility; - using RobocraftX.Physics; using Svelto.ECS.EntityStructs; using Techblox.FlyCam; +using TechbloxModdingAPI.Players; +using TechbloxModdingAPI.Utility; using Unity.Mathematics; using UnityEngine; -namespace GamecraftModdingAPI +namespace TechbloxModdingAPI { public class FlyCam { diff --git a/GamecraftModdingAPI/GamecraftModdingAPIException.cs b/TechbloxModdingAPI/GamecraftModdingAPIException.cs similarity index 94% rename from GamecraftModdingAPI/GamecraftModdingAPIException.cs rename to TechbloxModdingAPI/GamecraftModdingAPIException.cs index bc944aa..0b4f7d5 100644 --- a/GamecraftModdingAPI/GamecraftModdingAPIException.cs +++ b/TechbloxModdingAPI/GamecraftModdingAPIException.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace GamecraftModdingAPI +namespace TechbloxModdingAPI { public class GamecraftModdingAPIException : Exception { diff --git a/GamecraftModdingAPI/Input/FakeInput.cs b/TechbloxModdingAPI/Input/FakeInput.cs similarity index 99% rename from GamecraftModdingAPI/Input/FakeInput.cs rename to TechbloxModdingAPI/Input/FakeInput.cs index 031a841..6104a4e 100644 --- a/GamecraftModdingAPI/Input/FakeInput.cs +++ b/TechbloxModdingAPI/Input/FakeInput.cs @@ -3,10 +3,9 @@ using RobocraftX.Common; using RobocraftX.Common.Input; using Svelto.ECS; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Input +namespace TechbloxModdingAPI.Input { public static class FakeInput { diff --git a/GamecraftModdingAPI/Input/FakeInputEngine.cs b/TechbloxModdingAPI/Input/FakeInputEngine.cs similarity index 96% rename from GamecraftModdingAPI/Input/FakeInputEngine.cs rename to TechbloxModdingAPI/Input/FakeInputEngine.cs index 9b85c97..0a41fb2 100644 --- a/GamecraftModdingAPI/Input/FakeInputEngine.cs +++ b/TechbloxModdingAPI/Input/FakeInputEngine.cs @@ -5,10 +5,10 @@ using RobocraftX.Common.Input; using RobocraftX.Players; using Svelto.ECS; -using GamecraftModdingAPI.Utility; -using GamecraftModdingAPI.Engines; +using TechbloxModdingAPI.Utility; +using TechbloxModdingAPI.Engines; -namespace GamecraftModdingAPI.Input +namespace TechbloxModdingAPI.Input { public class FakeInputEngine : IApiEngine { diff --git a/GamecraftModdingAPI/Interface/IMGUI/Button.cs b/TechbloxModdingAPI/Interface/IMGUI/Button.cs similarity index 98% rename from GamecraftModdingAPI/Interface/IMGUI/Button.cs rename to TechbloxModdingAPI/Interface/IMGUI/Button.cs index 5a119f6..de8e7cc 100644 --- a/GamecraftModdingAPI/Interface/IMGUI/Button.cs +++ b/TechbloxModdingAPI/Interface/IMGUI/Button.cs @@ -2,7 +2,7 @@ using System; using Unity.Mathematics; using UnityEngine; -namespace GamecraftModdingAPI.Interface.IMGUI +namespace TechbloxModdingAPI.Interface.IMGUI { /// /// A clickable button. diff --git a/GamecraftModdingAPI/Interface/IMGUI/Constants.cs b/TechbloxModdingAPI/Interface/IMGUI/Constants.cs similarity index 98% rename from GamecraftModdingAPI/Interface/IMGUI/Constants.cs rename to TechbloxModdingAPI/Interface/IMGUI/Constants.cs index 42a7f18..a34d8fe 100644 --- a/GamecraftModdingAPI/Interface/IMGUI/Constants.cs +++ b/TechbloxModdingAPI/Interface/IMGUI/Constants.cs @@ -3,7 +3,7 @@ using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Reflection; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI.Utility; using HarmonyLib; using Svelto.Tasks; using Svelto.Tasks.Lean; @@ -11,7 +11,7 @@ using UnityEngine; using UnityEngine.AddressableAssets; using UnityEngine.ResourceManagement.AsyncOperations; -namespace GamecraftModdingAPI.Interface.IMGUI +namespace TechbloxModdingAPI.Interface.IMGUI { /// /// Convenient IMGUI values. diff --git a/GamecraftModdingAPI/Interface/IMGUI/Group.cs b/TechbloxModdingAPI/Interface/IMGUI/Group.cs similarity index 96% rename from GamecraftModdingAPI/Interface/IMGUI/Group.cs rename to TechbloxModdingAPI/Interface/IMGUI/Group.cs index 7033dee..bbbbdf1 100644 --- a/GamecraftModdingAPI/Interface/IMGUI/Group.cs +++ b/TechbloxModdingAPI/Interface/IMGUI/Group.cs @@ -1,9 +1,9 @@ using System; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI.Utility; using Svelto.DataStructures; using UnityEngine; -namespace GamecraftModdingAPI.Interface.IMGUI +namespace TechbloxModdingAPI.Interface.IMGUI { /// /// A group of elements. @@ -80,7 +80,7 @@ namespace GamecraftModdingAPI.Interface.IMGUI } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The rectangular area to use in the window. /// Name of the group. diff --git a/GamecraftModdingAPI/Interface/IMGUI/IMGUIManager.cs b/TechbloxModdingAPI/Interface/IMGUI/IMGUIManager.cs similarity index 97% rename from GamecraftModdingAPI/Interface/IMGUI/IMGUIManager.cs rename to TechbloxModdingAPI/Interface/IMGUI/IMGUIManager.cs index a4bb6d2..d4f3bb7 100644 --- a/GamecraftModdingAPI/Interface/IMGUI/IMGUIManager.cs +++ b/TechbloxModdingAPI/Interface/IMGUI/IMGUIManager.cs @@ -1,8 +1,8 @@ using System; using System.Collections; using System.Collections.Generic; -using GamecraftModdingAPI.App; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI.App; +using TechbloxModdingAPI.Utility; using Rewired.Internal; using Svelto.DataStructures; using Svelto.Tasks; @@ -10,7 +10,7 @@ using Svelto.Tasks.ExtraLean; using Svelto.Tasks.ExtraLean.Unity; using UnityEngine; -namespace GamecraftModdingAPI.Interface.IMGUI +namespace TechbloxModdingAPI.Interface.IMGUI { /// /// Keeps track of UIElement instances. diff --git a/GamecraftModdingAPI/Interface/IMGUI/Image.cs b/TechbloxModdingAPI/Interface/IMGUI/Image.cs similarity index 89% rename from GamecraftModdingAPI/Interface/IMGUI/Image.cs rename to TechbloxModdingAPI/Interface/IMGUI/Image.cs index b4fac9f..2bea1f4 100644 --- a/GamecraftModdingAPI/Interface/IMGUI/Image.cs +++ b/TechbloxModdingAPI/Interface/IMGUI/Image.cs @@ -1,6 +1,6 @@ using UnityEngine; -namespace GamecraftModdingAPI.Interface.IMGUI +namespace TechbloxModdingAPI.Interface.IMGUI { /// /// An image. @@ -44,7 +44,7 @@ namespace GamecraftModdingAPI.Interface.IMGUI public bool Enabled { set; get; } = true; /// - /// Initializes a new instance of the class with automatic layout. + /// Initializes a new instance of the class with automatic layout. /// /// Image to display. /// The element's name. @@ -72,7 +72,7 @@ namespace GamecraftModdingAPI.Interface.IMGUI } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Rectangular area for the image. /// Image to display. diff --git a/GamecraftModdingAPI/Interface/IMGUI/Label.cs b/TechbloxModdingAPI/Interface/IMGUI/Label.cs similarity index 88% rename from GamecraftModdingAPI/Interface/IMGUI/Label.cs rename to TechbloxModdingAPI/Interface/IMGUI/Label.cs index 2483e3d..960a6ca 100644 --- a/GamecraftModdingAPI/Interface/IMGUI/Label.cs +++ b/TechbloxModdingAPI/Interface/IMGUI/Label.cs @@ -1,6 +1,6 @@ using UnityEngine; -namespace GamecraftModdingAPI.Interface.IMGUI +namespace TechbloxModdingAPI.Interface.IMGUI { /// /// A simple text label. @@ -43,7 +43,7 @@ namespace GamecraftModdingAPI.Interface.IMGUI public bool Enabled { set; get; } = true; /// - /// Initializes a new instance of the class with automatic layout. + /// Initializes a new instance of the class with automatic layout. /// /// Initial string to display on the label. /// The element's name. @@ -63,7 +63,7 @@ namespace GamecraftModdingAPI.Interface.IMGUI } /// - /// Initializes a new instance of the . + /// Initializes a new instance of the . /// /// Rectangular area for the label. /// Initial string to display on the label. diff --git a/GamecraftModdingAPI/Interface/IMGUI/Text.cs b/TechbloxModdingAPI/Interface/IMGUI/Text.cs similarity index 98% rename from GamecraftModdingAPI/Interface/IMGUI/Text.cs rename to TechbloxModdingAPI/Interface/IMGUI/Text.cs index 1b94804..bdf6738 100644 --- a/GamecraftModdingAPI/Interface/IMGUI/Text.cs +++ b/TechbloxModdingAPI/Interface/IMGUI/Text.cs @@ -1,7 +1,7 @@ using System; using UnityEngine; -namespace GamecraftModdingAPI.Interface.IMGUI +namespace TechbloxModdingAPI.Interface.IMGUI { /// /// A text input field. diff --git a/GamecraftModdingAPI/Interface/IMGUI/UIElement.cs b/TechbloxModdingAPI/Interface/IMGUI/UIElement.cs similarity index 94% rename from GamecraftModdingAPI/Interface/IMGUI/UIElement.cs rename to TechbloxModdingAPI/Interface/IMGUI/UIElement.cs index abaed6e..dd66af6 100644 --- a/GamecraftModdingAPI/Interface/IMGUI/UIElement.cs +++ b/TechbloxModdingAPI/Interface/IMGUI/UIElement.cs @@ -1,6 +1,6 @@ using System; -namespace GamecraftModdingAPI.Interface.IMGUI +namespace TechbloxModdingAPI.Interface.IMGUI { /// /// GUI Element like a text field, button or picture. diff --git a/GamecraftModdingAPI/Inventory/Hotbar.cs b/TechbloxModdingAPI/Inventory/Hotbar.cs similarity index 92% rename from GamecraftModdingAPI/Inventory/Hotbar.cs rename to TechbloxModdingAPI/Inventory/Hotbar.cs index 838c554..92bca86 100644 --- a/GamecraftModdingAPI/Inventory/Hotbar.cs +++ b/TechbloxModdingAPI/Inventory/Hotbar.cs @@ -2,12 +2,11 @@ using RobocraftX.Common.Input; using RobocraftX.Multiplayer.Input; - -using GamecraftModdingAPI.Blocks; -using GamecraftModdingAPI.Utility; using HarmonyLib; +using TechbloxModdingAPI.Blocks; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Inventory +namespace TechbloxModdingAPI.Inventory { public static class Hotbar { diff --git a/GamecraftModdingAPI/Inventory/HotbarEngine.cs b/TechbloxModdingAPI/Inventory/HotbarEngine.cs similarity index 88% rename from GamecraftModdingAPI/Inventory/HotbarEngine.cs rename to TechbloxModdingAPI/Inventory/HotbarEngine.cs index b20928b..764f535 100644 --- a/GamecraftModdingAPI/Inventory/HotbarEngine.cs +++ b/TechbloxModdingAPI/Inventory/HotbarEngine.cs @@ -8,13 +8,13 @@ using RobocraftX.Common.Input; using RobocraftX.Common.Players; using Svelto.ECS; -using GamecraftModdingAPI.Blocks; -using GamecraftModdingAPI.Utility; -using GamecraftModdingAPI.Engines; +using TechbloxModdingAPI.Blocks; +using TechbloxModdingAPI.Utility; using RobocraftX.Blocks; using Techblox.FlyCam; +using TechbloxModdingAPI.Engines; -namespace GamecraftModdingAPI.Inventory +namespace TechbloxModdingAPI.Inventory { public class HotbarEngine : IApiEngine { diff --git a/GamecraftModdingAPI/Inventory/HotbarSlotSelectionHandlerEnginePatch.cs b/TechbloxModdingAPI/Inventory/HotbarSlotSelectionHandlerEnginePatch.cs similarity index 90% rename from GamecraftModdingAPI/Inventory/HotbarSlotSelectionHandlerEnginePatch.cs rename to TechbloxModdingAPI/Inventory/HotbarSlotSelectionHandlerEnginePatch.cs index 153d82c..1a068f0 100644 --- a/GamecraftModdingAPI/Inventory/HotbarSlotSelectionHandlerEnginePatch.cs +++ b/TechbloxModdingAPI/Inventory/HotbarSlotSelectionHandlerEnginePatch.cs @@ -4,9 +4,9 @@ using System.Reflection; using Svelto.ECS; using HarmonyLib; -using GamecraftModdingAPI.Blocks; +using TechbloxModdingAPI.Blocks; -namespace GamecraftModdingAPI.Inventory +namespace TechbloxModdingAPI.Inventory { [HarmonyPatch] public class HotbarSlotSelectionHandlerEnginePatch diff --git a/GamecraftModdingAPI/Main.cs b/TechbloxModdingAPI/Main.cs similarity index 87% rename from GamecraftModdingAPI/Main.cs rename to TechbloxModdingAPI/Main.cs index 57349de..b81e127 100644 --- a/GamecraftModdingAPI/Main.cs +++ b/TechbloxModdingAPI/Main.cs @@ -7,16 +7,16 @@ using RobocraftX.Schedulers; using RobocraftX.Services; using Svelto.Context; using Svelto.Tasks.ExtraLean; +using TechbloxModdingAPI.App; +using TechbloxModdingAPI.Blocks; +using TechbloxModdingAPI.Events; +using TechbloxModdingAPI.Tasks; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Blocks; -using GamecraftModdingAPI.Utility; -using GamecraftModdingAPI.Events; -using GamecraftModdingAPI.Tasks; - -namespace GamecraftModdingAPI +namespace TechbloxModdingAPI { /// - /// The main class of the GamecraftModdingAPI. + /// The main class of the TechbloxModdingAPI. /// Use this to initialize the API before calling it. /// public static class Main @@ -30,7 +30,7 @@ namespace GamecraftModdingAPI private static int referenceCount = 0; /// - /// Initializes the GamecraftModdingAPI. + /// Initializes the TechbloxModdingAPI. /// Call this as soon as possible after Gamecraft starts up. /// Ideally, this should be called from your main Plugin class's OnApplicationStart() method. /// @@ -40,7 +40,7 @@ namespace GamecraftModdingAPI if (referenceCount > 1) { return; } if (IsInitialized) { - Logging.LogWarning("GamecraftModdingAPI.Main.Init() called but API is already initialized!"); + Logging.LogWarning("TechbloxModdingAPI.Main.Init() called but API is already initialized!"); return; } Logging.MetaDebugLog($"Patching Gamecraft"); @@ -89,8 +89,8 @@ namespace GamecraftModdingAPI Wire.Init(); GameClient.Init(); AsyncUtils.Init(); - GamecraftModdingAPI.App.Client.Init(); - GamecraftModdingAPI.App.Game.Init(); + Client.Init(); + Game.Init(); //CustomBlock.Init(); // init UI Interface.IMGUI.Constants.Init(); @@ -99,7 +99,7 @@ namespace GamecraftModdingAPI } /// - /// Shuts down & cleans up the GamecraftModdingAPI. + /// Shuts down & cleans up the TechbloxModdingAPI. /// Call this as late as possible before Gamecraft quits. /// Ideally, this should be called from your main Plugin class's OnApplicationQuit() method. /// @@ -110,7 +110,7 @@ namespace GamecraftModdingAPI { if (!IsInitialized) { - Logging.LogWarning("GamecraftModdingAPI.Main.Shutdown() called but API is not initialized!"); + Logging.LogWarning("TechbloxModdingAPI.Main.Shutdown() called but API is not initialized!"); return; } Scheduler.Dispose(); @@ -124,7 +124,7 @@ namespace GamecraftModdingAPI private static void OnPatchError() { ErrorBuilder.DisplayMustQuitError("Failed to patch Techblox!\n" + - "Make sure you're using the latest version of GamecraftModdingAPI or disable mods if the API isn't released yet."); + "Make sure you're using the latest version of TechbloxModdingAPI or disable mods if the API isn't released yet."); } } } diff --git a/GamecraftModdingAPI/Persistence/DeserializeFromDiskEntitiesEnginePatch.cs b/TechbloxModdingAPI/Persistence/DeserializeFromDiskEntitiesEnginePatch.cs similarity index 97% rename from GamecraftModdingAPI/Persistence/DeserializeFromDiskEntitiesEnginePatch.cs rename to TechbloxModdingAPI/Persistence/DeserializeFromDiskEntitiesEnginePatch.cs index 0ff675f..f436e56 100644 --- a/GamecraftModdingAPI/Persistence/DeserializeFromDiskEntitiesEnginePatch.cs +++ b/TechbloxModdingAPI/Persistence/DeserializeFromDiskEntitiesEnginePatch.cs @@ -8,9 +8,9 @@ using Svelto.ECS; using Svelto.ECS.Serialization; using HarmonyLib; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Persistence +namespace TechbloxModdingAPI.Persistence { [HarmonyPatch] class DeserializeFromDiskEntitiesEnginePatch diff --git a/GamecraftModdingAPI/Persistence/IEntitySerializer.cs b/TechbloxModdingAPI/Persistence/IEntitySerializer.cs similarity index 94% rename from GamecraftModdingAPI/Persistence/IEntitySerializer.cs rename to TechbloxModdingAPI/Persistence/IEntitySerializer.cs index 5c4fb85..e7fcd5c 100644 --- a/GamecraftModdingAPI/Persistence/IEntitySerializer.cs +++ b/TechbloxModdingAPI/Persistence/IEntitySerializer.cs @@ -3,9 +3,9 @@ using Svelto.ECS; using Svelto.ECS.Serialization; -using GamecraftModdingAPI.Utility; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Persistence +namespace TechbloxModdingAPI.Persistence { /// /// Entity serializer and deserializer interface for storing and retrieving data in a Gamecraft save file (GameSave.GC). diff --git a/GamecraftModdingAPI/Persistence/SaveAndLoadCompositionRootPatch.cs b/TechbloxModdingAPI/Persistence/SaveAndLoadCompositionRootPatch.cs similarity index 90% rename from GamecraftModdingAPI/Persistence/SaveAndLoadCompositionRootPatch.cs rename to TechbloxModdingAPI/Persistence/SaveAndLoadCompositionRootPatch.cs index 58f5708..b3ae6de 100644 --- a/GamecraftModdingAPI/Persistence/SaveAndLoadCompositionRootPatch.cs +++ b/TechbloxModdingAPI/Persistence/SaveAndLoadCompositionRootPatch.cs @@ -5,7 +5,7 @@ using Svelto.ECS; using HarmonyLib; -namespace GamecraftModdingAPI.Persistence +namespace TechbloxModdingAPI.Persistence { [HarmonyPatch(typeof(SaveAndLoadCompositionRoot), "Compose")] class SaveAndLoadCompositionRootPatch diff --git a/GamecraftModdingAPI/Persistence/SaveGameEnginePatch.cs b/TechbloxModdingAPI/Persistence/SaveGameEnginePatch.cs similarity index 94% rename from GamecraftModdingAPI/Persistence/SaveGameEnginePatch.cs rename to TechbloxModdingAPI/Persistence/SaveGameEnginePatch.cs index 0145c09..74edddf 100644 --- a/GamecraftModdingAPI/Persistence/SaveGameEnginePatch.cs +++ b/TechbloxModdingAPI/Persistence/SaveGameEnginePatch.cs @@ -7,11 +7,10 @@ using RobocraftX.SaveAndLoad; using Svelto.DataStructures; using Svelto.ECS; using Svelto.ECS.Serialization; - -using GamecraftModdingAPI.Utility; using HarmonyLib; +using TechbloxModdingAPI.Utility; -namespace GamecraftModdingAPI.Persistence +namespace TechbloxModdingAPI.Persistence { //[HarmonyPatch] - TODO class SaveGameEnginePatch @@ -30,7 +29,7 @@ namespace GamecraftModdingAPI.Persistence BinaryBufferWriter bbw = new BinaryBufferWriter(serializationData.data.ToArrayFast(out uint buffLen), serializationData.dataPos); uint originalPos = serializationData.dataPos; Logging.MetaDebugLog($"dataPos: {originalPos}"); - // Add frame start so it's easier to find GamecraftModdingAPI-serialized components + // Add frame start so it's easier to find TechbloxModdingAPI-serialized components for (int i = 0; i < frameStart.Length; i++) { bbw.Write(frameStart[i]); diff --git a/GamecraftModdingAPI/Persistence/SerializerManager.cs b/TechbloxModdingAPI/Persistence/SerializerManager.cs similarity index 96% rename from GamecraftModdingAPI/Persistence/SerializerManager.cs rename to TechbloxModdingAPI/Persistence/SerializerManager.cs index 161662b..6177d7c 100644 --- a/GamecraftModdingAPI/Persistence/SerializerManager.cs +++ b/TechbloxModdingAPI/Persistence/SerializerManager.cs @@ -4,10 +4,9 @@ using System.Linq; using Svelto.ECS; using Svelto.ECS.Serialization; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Persistence +namespace TechbloxModdingAPI.Persistence { /// /// Keeps track of serializers. diff --git a/GamecraftModdingAPI/Persistence/SimpleEntitySerializer.cs b/TechbloxModdingAPI/Persistence/SimpleEntitySerializer.cs similarity index 98% rename from GamecraftModdingAPI/Persistence/SimpleEntitySerializer.cs rename to TechbloxModdingAPI/Persistence/SimpleEntitySerializer.cs index 59fd9fd..7f605c3 100644 --- a/GamecraftModdingAPI/Persistence/SimpleEntitySerializer.cs +++ b/TechbloxModdingAPI/Persistence/SimpleEntitySerializer.cs @@ -5,7 +5,7 @@ using Svelto.ECS.Serialization; using RobocraftX.Common; -namespace GamecraftModdingAPI.Persistence +namespace TechbloxModdingAPI.Persistence { /// /// Simple entity serializer sufficient for simple entity components. diff --git a/GamecraftModdingAPI/Player.cs b/TechbloxModdingAPI/Player.cs similarity index 97% rename from GamecraftModdingAPI/Player.cs rename to TechbloxModdingAPI/Player.cs index 8b204d0..2c6b122 100644 --- a/GamecraftModdingAPI/Player.cs +++ b/TechbloxModdingAPI/Player.cs @@ -3,11 +3,10 @@ using Unity.Mathematics; using RobocraftX.Common; using RobocraftX.Common.Players; using Svelto.ECS; +using TechbloxModdingAPI.Blocks; +using TechbloxModdingAPI.Players; -using GamecraftModdingAPI.Players; -using GamecraftModdingAPI.Blocks; - -namespace GamecraftModdingAPI +namespace TechbloxModdingAPI { /// /// An in-game player character. Any Leo you see is a player. @@ -68,7 +67,7 @@ namespace GamecraftModdingAPI } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The player's unique identifier. public Player(uint id) @@ -82,7 +81,7 @@ namespace GamecraftModdingAPI } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The player type. Chooses the first available player matching the criteria. public Player(PlayerType player) @@ -252,7 +251,7 @@ namespace GamecraftModdingAPI } /// - /// Whether this is damageable. + /// Whether this is damageable. /// /// true if damageable; otherwise, false. public bool Damageable diff --git a/GamecraftModdingAPI/Players/FlyCamEngine.cs b/TechbloxModdingAPI/Players/FlyCamEngine.cs similarity index 90% rename from GamecraftModdingAPI/Players/FlyCamEngine.cs rename to TechbloxModdingAPI/Players/FlyCamEngine.cs index b8f8cf4..0b98071 100644 --- a/GamecraftModdingAPI/Players/FlyCamEngine.cs +++ b/TechbloxModdingAPI/Players/FlyCamEngine.cs @@ -1,8 +1,8 @@ -using GamecraftModdingAPI.Engines; using Svelto.ECS; using Techblox.FlyCam; +using TechbloxModdingAPI.Engines; -namespace GamecraftModdingAPI.Players +namespace TechbloxModdingAPI.Players { public class FlyCamEngine : IApiEngine { diff --git a/GamecraftModdingAPI/Players/PlayerBuildingMode.cs b/TechbloxModdingAPI/Players/PlayerBuildingMode.cs similarity index 75% rename from GamecraftModdingAPI/Players/PlayerBuildingMode.cs rename to TechbloxModdingAPI/Players/PlayerBuildingMode.cs index c7a5e37..383e1af 100644 --- a/GamecraftModdingAPI/Players/PlayerBuildingMode.cs +++ b/TechbloxModdingAPI/Players/PlayerBuildingMode.cs @@ -1,4 +1,4 @@ -namespace GamecraftModdingAPI.Players +namespace TechbloxModdingAPI.Players { public enum PlayerBuildingMode { diff --git a/GamecraftModdingAPI/Players/PlayerEngine.cs b/TechbloxModdingAPI/Players/PlayerEngine.cs similarity index 99% rename from GamecraftModdingAPI/Players/PlayerEngine.cs rename to TechbloxModdingAPI/Players/PlayerEngine.cs index dfdb580..cc24650 100644 --- a/GamecraftModdingAPI/Players/PlayerEngine.cs +++ b/TechbloxModdingAPI/Players/PlayerEngine.cs @@ -17,13 +17,12 @@ using Techblox.FlyCam; using Unity.Mathematics; using Unity.Physics; using UnityEngine; - -using GamecraftModdingAPI.Engines; using HarmonyLib; using RobocraftX.Common; using Svelto.ECS.DataStructures; +using TechbloxModdingAPI.Engines; -namespace GamecraftModdingAPI.Players +namespace TechbloxModdingAPI.Players { internal class PlayerEngine : IApiEngine, IFactoryEngine { diff --git a/GamecraftModdingAPI/Players/PlayerExceptions.cs b/TechbloxModdingAPI/Players/PlayerExceptions.cs similarity index 92% rename from GamecraftModdingAPI/Players/PlayerExceptions.cs rename to TechbloxModdingAPI/Players/PlayerExceptions.cs index 94312b9..d5bba55 100644 --- a/GamecraftModdingAPI/Players/PlayerExceptions.cs +++ b/TechbloxModdingAPI/Players/PlayerExceptions.cs @@ -1,5 +1,5 @@ using System; -namespace GamecraftModdingAPI.Players +namespace TechbloxModdingAPI.Players { public class PlayerException : GamecraftModdingAPIException { diff --git a/GamecraftModdingAPI/Players/PlayerTests.cs b/TechbloxModdingAPI/Players/PlayerTests.cs similarity index 94% rename from GamecraftModdingAPI/Players/PlayerTests.cs rename to TechbloxModdingAPI/Players/PlayerTests.cs index 1af7992..8086d96 100644 --- a/GamecraftModdingAPI/Players/PlayerTests.cs +++ b/TechbloxModdingAPI/Players/PlayerTests.cs @@ -2,10 +2,10 @@ using Unity.Mathematics; -using GamecraftModdingAPI; -using GamecraftModdingAPI.Tests; +using TechbloxModdingAPI; +using TechbloxModdingAPI.Tests; -namespace GamecraftModdingAPI.Players +namespace TechbloxModdingAPI.Players { #if TEST /// diff --git a/GamecraftModdingAPI/Players/PlayerType.cs b/TechbloxModdingAPI/Players/PlayerType.cs similarity index 70% rename from GamecraftModdingAPI/Players/PlayerType.cs rename to TechbloxModdingAPI/Players/PlayerType.cs index 0b4966c..3e2214f 100644 --- a/GamecraftModdingAPI/Players/PlayerType.cs +++ b/TechbloxModdingAPI/Players/PlayerType.cs @@ -1,5 +1,5 @@ using System; -namespace GamecraftModdingAPI.Players +namespace TechbloxModdingAPI.Players { public enum PlayerType { diff --git a/GamecraftModdingAPI/SimBody.cs b/TechbloxModdingAPI/SimBody.cs similarity index 99% rename from GamecraftModdingAPI/SimBody.cs rename to TechbloxModdingAPI/SimBody.cs index 42812d9..dd7429e 100644 --- a/GamecraftModdingAPI/SimBody.cs +++ b/TechbloxModdingAPI/SimBody.cs @@ -7,7 +7,7 @@ using Gamecraft.Damage; using RobocraftX.Common; using RobocraftX.Physics; -namespace GamecraftModdingAPI +namespace TechbloxModdingAPI { /// /// A rigid body (like a chunk of connected blocks) during simulation. diff --git a/GamecraftModdingAPI/Tasks/ISchedulable.cs b/TechbloxModdingAPI/Tasks/ISchedulable.cs similarity index 92% rename from GamecraftModdingAPI/Tasks/ISchedulable.cs rename to TechbloxModdingAPI/Tasks/ISchedulable.cs index 0b04a3e..679e999 100644 --- a/GamecraftModdingAPI/Tasks/ISchedulable.cs +++ b/TechbloxModdingAPI/Tasks/ISchedulable.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using Svelto.Tasks; -namespace GamecraftModdingAPI.Tasks +namespace TechbloxModdingAPI.Tasks { /// /// Interface for asynchronous tasks diff --git a/GamecraftModdingAPI/Tasks/Once.cs b/TechbloxModdingAPI/Tasks/Once.cs similarity index 96% rename from GamecraftModdingAPI/Tasks/Once.cs rename to TechbloxModdingAPI/Tasks/Once.cs index 52651e6..807dae7 100644 --- a/GamecraftModdingAPI/Tasks/Once.cs +++ b/TechbloxModdingAPI/Tasks/Once.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using Svelto.Tasks; using Svelto.Tasks.Enumerators; -namespace GamecraftModdingAPI.Tasks +namespace TechbloxModdingAPI.Tasks { /// /// An asynchronous task to be performed once. diff --git a/GamecraftModdingAPI/Tasks/Repeatable.cs b/TechbloxModdingAPI/Tasks/Repeatable.cs similarity index 98% rename from GamecraftModdingAPI/Tasks/Repeatable.cs rename to TechbloxModdingAPI/Tasks/Repeatable.cs index 0b9982e..0cafe48 100644 --- a/GamecraftModdingAPI/Tasks/Repeatable.cs +++ b/TechbloxModdingAPI/Tasks/Repeatable.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using Svelto.Tasks; using Svelto.Tasks.Enumerators; -namespace GamecraftModdingAPI.Tasks +namespace TechbloxModdingAPI.Tasks { /// /// An asynchronous repeating task. diff --git a/GamecraftModdingAPI/Tasks/Scheduler.cs b/TechbloxModdingAPI/Tasks/Scheduler.cs similarity index 98% rename from GamecraftModdingAPI/Tasks/Scheduler.cs rename to TechbloxModdingAPI/Tasks/Scheduler.cs index 803bd2f..af47d1d 100644 --- a/GamecraftModdingAPI/Tasks/Scheduler.cs +++ b/TechbloxModdingAPI/Tasks/Scheduler.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using Svelto.Tasks.Lean; using Svelto.Tasks.ExtraLean; -namespace GamecraftModdingAPI.Tasks +namespace TechbloxModdingAPI.Tasks { /// /// Asynchronous task scheduling for ISchedulables. diff --git a/GamecraftModdingAPI/GamecraftModdingAPI.csproj b/TechbloxModdingAPI/TechbloxModdingAPI.csproj similarity index 99% rename from GamecraftModdingAPI/GamecraftModdingAPI.csproj rename to TechbloxModdingAPI/TechbloxModdingAPI.csproj index bd4135c..4624c80 100644 --- a/GamecraftModdingAPI/GamecraftModdingAPI.csproj +++ b/TechbloxModdingAPI/TechbloxModdingAPI.csproj @@ -8,6 +8,7 @@ https://git.exmods.org/modtainers/GamecraftModdingAPI en-CA true + GamecraftModdingAPI diff --git a/GamecraftModdingAPI/Tests/APITestAttributes.cs b/TechbloxModdingAPI/Tests/APITestAttributes.cs similarity index 97% rename from GamecraftModdingAPI/Tests/APITestAttributes.cs rename to TechbloxModdingAPI/Tests/APITestAttributes.cs index cf9da49..0ebe81d 100644 --- a/GamecraftModdingAPI/Tests/APITestAttributes.cs +++ b/TechbloxModdingAPI/Tests/APITestAttributes.cs @@ -1,5 +1,5 @@ using System; -namespace GamecraftModdingAPI.Tests +namespace TechbloxModdingAPI.Tests { /// /// Test type. diff --git a/GamecraftModdingAPI/Tests/Assert.cs b/TechbloxModdingAPI/Tests/Assert.cs similarity index 99% rename from GamecraftModdingAPI/Tests/Assert.cs rename to TechbloxModdingAPI/Tests/Assert.cs index edc1392..f71b132 100644 --- a/GamecraftModdingAPI/Tests/Assert.cs +++ b/TechbloxModdingAPI/Tests/Assert.cs @@ -5,7 +5,7 @@ using System.Runtime.CompilerServices; using Unity.Mathematics; -namespace GamecraftModdingAPI.Tests +namespace TechbloxModdingAPI.Tests { /// /// API test system assertion utilities. diff --git a/GamecraftModdingAPI/Tests/GamecraftModdingAPIPluginTest.cs b/TechbloxModdingAPI/Tests/GamecraftModdingAPIPluginTest.cs similarity index 94% rename from GamecraftModdingAPI/Tests/GamecraftModdingAPIPluginTest.cs rename to TechbloxModdingAPI/Tests/GamecraftModdingAPIPluginTest.cs index 75079a8..292f769 100644 --- a/GamecraftModdingAPI/Tests/GamecraftModdingAPIPluginTest.cs +++ b/TechbloxModdingAPI/Tests/GamecraftModdingAPIPluginTest.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Reflection; using System.Reflection.Emit; using System.Text; -using GamecraftModdingAPI.App; +using TechbloxModdingAPI.App; using HarmonyLib; using IllusionInjector; // test @@ -21,15 +21,8 @@ using UnityEngine; using RobocraftX.Schedulers; using Svelto.Tasks.ExtraLean; using uREPL; - -using GamecraftModdingAPI.Commands; -using GamecraftModdingAPI.Events; -using GamecraftModdingAPI.Utility; -using GamecraftModdingAPI.Blocks; -using GamecraftModdingAPI.Input; -using GamecraftModdingAPI.Interface.IMGUI; -using GamecraftModdingAPI.Players; -using GamecraftModdingAPI.Tasks; +using TechbloxModdingAPI.Interface.IMGUI; +using TechbloxModdingAPI.Tasks; using RobocraftX.Common.Input; using RobocraftX.CR.MainGame; using RobocraftX.GUI.CommandLine; @@ -38,23 +31,29 @@ using RobocraftX.StateSync; using Svelto.Context; using Svelto.DataStructures; using Svelto.Services; +using TechbloxModdingAPI.Blocks; +using TechbloxModdingAPI.Commands; +using TechbloxModdingAPI.Events; +using TechbloxModdingAPI.Input; +using TechbloxModdingAPI.Players; +using TechbloxModdingAPI.Utility; using UnityEngine.AddressableAssets; using UnityEngine.AddressableAssets.ResourceLocators; using UnityEngine.ResourceManagement.AsyncOperations; using UnityEngine.ResourceManagement.ResourceLocations; using UnityEngine.ResourceManagement.ResourceProviders; using Debug = FMOD.Debug; -using EventType = GamecraftModdingAPI.Events.EventType; -using Label = GamecraftModdingAPI.Interface.IMGUI.Label; +using EventType = TechbloxModdingAPI.Events.EventType; +using Label = TechbloxModdingAPI.Interface.IMGUI.Label; using ScalingPermission = DataLoader.ScalingPermission; -namespace GamecraftModdingAPI.Tests +namespace TechbloxModdingAPI.Tests { #if DEBUG // unused by design /// /// Modding API implemented as a standalone IPA Plugin. - /// Ideally, GamecraftModdingAPI should be loaded by another mod; not itself + /// Ideally, TechbloxModdingAPI should be loaded by another mod; not itself /// public class GamecraftModdingAPIPluginTest : IllusionPlugin.IEnhancedPlugin { @@ -69,14 +68,14 @@ namespace GamecraftModdingAPI.Tests public override void OnApplicationQuit() { - GamecraftModdingAPI.Main.Shutdown(); + Main.Shutdown(); } public override void OnApplicationStart() { FileLog.Reset(); Harmony.DEBUG = true; - GamecraftModdingAPI.Main.Init(); + Main.Init(); Logging.MetaDebugLog($"Version group id {(uint)ApiExclusiveGroups.versionGroup}"); // in case Steam is not installed/running // this will crash the game slightly later during startup @@ -173,7 +172,7 @@ namespace GamecraftModdingAPI.Tests foreach (var block in Block.GetLastPlacedBlock().GetConnectedCubes()) block.Position += new Unity.Mathematics.float3(x, y, z); else - GamecraftModdingAPI.Utility.Logging.CommandLogError("Blocks can only be moved in Build mode!"); + Logging.CommandLogError("Blocks can only be moved in Build mode!"); }).Build(); CommandBuilder.Builder() @@ -328,12 +327,12 @@ namespace GamecraftModdingAPI.Tests "SetFOV", "Set the player camera's field of view")); CommandManager.AddCommand(new SimpleCustomCommandEngine( (x, y, z) => { - bool success = GamecraftModdingAPI.Blocks.Movement.MoveConnectedBlocks( - GamecraftModdingAPI.Blocks.BlockIdentifiers.LatestBlockID, + bool success = TechbloxModdingAPI.Blocks.Movement.MoveConnectedBlocks( + TechbloxModdingAPI.Blocks.BlockIdentifiers.LatestBlockID, new Unity.Mathematics.float3(x, y, z)); if (!success) { - GamecraftModdingAPI.Utility.Logging.CommandLogError("Blocks can only be moved in Build mode!"); + TechbloxModdingAPI.Utility.Logging.CommandLogError("Blocks can only be moved in Build mode!"); } }, "MoveLastBlock", "Move the most-recently-placed block, and any connected blocks by the given offset")); CommandManager.AddCommand(new SimpleCustomCommandEngine( diff --git a/GamecraftModdingAPI/Tests/TestRoot.cs b/TechbloxModdingAPI/Tests/TestRoot.cs similarity index 96% rename from GamecraftModdingAPI/Tests/TestRoot.cs rename to TechbloxModdingAPI/Tests/TestRoot.cs index 22f3035..878fdda 100644 --- a/GamecraftModdingAPI/Tests/TestRoot.cs +++ b/TechbloxModdingAPI/Tests/TestRoot.cs @@ -8,12 +8,11 @@ using Svelto.Tasks; using Svelto.Tasks.Lean; using Svelto.Tasks.Enumerators; using UnityEngine; +using TechbloxModdingAPI.App; +using TechbloxModdingAPI.Tasks; +using TechbloxModdingAPI.Utility; -using GamecraftModdingAPI.App; -using GamecraftModdingAPI.Tasks; -using GamecraftModdingAPI.Utility; - -namespace GamecraftModdingAPI.Tests +namespace TechbloxModdingAPI.Tests { /// /// API test system root class. @@ -276,7 +275,7 @@ namespace GamecraftModdingAPI.Tests /// /// Runs the tests. /// - /// Assembly to search for tests. When set to null, this uses the GamecraftModdingAPI assembly. + /// Assembly to search for tests. When set to null, this uses the TechbloxModdingAPI assembly. public static void RunTests(Assembly asm = null) { if (asm == null) asm = Assembly.GetExecutingAssembly(); @@ -285,7 +284,7 @@ namespace GamecraftModdingAPI.Tests // log metadata Assert.Log($"Unity {Application.unityVersion}"); Assert.Log($"Gamecraft {Application.version}"); - Assert.Log($"GamecraftModdingAPI {Assembly.GetExecutingAssembly().GetName().Version}"); + Assert.Log($"TechbloxModdingAPI {Assembly.GetExecutingAssembly().GetName().Version}"); Assert.Log($"Testing {asm.GetName().Name} {asm.GetName().Version}"); Assert.Log($"START: --- {DateTime.Now.ToString()} --- ({testTypes.Count} tests classes detected)"); StartUp(); diff --git a/GamecraftModdingAPI/Tests/TestTest.cs b/TechbloxModdingAPI/Tests/TestTest.cs similarity index 96% rename from GamecraftModdingAPI/Tests/TestTest.cs rename to TechbloxModdingAPI/Tests/TestTest.cs index 02eeda0..5e0ed46 100644 --- a/GamecraftModdingAPI/Tests/TestTest.cs +++ b/TechbloxModdingAPI/Tests/TestTest.cs @@ -4,7 +4,7 @@ using System.Reflection; using HarmonyLib; -namespace GamecraftModdingAPI.Tests +namespace TechbloxModdingAPI.Tests { #if TEST /// diff --git a/GamecraftModdingAPI/Utility/ApiExclusiveGroups.cs b/TechbloxModdingAPI/Utility/ApiExclusiveGroups.cs similarity index 74% rename from GamecraftModdingAPI/Utility/ApiExclusiveGroups.cs rename to TechbloxModdingAPI/Utility/ApiExclusiveGroups.cs index 8dc052d..a451673 100644 --- a/GamecraftModdingAPI/Utility/ApiExclusiveGroups.cs +++ b/TechbloxModdingAPI/Utility/ApiExclusiveGroups.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using Svelto.ECS; -namespace GamecraftModdingAPI.Utility +namespace TechbloxModdingAPI.Utility { public static class ApiExclusiveGroups { @@ -18,7 +18,7 @@ namespace GamecraftModdingAPI.Utility { if (_eventsExclusiveGroup == null) { - _eventsExclusiveGroup = new ExclusiveGroup("GamecraftModdingAPI EventGroup"); + _eventsExclusiveGroup = new ExclusiveGroup("TechbloxModdingAPI EventGroup"); } return _eventsExclusiveGroup; } @@ -34,7 +34,7 @@ namespace GamecraftModdingAPI.Utility { if (_versionGroup == null) { - _versionGroup = new ExclusiveGroup("GamecraftModdingAPI VersionGroup"); + _versionGroup = new ExclusiveGroup("TechbloxModdingAPI VersionGroup"); } return _versionGroup; } @@ -47,7 +47,7 @@ namespace GamecraftModdingAPI.Utility get { if (_customBlockGroup == null) - _customBlockGroup = new ExclusiveGroup("GamecraftModdingAPI CustomBlockGroup"); + _customBlockGroup = new ExclusiveGroup("TechbloxModdingAPI CustomBlockGroup"); return _customBlockGroup; } } diff --git a/GamecraftModdingAPI/Utility/AsyncUtils.cs b/TechbloxModdingAPI/Utility/AsyncUtils.cs similarity index 95% rename from GamecraftModdingAPI/Utility/AsyncUtils.cs rename to TechbloxModdingAPI/Utility/AsyncUtils.cs index 8fed9ee..4894515 100644 --- a/GamecraftModdingAPI/Utility/AsyncUtils.cs +++ b/TechbloxModdingAPI/Utility/AsyncUtils.cs @@ -2,7 +2,7 @@ using Svelto.ECS; -namespace GamecraftModdingAPI.Utility +namespace TechbloxModdingAPI.Utility { public static class AsyncUtils { diff --git a/GamecraftModdingAPI/Utility/AsyncUtilsEngine.cs b/TechbloxModdingAPI/Utility/AsyncUtilsEngine.cs similarity index 96% rename from GamecraftModdingAPI/Utility/AsyncUtilsEngine.cs rename to TechbloxModdingAPI/Utility/AsyncUtilsEngine.cs index 7b6ef1e..b9e6ad3 100644 --- a/GamecraftModdingAPI/Utility/AsyncUtilsEngine.cs +++ b/TechbloxModdingAPI/Utility/AsyncUtilsEngine.cs @@ -4,10 +4,9 @@ using System.Threading.Tasks; using RobocraftX.Schedulers; using Svelto.ECS; using Svelto.Tasks.ExtraLean; +using TechbloxModdingAPI.Engines; -using GamecraftModdingAPI.Engines; - -namespace GamecraftModdingAPI.Utility +namespace TechbloxModdingAPI.Utility { public class AsyncUtilsEngine : IApiEngine { diff --git a/GamecraftModdingAPI/Utility/Audio.cs b/TechbloxModdingAPI/Utility/Audio.cs similarity index 97% rename from GamecraftModdingAPI/Utility/Audio.cs rename to TechbloxModdingAPI/Utility/Audio.cs index b2566f2..71b7f66 100644 --- a/GamecraftModdingAPI/Utility/Audio.cs +++ b/TechbloxModdingAPI/Utility/Audio.cs @@ -6,7 +6,7 @@ using FMODUnity; using RobocraftX.Common.Audio; using Unity.Mathematics; -namespace GamecraftModdingAPI.Utility +namespace TechbloxModdingAPI.Utility { public class Audio { diff --git a/GamecraftModdingAPI/Utility/AudioTools.cs b/TechbloxModdingAPI/Utility/AudioTools.cs similarity index 98% rename from GamecraftModdingAPI/Utility/AudioTools.cs rename to TechbloxModdingAPI/Utility/AudioTools.cs index 4d4af0d..6f78feb 100644 --- a/GamecraftModdingAPI/Utility/AudioTools.cs +++ b/TechbloxModdingAPI/Utility/AudioTools.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using FMODUnity; using FMOD.Studio; -namespace GamecraftModdingAPI.Utility +namespace TechbloxModdingAPI.Utility { /// /// Common operations on audio objects diff --git a/GamecraftModdingAPI/Utility/DebugInterfaceEngine.cs b/TechbloxModdingAPI/Utility/DebugInterfaceEngine.cs similarity index 94% rename from GamecraftModdingAPI/Utility/DebugInterfaceEngine.cs rename to TechbloxModdingAPI/Utility/DebugInterfaceEngine.cs index 9c14075..24d59b3 100644 --- a/GamecraftModdingAPI/Utility/DebugInterfaceEngine.cs +++ b/TechbloxModdingAPI/Utility/DebugInterfaceEngine.cs @@ -5,15 +5,15 @@ using System.Reflection; using System.Reflection.Emit; using System.Text; using System.Text.Formatting; -using GamecraftModdingAPI.Blocks; -using GamecraftModdingAPI.Engines; -using GamecraftModdingAPI.Players; +using TechbloxModdingAPI.Blocks; +using TechbloxModdingAPI.Players; using HarmonyLib; using RobocraftX.GUI.Debug; using Svelto.ECS; using Svelto.ECS.Experimental; +using TechbloxModdingAPI.Engines; -namespace GamecraftModdingAPI.Utility +namespace TechbloxModdingAPI.Utility { public class DebugInterfaceEngine : IApiEngine { diff --git a/GamecraftModdingAPI/Utility/Dependency.cs b/TechbloxModdingAPI/Utility/Dependency.cs similarity index 98% rename from GamecraftModdingAPI/Utility/Dependency.cs rename to TechbloxModdingAPI/Utility/Dependency.cs index c7dd64d..3f33277 100644 --- a/GamecraftModdingAPI/Utility/Dependency.cs +++ b/TechbloxModdingAPI/Utility/Dependency.cs @@ -3,7 +3,7 @@ using IllusionInjector; using IllusionPlugin; -namespace GamecraftModdingAPI.Utility +namespace TechbloxModdingAPI.Utility { /// /// Simple plugin interaction operations diff --git a/GamecraftModdingAPI/Utility/ExceptionUtil.cs b/TechbloxModdingAPI/Utility/ExceptionUtil.cs similarity index 92% rename from GamecraftModdingAPI/Utility/ExceptionUtil.cs rename to TechbloxModdingAPI/Utility/ExceptionUtil.cs index 63d0fef..0809e43 100644 --- a/GamecraftModdingAPI/Utility/ExceptionUtil.cs +++ b/TechbloxModdingAPI/Utility/ExceptionUtil.cs @@ -1,7 +1,7 @@ using System; -using GamecraftModdingAPI.Events; +using TechbloxModdingAPI.Events; -namespace GamecraftModdingAPI.Utility +namespace TechbloxModdingAPI.Utility { public static class ExceptionUtil { diff --git a/GamecraftModdingAPI/Utility/FullGameFields.cs b/TechbloxModdingAPI/Utility/FullGameFields.cs similarity index 98% rename from GamecraftModdingAPI/Utility/FullGameFields.cs rename to TechbloxModdingAPI/Utility/FullGameFields.cs index ccf80de..e27f501 100644 --- a/GamecraftModdingAPI/Utility/FullGameFields.cs +++ b/TechbloxModdingAPI/Utility/FullGameFields.cs @@ -19,7 +19,7 @@ using UnityEngine; using Unity.Entities; using Unity.Physics.Systems; -namespace GamecraftModdingAPI.Utility +namespace TechbloxModdingAPI.Utility { /// /// Public access to the private variables in RobocraftX.FullGameCompositionRoot diff --git a/GamecraftModdingAPI/Utility/GameClient.cs b/TechbloxModdingAPI/Utility/GameClient.cs similarity index 93% rename from GamecraftModdingAPI/Utility/GameClient.cs rename to TechbloxModdingAPI/Utility/GameClient.cs index 98d8ccb..f63b270 100644 --- a/GamecraftModdingAPI/Utility/GameClient.cs +++ b/TechbloxModdingAPI/Utility/GameClient.cs @@ -1,7 +1,7 @@ using System; -using GamecraftModdingAPI.Blocks; +using TechbloxModdingAPI.Blocks; -namespace GamecraftModdingAPI.Utility +namespace TechbloxModdingAPI.Utility { public static class GameClient { diff --git a/GamecraftModdingAPI/Utility/GameEngineManager.cs b/TechbloxModdingAPI/Utility/GameEngineManager.cs similarity index 96% rename from GamecraftModdingAPI/Utility/GameEngineManager.cs rename to TechbloxModdingAPI/Utility/GameEngineManager.cs index cc4973f..603170c 100644 --- a/GamecraftModdingAPI/Utility/GameEngineManager.cs +++ b/TechbloxModdingAPI/Utility/GameEngineManager.cs @@ -5,10 +5,9 @@ using System.Text; using System.Threading.Tasks; using Svelto.ECS; +using TechbloxModdingAPI.Engines; -using GamecraftModdingAPI.Engines; - -namespace GamecraftModdingAPI.Utility +namespace TechbloxModdingAPI.Utility { /// /// Keeps track of custom game-modifying engines diff --git a/GamecraftModdingAPI/Utility/GameState.cs b/TechbloxModdingAPI/Utility/GameState.cs similarity index 97% rename from GamecraftModdingAPI/Utility/GameState.cs rename to TechbloxModdingAPI/Utility/GameState.cs index ed096c4..50dfb83 100644 --- a/GamecraftModdingAPI/Utility/GameState.cs +++ b/TechbloxModdingAPI/Utility/GameState.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace GamecraftModdingAPI.Utility +namespace TechbloxModdingAPI.Utility { /// /// Utility to get the state of the current Gamecraft game diff --git a/GamecraftModdingAPI/Utility/GameStateEngine.cs b/TechbloxModdingAPI/Utility/GameStateEngine.cs similarity index 92% rename from GamecraftModdingAPI/Utility/GameStateEngine.cs rename to TechbloxModdingAPI/Utility/GameStateEngine.cs index be20ba1..3861d00 100644 --- a/GamecraftModdingAPI/Utility/GameStateEngine.cs +++ b/TechbloxModdingAPI/Utility/GameStateEngine.cs @@ -6,10 +6,9 @@ using System.Text; using System.Threading.Tasks; using RobocraftX.SimulationModeState; +using TechbloxModdingAPI.Engines; -using GamecraftModdingAPI.Engines; - -namespace GamecraftModdingAPI.Utility +namespace TechbloxModdingAPI.Utility { class GameStateEngine : IApiEngine { diff --git a/GamecraftModdingAPI/Utility/Logging.cs b/TechbloxModdingAPI/Utility/Logging.cs similarity index 99% rename from GamecraftModdingAPI/Utility/Logging.cs rename to TechbloxModdingAPI/Utility/Logging.cs index 80ef323..d28fd76 100644 --- a/GamecraftModdingAPI/Utility/Logging.cs +++ b/TechbloxModdingAPI/Utility/Logging.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace GamecraftModdingAPI.Utility +namespace TechbloxModdingAPI.Utility { /// /// Utility class to access Gamecraft's built-in logging capabilities. diff --git a/GamecraftModdingAPI/Utility/MenuEngineManager.cs b/TechbloxModdingAPI/Utility/MenuEngineManager.cs similarity index 96% rename from GamecraftModdingAPI/Utility/MenuEngineManager.cs rename to TechbloxModdingAPI/Utility/MenuEngineManager.cs index 9be203d..c3dd29c 100644 --- a/GamecraftModdingAPI/Utility/MenuEngineManager.cs +++ b/TechbloxModdingAPI/Utility/MenuEngineManager.cs @@ -5,10 +5,9 @@ using System.Text; using System.Threading.Tasks; using Svelto.ECS; +using TechbloxModdingAPI.Engines; -using GamecraftModdingAPI.Engines; - -namespace GamecraftModdingAPI.Utility +namespace TechbloxModdingAPI.Utility { /// /// Keeps track of custom menu-modifying engines diff --git a/GamecraftModdingAPI/Utility/OptionalRef.cs b/TechbloxModdingAPI/Utility/OptionalRef.cs similarity index 96% rename from GamecraftModdingAPI/Utility/OptionalRef.cs rename to TechbloxModdingAPI/Utility/OptionalRef.cs index 4ac293d..7210d22 100644 --- a/GamecraftModdingAPI/Utility/OptionalRef.cs +++ b/TechbloxModdingAPI/Utility/OptionalRef.cs @@ -3,11 +3,11 @@ using System.Collections; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; -using GamecraftModdingAPI.Blocks; +using TechbloxModdingAPI.Blocks; using Svelto.DataStructures; using Svelto.ECS; -namespace GamecraftModdingAPI +namespace TechbloxModdingAPI { public struct OptionalRef where T : unmanaged { diff --git a/GamecraftModdingAPI/Utility/VersionTracking.cs b/TechbloxModdingAPI/Utility/VersionTracking.cs similarity index 96% rename from GamecraftModdingAPI/Utility/VersionTracking.cs rename to TechbloxModdingAPI/Utility/VersionTracking.cs index 32b86dc..82d39d3 100644 --- a/GamecraftModdingAPI/Utility/VersionTracking.cs +++ b/TechbloxModdingAPI/Utility/VersionTracking.cs @@ -4,11 +4,10 @@ using System.Reflection; using RobocraftX.Common; using Svelto.ECS; using Svelto.ECS.Serialization; +using TechbloxModdingAPI.Events; +using TechbloxModdingAPI.Persistence; -using GamecraftModdingAPI.Persistence; -using GamecraftModdingAPI.Events; - -namespace GamecraftModdingAPI.Utility +namespace TechbloxModdingAPI.Utility { /// /// Tracks the API version the current game was built for.