Browse Source

Rename to TechbloxModdingAPI

tags/v2.0.0
NorbiPeti 3 years ago
parent
commit
a6f52070ee
Signed by: NorbiPeti <szatmari.norbert.peter@gmail.com> GPG Key ID: DBA4C4549A927E56
100 changed files with 227 additions and 261 deletions
  1. +1
    -1
      GamecraftModdingAPI.sln
  2. +2
    -2
      TechbloxModdingAPI/App/AppCallbacksTest.cs
  3. +3
    -4
      TechbloxModdingAPI/App/AppEngine.cs
  4. +1
    -1
      TechbloxModdingAPI/App/AppExceptions.cs
  5. +5
    -6
      TechbloxModdingAPI/App/Client.cs
  6. +2
    -2
      TechbloxModdingAPI/App/ClientAlertTest.cs
  7. +1
    -1
      TechbloxModdingAPI/App/CurrentGameMode.cs
  8. +8
    -8
      TechbloxModdingAPI/App/Game.cs
  9. +3
    -4
      TechbloxModdingAPI/App/GameBuildSimEventEngine.cs
  10. +4
    -5
      TechbloxModdingAPI/App/GameGameEngine.cs
  11. +3
    -4
      TechbloxModdingAPI/App/GameMenuEngine.cs
  12. +1
    -1
      TechbloxModdingAPI/App/StateSyncRegPatch.cs
  13. +1
    -1
      TechbloxModdingAPI/App/UserPrompts.cs
  14. +4
    -5
      TechbloxModdingAPI/Block.cs
  15. +3
    -4
      TechbloxModdingAPI/BlockGroup.cs
  16. +2
    -2
      TechbloxModdingAPI/Blocks/BlockCloneEngine.cs
  17. +1
    -1
      TechbloxModdingAPI/Blocks/BlockColor.cs
  18. +2
    -3
      TechbloxModdingAPI/Blocks/BlockEngine.cs
  19. +1
    -1
      TechbloxModdingAPI/Blocks/BlockEngineInit.cs
  20. +3
    -4
      TechbloxModdingAPI/Blocks/BlockEventsEngine.cs
  21. +2
    -2
      TechbloxModdingAPI/Blocks/BlockExceptions.cs
  22. +1
    -1
      TechbloxModdingAPI/Blocks/BlockIDs.cs
  23. +1
    -1
      TechbloxModdingAPI/Blocks/BlockIdentifiers.cs
  24. +1
    -1
      TechbloxModdingAPI/Blocks/BlockMaterial.cs
  25. +10
    -10
      TechbloxModdingAPI/Blocks/BlockTests.cs
  26. +3
    -3
      TechbloxModdingAPI/Blocks/BlueprintEngine.cs
  27. +2
    -3
      TechbloxModdingAPI/Blocks/CustomBlock.cs
  28. +1
    -1
      TechbloxModdingAPI/Blocks/CustomBlockAttribute.cs
  29. +4
    -4
      TechbloxModdingAPI/Blocks/CustomBlockEngine.cs
  30. +1
    -1
      TechbloxModdingAPI/Blocks/DampedSpring.cs
  31. +1
    -1
      TechbloxModdingAPI/Blocks/LogicGate.cs
  32. +2
    -2
      TechbloxModdingAPI/Blocks/Motor.cs
  33. +3
    -4
      TechbloxModdingAPI/Blocks/MovementEngine.cs
  34. +4
    -4
      TechbloxModdingAPI/Blocks/MusicBlock.cs
  35. +1
    -1
      TechbloxModdingAPI/Blocks/ObjectIdentifier.cs
  36. +2
    -2
      TechbloxModdingAPI/Blocks/Piston.cs
  37. +4
    -5
      TechbloxModdingAPI/Blocks/PlacementEngine.cs
  38. +3
    -4
      TechbloxModdingAPI/Blocks/RemovalEngine.cs
  39. +3
    -4
      TechbloxModdingAPI/Blocks/RotationEngine.cs
  40. +3
    -4
      TechbloxModdingAPI/Blocks/ScalingEngine.cs
  41. +2
    -2
      TechbloxModdingAPI/Blocks/Servo.cs
  42. +1
    -1
      TechbloxModdingAPI/Blocks/SfxBlock.cs
  43. +2
    -3
      TechbloxModdingAPI/Blocks/SignalEngine.cs
  44. +3
    -3
      TechbloxModdingAPI/Blocks/SignalingBlock.cs
  45. +3
    -3
      TechbloxModdingAPI/Blocks/SpawnPoint.cs
  46. +3
    -3
      TechbloxModdingAPI/Blocks/TextBlock.cs
  47. +3
    -3
      TechbloxModdingAPI/Blocks/Timer.cs
  48. +2
    -2
      TechbloxModdingAPI/Blocks/Wire.cs
  49. +1
    -1
      TechbloxModdingAPI/Blueprint.cs
  50. +1
    -1
      TechbloxModdingAPI/Cluster.cs
  51. +2
    -3
      TechbloxModdingAPI/Commands/CommandBuilder.cs
  52. +1
    -1
      TechbloxModdingAPI/Commands/CommandEngineFactory.cs
  53. +1
    -1
      TechbloxModdingAPI/Commands/CommandExceptions.cs
  54. +2
    -3
      TechbloxModdingAPI/Commands/CommandManager.cs
  55. +1
    -1
      TechbloxModdingAPI/Commands/CommandPatch.cs
  56. +1
    -1
      TechbloxModdingAPI/Commands/CommandRegistrationHelper.cs
  57. +1
    -1
      TechbloxModdingAPI/Commands/ExistingCommands.cs
  58. +3
    -3
      TechbloxModdingAPI/Commands/ICustomCommandEngine.cs
  59. +4
    -5
      TechbloxModdingAPI/Commands/SimpleCustomCommandEngine.cs
  60. +4
    -5
      TechbloxModdingAPI/Commands/SimpleCustomCommandEngine1.cs
  61. +4
    -5
      TechbloxModdingAPI/Commands/SimpleCustomCommandEngine2.cs
  62. +4
    -5
      TechbloxModdingAPI/Commands/SimpleCustomCommandEngine3.cs
  63. +2
    -2
      TechbloxModdingAPI/Engines/IApiEngine.cs
  64. +2
    -2
      TechbloxModdingAPI/Engines/IFactoryEngine.cs
  65. +2
    -2
      TechbloxModdingAPI/Engines/IReactionaryEngine.cs
  66. +2
    -2
      TechbloxModdingAPI/Events/DeterministicStepComposeEngineGroupsPatch.cs
  67. +1
    -1
      TechbloxModdingAPI/Events/EmitterBuilder.cs
  68. +1
    -1
      TechbloxModdingAPI/Events/EventEngineFactory.cs
  69. +1
    -1
      TechbloxModdingAPI/Events/EventExceptions.cs
  70. +3
    -4
      TechbloxModdingAPI/Events/EventManager.cs
  71. +1
    -1
      TechbloxModdingAPI/Events/EventType.cs
  72. +2
    -3
      TechbloxModdingAPI/Events/GameActivatedComposePatch.cs
  73. +2
    -2
      TechbloxModdingAPI/Events/GameReloadedPatch.cs
  74. +2
    -3
      TechbloxModdingAPI/Events/GameStateBuildEmitterEngine.cs
  75. +2
    -3
      TechbloxModdingAPI/Events/GameStateSimulationEmitterEngine.cs
  76. +2
    -2
      TechbloxModdingAPI/Events/GameSwitchedToPatch.cs
  77. +1
    -1
      TechbloxModdingAPI/Events/HandlerBuilder.cs
  78. +2
    -3
      TechbloxModdingAPI/Events/IEventEmitterEngine.cs
  79. +2
    -3
      TechbloxModdingAPI/Events/IEventHandlerEngine.cs
  80. +2
    -3
      TechbloxModdingAPI/Events/MenuActivatedPatch.cs
  81. +2
    -3
      TechbloxModdingAPI/Events/MenuSwitchedToPatch.cs
  82. +1
    -1
      TechbloxModdingAPI/Events/ModEventEntityDescriptor.cs
  83. +1
    -1
      TechbloxModdingAPI/Events/ModEventEntityStruct.cs
  84. +2
    -2
      TechbloxModdingAPI/Events/SimpleEventEmitterEngine.cs
  85. +2
    -3
      TechbloxModdingAPI/Events/SimpleEventHandlerEngine.cs
  86. +3
    -4
      TechbloxModdingAPI/FlyCam.cs
  87. +1
    -1
      TechbloxModdingAPI/GamecraftModdingAPIException.cs
  88. +2
    -3
      TechbloxModdingAPI/Input/FakeInput.cs
  89. +3
    -3
      TechbloxModdingAPI/Input/FakeInputEngine.cs
  90. +1
    -1
      TechbloxModdingAPI/Interface/IMGUI/Button.cs
  91. +2
    -2
      TechbloxModdingAPI/Interface/IMGUI/Constants.cs
  92. +3
    -3
      TechbloxModdingAPI/Interface/IMGUI/Group.cs
  93. +3
    -3
      TechbloxModdingAPI/Interface/IMGUI/IMGUIManager.cs
  94. +3
    -3
      TechbloxModdingAPI/Interface/IMGUI/Image.cs
  95. +3
    -3
      TechbloxModdingAPI/Interface/IMGUI/Label.cs
  96. +1
    -1
      TechbloxModdingAPI/Interface/IMGUI/Text.cs
  97. +1
    -1
      TechbloxModdingAPI/Interface/IMGUI/UIElement.cs
  98. +3
    -4
      TechbloxModdingAPI/Inventory/Hotbar.cs
  99. +4
    -4
      TechbloxModdingAPI/Inventory/HotbarEngine.cs
  100. +2
    -2
      TechbloxModdingAPI/Inventory/HotbarSlotSelectionHandlerEnginePatch.cs

