Browse Source

Move block engines into their own namespace

tags/v2.0.0
NorbiPeti 3 years ago
parent
commit
1cbe252727
Signed by: NorbiPeti <szatmari.norbert.peter@gmail.com> GPG Key ID: DBA4C4549A927E56
14 changed files with 29 additions and 36 deletions
  1. +1
    -0
      TechbloxModdingAPI/Block.cs
  2. +2
    -0
      TechbloxModdingAPI/BlockGroup.cs
  3. +1
    -2
      TechbloxModdingAPI/Blocks/Engines/BlockCloneEngine.cs
  4. +2
    -3
      TechbloxModdingAPI/Blocks/Engines/BlockEngine.cs
  5. +3
    -3
      TechbloxModdingAPI/Blocks/Engines/BlockEventsEngine.cs
  6. +1
    -1
      TechbloxModdingAPI/Blocks/Engines/BlueprintEngine.cs
  7. +1
    -11
      TechbloxModdingAPI/Blocks/Engines/CustomBlockEngine.cs
  8. +3
    -2
      TechbloxModdingAPI/Blocks/Engines/MovementEngine.cs
  9. +3
    -7
      TechbloxModdingAPI/Blocks/Engines/PlacementEngine.cs
  10. +2
    -1
      TechbloxModdingAPI/Blocks/Engines/RemovalEngine.cs
  11. +2
    -1
      TechbloxModdingAPI/Blocks/Engines/RotationEngine.cs
  12. +2
    -1
      TechbloxModdingAPI/Blocks/Engines/ScalingEngine.cs
  13. +5
    -3
      TechbloxModdingAPI/Blocks/Engines/SignalEngine.cs
  14. +1
    -1
      TechbloxModdingAPI/Blocks/Wire.cs

+ 1
- 0
TechbloxModdingAPI/Block.cs View File

@@ -11,6 +11,7 @@ using Unity.Mathematics;
using Gamecraft.Blocks.GUI;

using TechbloxModdingAPI.Blocks;
using TechbloxModdingAPI.Blocks.Engines;
using TechbloxModdingAPI.Tests;
using TechbloxModdingAPI.Utility;



+ 2
- 0
TechbloxModdingAPI/BlockGroup.cs View File

@@ -6,7 +6,9 @@ using Gamecraft.Blocks.BlockGroups;
using Svelto.ECS;
using Unity.Mathematics;
using UnityEngine;

using TechbloxModdingAPI.Blocks;
using TechbloxModdingAPI.Blocks.Engines;
using TechbloxModdingAPI.Utility;

namespace TechbloxModdingAPI


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

@@ -6,12 +6,11 @@ using HarmonyLib;
using RobocraftX.Blocks;
using RobocraftX.Character;
using RobocraftX.Common;
using RobocraftX.Common.Players;
using Svelto.DataStructures;
using Svelto.ECS;
using TechbloxModdingAPI.Engines;

namespace TechbloxModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks.Engines
{
public class BlockCloneEngine : IApiEngine
{

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

@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;

@@ -10,16 +9,16 @@ using RobocraftX.Common;
using RobocraftX.Physics;
using RobocraftX.Rendering;
using RobocraftX.Rendering.GPUI;
using Svelto.ECS.EntityStructs;
using Svelto.DataStructures;
using Svelto.ECS;
using Svelto.ECS.EntityStructs;
using Svelto.ECS.Hybrid;
using Unity.Mathematics;

using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;

namespace TechbloxModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks.Engines
{
/// <summary>
/// Engine for executing general block actions

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

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

using RobocraftX.Common;
using Svelto.ECS;
using RobocraftX.Blocks;
using Svelto.ECS;

using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;

namespace TechbloxModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks.Engines
{
public class BlockEventsEngine : IReactionaryEngine<BlockTagEntityStruct>
{

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

@@ -20,7 +20,7 @@ using Unity.Mathematics;
using UnityEngine;
using Allocator = Svelto.Common.Allocator;

namespace TechbloxModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks.Engines
{
public class BlueprintEngine : IFactoryEngine
{

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

@@ -1,14 +1,4 @@
using System;
using System.Collections.Generic;
using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Persistence;
using TechbloxModdingAPI.Utility;
using RobocraftX.Common;
using Svelto.ECS;
using Svelto.ECS.Experimental;
using Svelto.ECS.Serialization;

namespace TechbloxModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks.Engines
{
/*public class CustomBlockEngine : IFactoryEngine
{

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

@@ -2,12 +2,13 @@
using RobocraftX.UECS;
using Svelto.ECS;
using Svelto.ECS.EntityStructs;
using Unity.Transforms;
using Unity.Mathematics;
using Unity.Transforms;

using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;

namespace TechbloxModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks.Engines
{
/// <summary>
/// Engine which executes block movement actions

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

@@ -1,4 +1,3 @@
using System;
using System.Reflection;

using DataLoader;
@@ -6,21 +5,18 @@ using Gamecraft.Blocks.BlockGroups;
using Gamecraft.Wires;
using HarmonyLib;
using RobocraftX.Blocks;
using RobocraftX.Blocks.Scaling;
using RobocraftX.Character;
using RobocraftX.Common;
using RobocraftX.CR.MachineEditing;
using RobocraftX.Rendering;
using RobocraftX.Rendering.GPUI;
using Svelto.ECS;
using Svelto.ECS.EntityStructs;
using Unity.Mathematics;
using UnityEngine;
using TechbloxModdingAPI.Players;
using RobocraftX.Rendering.GPUI;

using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;

namespace TechbloxModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks.Engines
{
/// <summary>
/// Engine which executes block placement actions

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

@@ -4,10 +4,11 @@ using HarmonyLib;
using RobocraftX.Blocks;
using RobocraftX.Common;
using Svelto.ECS;

using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;

namespace TechbloxModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks.Engines
{
public class RemovalEngine : IApiEngine
{

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

@@ -4,10 +4,11 @@ using Svelto.ECS;
using Svelto.ECS.EntityStructs;
using Unity.Mathematics;
using UnityEngine;

using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;

namespace TechbloxModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks.Engines
{
/// <summary>
/// Engine which executes block movement actions

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

@@ -5,10 +5,11 @@ using RobocraftX.Common;
using RobocraftX.UECS;
using Svelto.ECS;
using Unity.Entities;

using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;

namespace TechbloxModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks.Engines
{
public class ScalingEngine : IApiEngine
{

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

@@ -1,11 +1,13 @@
using System;
using Svelto.ECS;
using Svelto.DataStructures;

using Gamecraft.Wires;
using Svelto.DataStructures;
using Svelto.ECS;

using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;

namespace TechbloxModdingAPI.Blocks
namespace TechbloxModdingAPI.Blocks.Engines
{
/// <summary>
/// Engine which executes signal actions

+ 1
- 1
TechbloxModdingAPI/Blocks/Wire.cs View File

@@ -4,7 +4,7 @@ using Gamecraft.Wires;
using Svelto.ECS;
using Svelto.ECS.Experimental;

using TechbloxModdingAPI.Utility;
using TechbloxModdingAPI.Blocks.Engines;

namespace TechbloxModdingAPI.Blocks
{


Loading…
Cancel
Save