+ 1
- 1
GamecraftModdingAPI.sln View File

@@ -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


GamecraftModdingAPI/App/AppCallbacksTest.cs → TechbloxModdingAPI/App/AppCallbacksTest.cs View File

@@ -1,8 +1,8 @@
using System;

using GamecraftModdingAPI.Tests;
using TechbloxModdingAPI.Tests;

namespace GamecraftModdingAPI.App
namespace TechbloxModdingAPI.App
{
#if TEST
/// <summary>

GamecraftModdingAPI/App/AppEngine.cs → TechbloxModdingAPI/App/AppEngine.cs View File

@@ -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
{

GamecraftModdingAPI/App/AppExceptions.cs → TechbloxModdingAPI/App/AppExceptions.cs View File

@@ -1,7 +1,7 @@
using System;
using System.Runtime.Serialization;

namespace GamecraftModdingAPI.App
namespace TechbloxModdingAPI.App
{
public class AppException : GamecraftModdingAPIException
{

GamecraftModdingAPI/App/Client.cs → TechbloxModdingAPI/App/Client.cs View File

@@ -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
{
/// <summary>
/// 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<object>) AccessTools.Method("GamecraftModdingAPI.App.Client:GenInstanceGetter")
ErrorHandlerInstanceGetter = (Func<object>) AccessTools.Method("TechbloxModdingAPI.App.Client:GenInstanceGetter")
.MakeGenericMethod(errorHandler)
.Invoke(null, new object[0]);
EnqueueError = (Action<object, Error>) AccessTools.Method("GamecraftModdingAPI.App.Client:GenEnqueueError")
EnqueueError = (Action<object, Error>) AccessTools.Method("TechbloxModdingAPI.App.Client:GenEnqueueError")
.MakeGenericMethod(errorHandler, errorHandle)
.Invoke(null, new object[0]);
/*HandleErrorClosed = (Action<object>) AccessTools.Method("GamecraftModdingAPI.App.Client:GenHandlePopupClosed")
/*HandleErrorClosed = (Action<object>) AccessTools.Method("TechbloxModdingAPI.App.Client:GenHandlePopupClosed")
.MakeGenericMethod(errorHandler)
.Invoke(null, new object[0]);*/
// register engines

GamecraftModdingAPI/App/ClientAlertTest.cs → TechbloxModdingAPI/App/ClientAlertTest.cs View File

@@ -3,9 +3,9 @@ using HarmonyLib;

using RobocraftX.Services;

using GamecraftModdingAPI.Tests;
using TechbloxModdingAPI.Tests;

namespace GamecraftModdingAPI.App
namespace TechbloxModdingAPI.App
{
#if TEST
/// <summary>

GamecraftModdingAPI/App/CurrentGameMode.cs → TechbloxModdingAPI/App/CurrentGameMode.cs View File

@@ -1,4 +1,4 @@
namespace GamecraftModdingAPI.App
namespace TechbloxModdingAPI.App
{
public enum CurrentGameMode
{

GamecraftModdingAPI/App/Game.cs → TechbloxModdingAPI/App/Game.cs View File

@@ -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
{
/// <summary>
/// An in-game save.
@@ -33,7 +33,7 @@ namespace GamecraftModdingAPI.App
private bool hasId = false;

/// <summary>
/// Initializes a new instance of the <see cref="T:GamecraftModdingAPI.App.Game"/> class.
/// Initializes a new instance of the <see cref="T:TechbloxModdingAPI.App.Game"/> class.
/// </summary>
/// <param name="id">Menu identifier.</param>
public Game(uint id) : this(new EGID(id, MyGamesScreenExclusiveGroups.MyGames))
@@ -41,7 +41,7 @@ namespace GamecraftModdingAPI.App
}

/// <summary>
/// Initializes a new instance of the <see cref="T:GamecraftModdingAPI.App.Game"/> class.
/// Initializes a new instance of the <see cref="T:TechbloxModdingAPI.App.Game"/> class.
/// </summary>
/// <param name="id">Menu identifier.</param>
public Game(EGID id)
@@ -54,7 +54,7 @@ namespace GamecraftModdingAPI.App
}

/// <summary>
/// Initializes a new instance of the <see cref="T:GamecraftModdingAPI.App.Game"/> class without id.
/// Initializes a new instance of the <see cref="T:TechbloxModdingAPI.App.Game"/> class without id.
/// This is assumed to be the current game.
/// </summary>
public Game()

GamecraftModdingAPI/App/GameBuildSimEventEngine.cs → TechbloxModdingAPI/App/GameBuildSimEventEngine.cs View File

@@ -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
{

GamecraftModdingAPI/App/GameGameEngine.cs → TechbloxModdingAPI/App/GameGameEngine.cs View File

@@ -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
{

GamecraftModdingAPI/App/GameMenuEngine.cs → TechbloxModdingAPI/App/GameMenuEngine.cs View File

@@ -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
{

GamecraftModdingAPI/App/StateSyncRegPatch.cs → TechbloxModdingAPI/App/StateSyncRegPatch.cs View File

@@ -6,7 +6,7 @@ using RobocraftX.StateSync;

using HarmonyLib;

namespace GamecraftModdingAPI.App
namespace TechbloxModdingAPI.App
{
[HarmonyPatch]
class StateSyncRegPatch

GamecraftModdingAPI/App/UserPrompts.cs → TechbloxModdingAPI/App/UserPrompts.cs View File

@@ -3,7 +3,7 @@ using HarmonyLib;

using RobocraftX.Services;

namespace GamecraftModdingAPI.App
namespace TechbloxModdingAPI.App
{
public class DualChoicePrompt : MultiChoiceError
{

GamecraftModdingAPI/Block.cs → TechbloxModdingAPI/Block.cs View File

@@ -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
{
/// <summary>
/// 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.
/// </summary>
public class Block : IEquatable<Block>, IEquatable<EGID>
{

GamecraftModdingAPI/BlockGroup.cs → TechbloxModdingAPI/BlockGroup.cs View File

@@ -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
{
/// <summary>
/// A group of blocks that can be selected together. The placed version of blueprints. Dispose after usage.

GamecraftModdingAPI/Blocks/BlockCloneEngine.cs → TechbloxModdingAPI/Blocks/BlockCloneEngine.cs View File

@@ -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
{

GamecraftModdingAPI/Blocks/BlockColor.cs → TechbloxModdingAPI/Blocks/BlockColor.cs View File

@@ -1,7 +1,7 @@
using System;
using Unity.Mathematics;

namespace GamecraftModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks
{
public struct BlockColor
{

GamecraftModdingAPI/Blocks/BlockEngine.cs → TechbloxModdingAPI/Blocks/BlockEngine.cs View File

@@ -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
{
/// <summary>
/// Engine for executing general block actions

GamecraftModdingAPI/Blocks/BlockEngineInit.cs → TechbloxModdingAPI/Blocks/BlockEngineInit.cs View File

@@ -5,7 +5,7 @@ using Svelto.DataStructures;
using Svelto.ECS;
using Svelto.ECS.Internal;

namespace GamecraftModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks
{
public partial class BlockEngine
{

GamecraftModdingAPI/Blocks/BlockEventsEngine.cs → TechbloxModdingAPI/Blocks/BlockEventsEngine.cs View File

@@ -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<BlockTagEntityStruct>
{

GamecraftModdingAPI/Blocks/BlockExceptions.cs → TechbloxModdingAPI/Blocks/BlockExceptions.cs View File

@@ -1,8 +1,8 @@
using System;

using GamecraftModdingAPI;
using TechbloxModdingAPI;

namespace GamecraftModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks
{
public class BlockException : GamecraftModdingAPIException
{

GamecraftModdingAPI/Blocks/BlockIDs.cs → TechbloxModdingAPI/Blocks/BlockIDs.cs View File

@@ -1,4 +1,4 @@
namespace GamecraftModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks
{
/// <summary>
/// Possible block types

GamecraftModdingAPI/Blocks/BlockIdentifiers.cs → TechbloxModdingAPI/Blocks/BlockIdentifiers.cs View File

@@ -4,7 +4,7 @@ using RobocraftX.Common;
using HarmonyLib;
using Svelto.DataStructures;

namespace GamecraftModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks
{
/// <summary>
/// ExclusiveGroups and IDs used with blocks

GamecraftModdingAPI/Blocks/BlockMaterial.cs → TechbloxModdingAPI/Blocks/BlockMaterial.cs View File

@@ -1,4 +1,4 @@
namespace GamecraftModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks
{
public enum BlockMaterial : byte
{

GamecraftModdingAPI/Blocks/BlockTests.cs → TechbloxModdingAPI/Blocks/BlockTests.cs View File

@@ -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
/// <summary>
@@ -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<BlockTypeException>(() => newBlock.Specialise<MusicBlock>(), "Block.Specialise<MusicBlock>() was expected to error on a bench block.", "Block.Specialise<MusicBlock>() errored as expected for a bench block.")) return;
}
}*/
}
#endif
}

GamecraftModdingAPI/Blocks/BlueprintEngine.cs → TechbloxModdingAPI/Blocks/BlueprintEngine.cs View File

@@ -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
{

GamecraftModdingAPI/Blocks/CustomBlock.cs → TechbloxModdingAPI/Blocks/CustomBlock.cs View File

@@ -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
{
/// <summary>
/// Experimental support for adding custom blocks to the game.

GamecraftModdingAPI/Blocks/CustomBlockAttribute.cs → TechbloxModdingAPI/Blocks/CustomBlockAttribute.cs View File

@@ -1,7 +1,7 @@
using System;
using DataLoader;

namespace GamecraftModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks
{
[AttributeUsage(AttributeTargets.Class)]
public class CustomBlockAttribute : Attribute

GamecraftModdingAPI/Blocks/CustomBlockEngine.cs → TechbloxModdingAPI/Blocks/CustomBlockEngine.cs View File

@@ -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
{

GamecraftModdingAPI/Blocks/DampedSpring.cs → TechbloxModdingAPI/Blocks/DampedSpring.cs View File

@@ -2,7 +2,7 @@ using RobocraftX.Blocks;
using RobocraftX.Common;
using Svelto.ECS;

namespace GamecraftModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks
{
public class DampedSpring : Block
{

GamecraftModdingAPI/Blocks/LogicGate.cs → TechbloxModdingAPI/Blocks/LogicGate.cs View File

@@ -1,7 +1,7 @@
using RobocraftX.Common;
using Svelto.ECS;

namespace GamecraftModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks
{
public class LogicGate : SignalingBlock
{

GamecraftModdingAPI/Blocks/Motor.cs → TechbloxModdingAPI/Blocks/Motor.cs View File

@@ -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
{

GamecraftModdingAPI/Blocks/MovementEngine.cs → TechbloxModdingAPI/Blocks/MovementEngine.cs View File

@@ -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
{
/// <summary>
/// Engine which executes block movement actions

GamecraftModdingAPI/Blocks/MusicBlock.cs → TechbloxModdingAPI/Blocks/MusicBlock.cs View File

@@ -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
{

GamecraftModdingAPI/Blocks/ObjectIdentifier.cs → TechbloxModdingAPI/Blocks/ObjectIdentifier.cs View File

@@ -2,7 +2,7 @@
using RobocraftX.Common;
using Svelto.ECS;

namespace GamecraftModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks
{
public class ObjectIdentifier : Block
{

GamecraftModdingAPI/Blocks/Piston.cs → TechbloxModdingAPI/Blocks/Piston.cs View File

@@ -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
{

GamecraftModdingAPI/Blocks/PlacementEngine.cs → TechbloxModdingAPI/Blocks/PlacementEngine.cs View File

@@ -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
{
/// <summary>
/// Engine which executes block placement actions

GamecraftModdingAPI/Blocks/RemovalEngine.cs → TechbloxModdingAPI/Blocks/RemovalEngine.cs View File

@@ -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
{

GamecraftModdingAPI/Blocks/RotationEngine.cs → TechbloxModdingAPI/Blocks/RotationEngine.cs View File

@@ -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
{
/// <summary>
/// Engine which executes block movement actions

GamecraftModdingAPI/Blocks/ScalingEngine.cs → TechbloxModdingAPI/Blocks/ScalingEngine.cs View File

@@ -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
{

GamecraftModdingAPI/Blocks/Servo.cs → TechbloxModdingAPI/Blocks/Servo.cs View File

@@ -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
{

GamecraftModdingAPI/Blocks/SfxBlock.cs → TechbloxModdingAPI/Blocks/SfxBlock.cs View File

@@ -6,7 +6,7 @@ using RobocraftX.Blocks;
using RobocraftX.Common;
using Svelto.ECS;

namespace GamecraftModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks
{
public class SfxBlock : SignalingBlock
{

GamecraftModdingAPI/Blocks/SignalEngine.cs → TechbloxModdingAPI/Blocks/SignalEngine.cs View File

@@ -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
{
/// <summary>
/// Engine which executes signal actions

GamecraftModdingAPI/Blocks/SignalingBlock.cs → TechbloxModdingAPI/Blocks/SignalingBlock.cs View File

@@ -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
{
/// <summary>
/// Common implementation for blocks that support wiring.

GamecraftModdingAPI/Blocks/SpawnPoint.cs → TechbloxModdingAPI/Blocks/SpawnPoint.cs View File

@@ -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
{

GamecraftModdingAPI/Blocks/TextBlock.cs → TechbloxModdingAPI/Blocks/TextBlock.cs View File

@@ -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
{

GamecraftModdingAPI/Blocks/Timer.cs → TechbloxModdingAPI/Blocks/Timer.cs View File

@@ -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
{

GamecraftModdingAPI/Blocks/Wire.cs → TechbloxModdingAPI/Blocks/Wire.cs View File

@@ -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
{

GamecraftModdingAPI/Blueprint.cs → TechbloxModdingAPI/Blueprint.cs View File

@@ -2,7 +2,7 @@
using Unity.Mathematics;
using UnityEngine;

namespace GamecraftModdingAPI
namespace TechbloxModdingAPI
{
/// <summary>
/// Represents a blueprint in the inventory. When placed it becomes a block group.

GamecraftModdingAPI/Cluster.cs → TechbloxModdingAPI/Cluster.cs View File

@@ -2,7 +2,7 @@
using RobocraftX.Common;
using Svelto.ECS;

namespace GamecraftModdingAPI
namespace TechbloxModdingAPI
{
/// <summary>
/// Represnts a cluster of blocks in time running mode, meaning blocks that are connected either directly or via joints.

GamecraftModdingAPI/Commands/CommandBuilder.cs → TechbloxModdingAPI/Commands/CommandBuilder.cs View File

@@ -1,10 +1,9 @@
using System;

using Svelto.ECS;
using TechbloxModdingAPI.Utility;

using GamecraftModdingAPI.Utility;

namespace GamecraftModdingAPI.Commands
namespace TechbloxModdingAPI.Commands
{
/// <summary>
/// Custom Command builder.

GamecraftModdingAPI/Commands/CommandEngineFactory.cs → TechbloxModdingAPI/Commands/CommandEngineFactory.cs View File

@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GamecraftModdingAPI.Commands
namespace TechbloxModdingAPI.Commands
{
/// <summary>
/// UNIMPLEMENTED!

GamecraftModdingAPI/Commands/CommandExceptions.cs → TechbloxModdingAPI/Commands/CommandExceptions.cs View File

@@ -1,5 +1,5 @@
using System;
namespace GamecraftModdingAPI.Commands
namespace TechbloxModdingAPI.Commands
{
public class CommandException : GamecraftModdingAPIException
{

GamecraftModdingAPI/Commands/CommandManager.cs → TechbloxModdingAPI/Commands/CommandManager.cs View File

@@ -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
{
/// <summary>
/// Keeps track of custom commands

GamecraftModdingAPI/Commands/CommandPatch.cs → TechbloxModdingAPI/Commands/CommandPatch.cs View File

@@ -8,7 +8,7 @@ using RobocraftX.CR.MainGame;
using RobocraftX.Multiplayer;
using RobocraftX.StateSync;

namespace GamecraftModdingAPI.Commands
namespace TechbloxModdingAPI.Commands
{
/// <summary>
/// Patch of RobocraftX.CR.MainGame.MainGameCompositionRoot.DeterministicCompose<T>()

GamecraftModdingAPI/Commands/CommandRegistrationHelper.cs → TechbloxModdingAPI/Commands/CommandRegistrationHelper.cs View File

@@ -7,7 +7,7 @@ using System.Threading.Tasks;
using uREPL;
using RobocraftX.CommandLine.Custom;

namespace GamecraftModdingAPI.Commands
namespace TechbloxModdingAPI.Commands
{
/// <summary>
/// Convenient methods for registering commands to Gamecraft.

GamecraftModdingAPI/Commands/ExistingCommands.cs → TechbloxModdingAPI/Commands/ExistingCommands.cs View File

@@ -2,7 +2,7 @@

using uREPL;

namespace GamecraftModdingAPI.Commands
namespace TechbloxModdingAPI.Commands
{
public static class ExistingCommands
{

GamecraftModdingAPI/Commands/ICustomCommandEngine.cs → TechbloxModdingAPI/Commands/ICustomCommandEngine.cs View File

@@ -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
{
/// <summary>
/// Engine interface to handle command operations.

GamecraftModdingAPI/Commands/SimpleCustomCommandEngine.cs → TechbloxModdingAPI/Commands/SimpleCustomCommandEngine.cs View File

@@ -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
{
/// <summary>
/// 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);
}


GamecraftModdingAPI/Commands/SimpleCustomCommandEngine1.cs → TechbloxModdingAPI/Commands/SimpleCustomCommandEngine1.cs View File

@@ -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
{
/// <summary>
/// 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<A>(this.Name, this.InvokeCatchError, this.Description);
}


GamecraftModdingAPI/Commands/SimpleCustomCommandEngine2.cs → TechbloxModdingAPI/Commands/SimpleCustomCommandEngine2.cs View File

@@ -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
{
/// <summary>
/// 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<A,B>(this.Name, this.InvokeCatchError, this.Description);
}


GamecraftModdingAPI/Commands/SimpleCustomCommandEngine3.cs → TechbloxModdingAPI/Commands/SimpleCustomCommandEngine3.cs View File

@@ -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
{
/// <summary>
/// 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<A,B,C>(this.Name, this.InvokeCatchError, this.Description);
}


GamecraftModdingAPI/Engines/IApiEngine.cs → TechbloxModdingAPI/Engines/IApiEngine.cs View File

@@ -6,10 +6,10 @@ using System.Threading.Tasks;

using Svelto.ECS;

namespace GamecraftModdingAPI.Engines
namespace TechbloxModdingAPI.Engines
{
/// <summary>
/// Base engine interface used by all GamecraftModdingAPI engines
/// Base engine interface used by all TechbloxModdingAPI engines
/// </summary>
public interface IApiEngine : IEngine, IQueryingEntitiesEngine, IDisposable
{

GamecraftModdingAPI/Engines/IFactoryEngine.cs → TechbloxModdingAPI/Engines/IFactoryEngine.cs View File

@@ -6,9 +6,9 @@ using System.Threading.Tasks;

using Svelto.ECS;

using GamecraftModdingAPI.Utility;
using TechbloxModdingAPI.Utility;

namespace GamecraftModdingAPI.Engines
namespace TechbloxModdingAPI.Engines
{
/// <summary>
/// Engine interface to create a ModEventEntityStruct in entitiesDB when Emit() is called.

GamecraftModdingAPI/Engines/IReactionaryEngine.cs → TechbloxModdingAPI/Engines/IReactionaryEngine.cs View File

@@ -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
{
/// <summary>
/// Engine interface to handle ModEventEntityStruct events emitted by IEventEmitterEngines.

GamecraftModdingAPI/Events/DeterministicStepComposeEngineGroupsPatch.cs → TechbloxModdingAPI/Events/DeterministicStepComposeEngineGroupsPatch.cs View File

@@ -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
{
/// <summary>
/// Patch of RobocraftX.StateSync.DeterministicStepCompositionRoot.ComposeEnginesGroups(...)

GamecraftModdingAPI/Events/EmitterBuilder.cs → TechbloxModdingAPI/Events/EmitterBuilder.cs View File

@@ -2,7 +2,7 @@

using Svelto.ECS;

namespace GamecraftModdingAPI.Events
namespace TechbloxModdingAPI.Events
{
[Obsolete]
public class EmitterBuilder

GamecraftModdingAPI/Events/EventEngineFactory.cs → TechbloxModdingAPI/Events/EventEngineFactory.cs View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;

using Svelto.ECS;

namespace GamecraftModdingAPI.Events
namespace TechbloxModdingAPI.Events
{
/// <summary>
/// Convenient factories for mod event engines

GamecraftModdingAPI/Events/EventExceptions.cs → TechbloxModdingAPI/Events/EventExceptions.cs View File

@@ -1,5 +1,5 @@
using System;
namespace GamecraftModdingAPI.Events
namespace TechbloxModdingAPI.Events
{
public class EventException : GamecraftModdingAPIException
{

GamecraftModdingAPI/Events/EventManager.cs → TechbloxModdingAPI/Events/EventManager.cs View File

@@ -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
{
/// <summary>
/// Keeps track of event handlers and emitters.
/// This is used to add, remove and get API event handlers and emitters.
/// </summary>
[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<string, IEventEmitterEngine> _eventEmitters = new Dictionary<string, IEventEmitterEngine>();

GamecraftModdingAPI/Events/EventType.cs → TechbloxModdingAPI/Events/EventType.cs View File

@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GamecraftModdingAPI.Events
namespace TechbloxModdingAPI.Events
{
/// <summary>
/// Built-in event types.

GamecraftModdingAPI/Events/GameActivatedComposePatch.cs → TechbloxModdingAPI/Events/GameActivatedComposePatch.cs View File

@@ -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
{
/// <summary>
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame()

GamecraftModdingAPI/Events/GameReloadedPatch.cs → TechbloxModdingAPI/Events/GameReloadedPatch.cs View File

@@ -7,9 +7,9 @@ using System.Threading.Tasks;
using HarmonyLib;
using RobocraftX;

using GamecraftModdingAPI.Utility;
using TechbloxModdingAPI.Utility;

namespace GamecraftModdingAPI.Events
namespace TechbloxModdingAPI.Events
{
/// <summary>
/// Patch of RobocraftX.FullGameCompositionRoot.ReloadGame()

GamecraftModdingAPI/Events/GameStateBuildEmitterEngine.cs → TechbloxModdingAPI/Events/GameStateBuildEmitterEngine.cs View File

@@ -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
{
/// <summary>
/// Event emitter engine for switching to to build mode.

GamecraftModdingAPI/Events/GameStateSimulationEmitterEngine.cs → TechbloxModdingAPI/Events/GameStateSimulationEmitterEngine.cs View File

@@ -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
{
/// <summary>
/// Event emitter engine for switching to simulation mode.

GamecraftModdingAPI/Events/GameSwitchedToPatch.cs → TechbloxModdingAPI/Events/GameSwitchedToPatch.cs View File

@@ -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
{
/// <summary>
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame()

GamecraftModdingAPI/Events/HandlerBuilder.cs → TechbloxModdingAPI/Events/HandlerBuilder.cs View File

@@ -2,7 +2,7 @@

using Svelto.ECS;

namespace GamecraftModdingAPI.Events
namespace TechbloxModdingAPI.Events
{
[Obsolete]
public class HandlerBuilder

GamecraftModdingAPI/Events/IEventEmitterEngine.cs → TechbloxModdingAPI/Events/IEventEmitterEngine.cs View File

@@ -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
{
/// <summary>
/// Engine interface to create a ModEventEntityStruct in entitiesDB when a specific event occurs.

GamecraftModdingAPI/Events/IEventHandlerEngine.cs → TechbloxModdingAPI/Events/IEventHandlerEngine.cs View File

@@ -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
{
/// <summary>
/// Engine interface to handle ModEventEntityStruct events emitted by IEventEmitterEngines.

GamecraftModdingAPI/Events/MenuActivatedPatch.cs → TechbloxModdingAPI/Events/MenuActivatedPatch.cs View File

@@ -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
{
/// <summary>
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateMenu()

GamecraftModdingAPI/Events/MenuSwitchedToPatch.cs → TechbloxModdingAPI/Events/MenuSwitchedToPatch.cs View File

@@ -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
{
/// <summary>
/// Patch of RobocraftX.FullGameCompositionRoot.SwitchToMenu()

GamecraftModdingAPI/Events/ModEventEntityDescriptor.cs → TechbloxModdingAPI/Events/ModEventEntityDescriptor.cs View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;

using Svelto.ECS;

namespace GamecraftModdingAPI.Events
namespace TechbloxModdingAPI.Events
{
/// <summary>
/// EntityDescriptor for creating ModEventEntityStructs

GamecraftModdingAPI/Events/ModEventEntityStruct.cs → TechbloxModdingAPI/Events/ModEventEntityStruct.cs View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;

using Svelto.ECS;

namespace GamecraftModdingAPI.Events
namespace TechbloxModdingAPI.Events
{
/// <summary>
/// The event entity struct

GamecraftModdingAPI/Events/SimpleEventEmitterEngine.cs → TechbloxModdingAPI/Events/SimpleEventEmitterEngine.cs View File

@@ -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
{
/// <summary>
/// A simple implementation of IEventEmitterEngine sufficient for most uses

GamecraftModdingAPI/Events/SimpleEventHandlerEngine.cs → TechbloxModdingAPI/Events/SimpleEventHandlerEngine.cs View File

@@ -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
{
/// <summary>
/// A simple implementation of IEventHandlerEngine sufficient for most uses

GamecraftModdingAPI/FlyCam.cs → TechbloxModdingAPI/FlyCam.cs View File

@@ -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
{

GamecraftModdingAPI/GamecraftModdingAPIException.cs → TechbloxModdingAPI/GamecraftModdingAPIException.cs View File

@@ -1,7 +1,7 @@
using System;
using System.Runtime.Serialization;

namespace GamecraftModdingAPI
namespace TechbloxModdingAPI
{
public class GamecraftModdingAPIException : Exception
{

GamecraftModdingAPI/Input/FakeInput.cs → TechbloxModdingAPI/Input/FakeInput.cs View File

@@ -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
{

GamecraftModdingAPI/Input/FakeInputEngine.cs → TechbloxModdingAPI/Input/FakeInputEngine.cs View File

@@ -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
{

GamecraftModdingAPI/Interface/IMGUI/Button.cs → TechbloxModdingAPI/Interface/IMGUI/Button.cs View File

@@ -2,7 +2,7 @@ using System;
using Unity.Mathematics;
using UnityEngine;

namespace GamecraftModdingAPI.Interface.IMGUI
namespace TechbloxModdingAPI.Interface.IMGUI
{
/// <summary>
/// A clickable button.

GamecraftModdingAPI/Interface/IMGUI/Constants.cs → TechbloxModdingAPI/Interface/IMGUI/Constants.cs View File

@@ -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
{
/// <summary>
/// Convenient IMGUI values.

GamecraftModdingAPI/Interface/IMGUI/Group.cs → TechbloxModdingAPI/Interface/IMGUI/Group.cs View File

@@ -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
{
/// <summary>
/// A group of elements.
@@ -80,7 +80,7 @@ namespace GamecraftModdingAPI.Interface.IMGUI
}

/// <summary>
/// Initializes a new instance of the <see cref="T:GamecraftModdingAPI.Interface.IMGUI.Group"/> class.
/// Initializes a new instance of the <see cref="T:TechbloxModdingAPI.Interface.IMGUI.Group"/> class.
/// </summary>
/// <param name="box">The rectangular area to use in the window.</param>
/// <param name="name">Name of the group.</param>

GamecraftModdingAPI/Interface/IMGUI/IMGUIManager.cs → TechbloxModdingAPI/Interface/IMGUI/IMGUIManager.cs View File

@@ -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
{
/// <summary>
/// Keeps track of UIElement instances.

GamecraftModdingAPI/Interface/IMGUI/Image.cs → TechbloxModdingAPI/Interface/IMGUI/Image.cs View File

@@ -1,6 +1,6 @@
using UnityEngine;

namespace GamecraftModdingAPI.Interface.IMGUI
namespace TechbloxModdingAPI.Interface.IMGUI
{
/// <summary>
/// An image.
@@ -44,7 +44,7 @@ namespace GamecraftModdingAPI.Interface.IMGUI
public bool Enabled { set; get; } = true;
/// <summary>
/// Initializes a new instance of the <see cref="T:GamecraftModdingAPI.Interface.IMGUI.Image"/> class with automatic layout.
/// Initializes a new instance of the <see cref="T:TechbloxModdingAPI.Interface.IMGUI.Image"/> class with automatic layout.
/// </summary>
/// <param name="texture">Image to display.</param>
/// <param name="name">The element's name.</param>
@@ -72,7 +72,7 @@ namespace GamecraftModdingAPI.Interface.IMGUI
}

/// <summary>
/// Initializes a new instance of the <see cref="T:GamecraftModdingAPI.Interface.IMGUI.Image"/> class.
/// Initializes a new instance of the <see cref="T:TechbloxModdingAPI.Interface.IMGUI.Image"/> class.
/// </summary>
/// <param name="box">Rectangular area for the image.</param>
/// <param name="texture">Image to display.</param>

GamecraftModdingAPI/Interface/IMGUI/Label.cs → TechbloxModdingAPI/Interface/IMGUI/Label.cs View File

@@ -1,6 +1,6 @@
using UnityEngine;

namespace GamecraftModdingAPI.Interface.IMGUI
namespace TechbloxModdingAPI.Interface.IMGUI
{
/// <summary>
/// A simple text label.
@@ -43,7 +43,7 @@ namespace GamecraftModdingAPI.Interface.IMGUI
public bool Enabled { set; get; } = true;

/// <summary>
/// Initializes a new instance of the <see cref="T:GamecraftModdingAPI.Interface.IMGUI.Label"/> class with automatic layout.
/// Initializes a new instance of the <see cref="T:TechbloxModdingAPI.Interface.IMGUI.Label"/> class with automatic layout.
/// </summary>
/// <param name="initialText">Initial string to display on the label.</param>
/// <param name="name">The element's name.</param>
@@ -63,7 +63,7 @@ namespace GamecraftModdingAPI.Interface.IMGUI
}

/// <summary>
/// Initializes a new instance of the <see cref="T:GamecraftModdingAPI.Interface.IMGUI.Label"/>.
/// Initializes a new instance of the <see cref="T:TechbloxModdingAPI.Interface.IMGUI.Label"/>.
/// </summary>
/// <param name="box">Rectangular area for the label.</param>
/// <param name="initialText">Initial string to display on the label.</param>

GamecraftModdingAPI/Interface/IMGUI/Text.cs → TechbloxModdingAPI/Interface/IMGUI/Text.cs View File

@@ -1,7 +1,7 @@
using System;
using UnityEngine;

namespace GamecraftModdingAPI.Interface.IMGUI
namespace TechbloxModdingAPI.Interface.IMGUI
{
/// <summary>
/// A text input field.

GamecraftModdingAPI/Interface/IMGUI/UIElement.cs → TechbloxModdingAPI/Interface/IMGUI/UIElement.cs View File

@@ -1,6 +1,6 @@
using System;

namespace GamecraftModdingAPI.Interface.IMGUI
namespace TechbloxModdingAPI.Interface.IMGUI
{
/// <summary>
/// GUI Element like a text field, button or picture.

GamecraftModdingAPI/Inventory/Hotbar.cs → TechbloxModdingAPI/Inventory/Hotbar.cs View File

@@ -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
{

GamecraftModdingAPI/Inventory/HotbarEngine.cs → TechbloxModdingAPI/Inventory/HotbarEngine.cs View File

@@ -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
{

GamecraftModdingAPI/Inventory/HotbarSlotSelectionHandlerEnginePatch.cs → TechbloxModdingAPI/Inventory/HotbarSlotSelectionHandlerEnginePatch.cs View File

@@ -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

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save