Rename to TechbloxModdingAPI

This commit is contained in:
Norbi Peti 2021-05-02 01:08:25 +02:00
parent 807470e289
commit a6f52070ee
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56
142 changed files with 334 additions and 378 deletions

View file

@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16 # Visual Studio Version 16
VisualStudioVersion = 16.0.29411.108 VisualStudioVersion = 16.0.29411.108
MinimumVisualStudioVersion = 10.0.40219.1 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 EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution

View file

@ -1,8 +1,8 @@
using System; using System;
using GamecraftModdingAPI.Tests; using TechbloxModdingAPI.Tests;
namespace GamecraftModdingAPI.App namespace TechbloxModdingAPI.App
{ {
#if TEST #if TEST
/// <summary> /// <summary>

View file

@ -3,11 +3,10 @@
using RobocraftX.GUI.MyGamesScreen; using RobocraftX.GUI.MyGamesScreen;
using RobocraftX.GUI; using RobocraftX.GUI;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Engines; namespace TechbloxModdingAPI.App
using GamecraftModdingAPI.Utility;
namespace GamecraftModdingAPI.App
{ {
public class AppEngine : IFactoryEngine public class AppEngine : IFactoryEngine
{ {

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Runtime.Serialization; using System.Runtime.Serialization;
namespace GamecraftModdingAPI.App namespace TechbloxModdingAPI.App
{ {
public class AppException : GamecraftModdingAPIException public class AppException : GamecraftModdingAPIException
{ {

View file

@ -4,11 +4,10 @@ using HarmonyLib;
using RobocraftX.Services; using RobocraftX.Services;
using UnityEngine; using UnityEngine;
using GamecraftModdingAPI.Utility;
using RobocraftX.Common; using RobocraftX.Common;
using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.App namespace TechbloxModdingAPI.App
{ {
/// <summary> /// <summary>
/// The Gamecraft application that is running this code right now. /// 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 // 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 errorHandler = AccessTools.TypeByName("RobocraftX.Services.ErrorHandler");
Type errorHandle = AccessTools.TypeByName("RobocraftX.Services.ErrorHandle"); 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) .MakeGenericMethod(errorHandler)
.Invoke(null, new object[0]); .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) .MakeGenericMethod(errorHandler, errorHandle)
.Invoke(null, new object[0]); .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) .MakeGenericMethod(errorHandler)
.Invoke(null, new object[0]);*/ .Invoke(null, new object[0]);*/
// register engines // register engines

View file

@ -3,9 +3,9 @@ using HarmonyLib;
using RobocraftX.Services; using RobocraftX.Services;
using GamecraftModdingAPI.Tests; using TechbloxModdingAPI.Tests;
namespace GamecraftModdingAPI.App namespace TechbloxModdingAPI.App
{ {
#if TEST #if TEST
/// <summary> /// <summary>

View file

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

View file

@ -7,12 +7,12 @@ using RobocraftX.GUI.MyGamesScreen;
using RobocraftX.StateSync; using RobocraftX.StateSync;
using Svelto.ECS; using Svelto.ECS;
using GamecraftModdingAPI; using TechbloxModdingAPI;
using GamecraftModdingAPI.Blocks; using TechbloxModdingAPI.Blocks;
using GamecraftModdingAPI.Tasks; using TechbloxModdingAPI.Tasks;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.App namespace TechbloxModdingAPI.App
{ {
/// <summary> /// <summary>
/// An in-game save. /// An in-game save.
@ -33,7 +33,7 @@ namespace GamecraftModdingAPI.App
private bool hasId = false; private bool hasId = false;
/// <summary> /// <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> /// </summary>
/// <param name="id">Menu identifier.</param> /// <param name="id">Menu identifier.</param>
public Game(uint id) : this(new EGID(id, MyGamesScreenExclusiveGroups.MyGames)) public Game(uint id) : this(new EGID(id, MyGamesScreenExclusiveGroups.MyGames))
@ -41,7 +41,7 @@ namespace GamecraftModdingAPI.App
} }
/// <summary> /// <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> /// </summary>
/// <param name="id">Menu identifier.</param> /// <param name="id">Menu identifier.</param>
public Game(EGID id) public Game(EGID id)
@ -54,7 +54,7 @@ namespace GamecraftModdingAPI.App
} }
/// <summary> /// <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. /// This is assumed to be the current game.
/// </summary> /// </summary>
public Game() public Game()

View file

@ -4,11 +4,10 @@ using RobocraftX.Common;
using RobocraftX.StateSync; using RobocraftX.StateSync;
using Svelto.ECS; using Svelto.ECS;
using Unity.Jobs; using Unity.Jobs;
using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Engines; namespace TechbloxModdingAPI.App
using GamecraftModdingAPI.Utility;
namespace GamecraftModdingAPI.App
{ {
public class GameBuildSimEventEngine : IApiEngine, IUnorderedInitializeOnTimeRunningModeEntered, IUnorderedInitializeOnTimeStoppedModeEntered public class GameBuildSimEventEngine : IApiEngine, IUnorderedInitializeOnTimeRunningModeEntered, IUnorderedInitializeOnTimeStoppedModeEntered
{ {

View file

@ -9,13 +9,12 @@ using RobocraftX.SimulationModeState;
using Svelto.ECS; using Svelto.ECS;
using Svelto.Tasks; using Svelto.Tasks;
using Svelto.Tasks.Lean; using Svelto.Tasks.Lean;
using GamecraftModdingAPI.Blocks;
using GamecraftModdingAPI.Engines;
using GamecraftModdingAPI.Utility;
using RobocraftX.Blocks; using RobocraftX.Blocks;
using TechbloxModdingAPI.Blocks;
using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.App namespace TechbloxModdingAPI.App
{ {
public class GameGameEngine : IApiEngine public class GameGameEngine : IApiEngine
{ {

View file

@ -7,12 +7,11 @@ using RobocraftX.GUI;
using RobocraftX.GUI.MyGamesScreen; using RobocraftX.GUI.MyGamesScreen;
using Svelto.ECS; using Svelto.ECS;
using Svelto.ECS.Experimental; using Svelto.ECS.Experimental;
using GamecraftModdingAPI.Engines;
using GamecraftModdingAPI.Utility;
using Svelto.DataStructures; using Svelto.DataStructures;
using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.App namespace TechbloxModdingAPI.App
{ {
public class GameMenuEngine : IFactoryEngine public class GameMenuEngine : IFactoryEngine
{ {

View file

@ -6,7 +6,7 @@ using RobocraftX.StateSync;
using HarmonyLib; using HarmonyLib;
namespace GamecraftModdingAPI.App namespace TechbloxModdingAPI.App
{ {
[HarmonyPatch] [HarmonyPatch]
class StateSyncRegPatch class StateSyncRegPatch

View file

@ -3,7 +3,7 @@ using HarmonyLib;
using RobocraftX.Services; using RobocraftX.Services;
namespace GamecraftModdingAPI.App namespace TechbloxModdingAPI.App
{ {
public class DualChoicePrompt : MultiChoiceError public class DualChoicePrompt : MultiChoiceError
{ {

View file

@ -10,16 +10,15 @@ using RobocraftX.Common;
using RobocraftX.Blocks; using RobocraftX.Blocks;
using Unity.Mathematics; using Unity.Mathematics;
using Gamecraft.Blocks.GUI; using Gamecraft.Blocks.GUI;
using GamecraftModdingAPI.Blocks;
using GamecraftModdingAPI.Utility;
using RobocraftX.Rendering.GPUI; using RobocraftX.Rendering.GPUI;
using TechbloxModdingAPI.Blocks;
using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI namespace TechbloxModdingAPI
{ {
/// <summary> /// <summary>
/// A single (perhaps scaled) block. Properties may return default values if the block is removed and then setting them is ignored. /// 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> /// </summary>
public class Block : IEquatable<Block>, IEquatable<EGID> public class Block : IEquatable<Block>, IEquatable<EGID>
{ {

View file

@ -5,11 +5,10 @@ using System.Collections.Generic;
using Gamecraft.Blocks.BlockGroups; using Gamecraft.Blocks.BlockGroups;
using Unity.Mathematics; using Unity.Mathematics;
using UnityEngine; using UnityEngine;
using TechbloxModdingAPI.Blocks;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Blocks; namespace TechbloxModdingAPI
using GamecraftModdingAPI.Utility;
namespace GamecraftModdingAPI
{ {
/// <summary> /// <summary>
/// A group of blocks that can be selected together. The placed version of blueprints. Dispose after usage. /// A group of blocks that can be selected together. The placed version of blueprints. Dispose after usage.

View file

@ -2,7 +2,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Reflection; using System.Reflection;
using Gamecraft.Wires; using Gamecraft.Wires;
using GamecraftModdingAPI.Engines;
using HarmonyLib; using HarmonyLib;
using RobocraftX.Blocks; using RobocraftX.Blocks;
using RobocraftX.Character; using RobocraftX.Character;
@ -10,8 +9,9 @@ using RobocraftX.Common;
using RobocraftX.Common.Players; using RobocraftX.Common.Players;
using Svelto.DataStructures; using Svelto.DataStructures;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Engines;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public class BlockCloneEngine : IApiEngine public class BlockCloneEngine : IApiEngine
{ {

View file

@ -1,7 +1,7 @@
using System; using System;
using Unity.Mathematics; using Unity.Mathematics;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public struct BlockColor public struct BlockColor
{ {

View file

@ -15,10 +15,9 @@ using Svelto.DataStructures;
using Svelto.ECS; using Svelto.ECS;
using Svelto.ECS.Hybrid; using Svelto.ECS.Hybrid;
using Unity.Mathematics; using Unity.Mathematics;
using TechbloxModdingAPI.Engines;
using GamecraftModdingAPI.Engines; namespace TechbloxModdingAPI.Blocks
namespace GamecraftModdingAPI.Blocks
{ {
/// <summary> /// <summary>
/// Engine for executing general block actions /// Engine for executing general block actions

View file

@ -5,7 +5,7 @@ using Svelto.DataStructures;
using Svelto.ECS; using Svelto.ECS;
using Svelto.ECS.Internal; using Svelto.ECS.Internal;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public partial class BlockEngine public partial class BlockEngine
{ {

View file

@ -2,12 +2,11 @@ using System;
using RobocraftX.Common; using RobocraftX.Common;
using Svelto.ECS; using Svelto.ECS;
using GamecraftModdingAPI.Engines;
using GamecraftModdingAPI.Utility;
using RobocraftX.Blocks; using RobocraftX.Blocks;
using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public class BlockEventsEngine : IReactionaryEngine<BlockTagEntityStruct> public class BlockEventsEngine : IReactionaryEngine<BlockTagEntityStruct>
{ {

View file

@ -1,8 +1,8 @@
using System; using System;
using GamecraftModdingAPI; using TechbloxModdingAPI;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public class BlockException : GamecraftModdingAPIException public class BlockException : GamecraftModdingAPIException
{ {

View file

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

View file

@ -4,7 +4,7 @@ using RobocraftX.Common;
using HarmonyLib; using HarmonyLib;
using Svelto.DataStructures; using Svelto.DataStructures;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
/// <summary> /// <summary>
/// ExclusiveGroups and IDs used with blocks /// ExclusiveGroups and IDs used with blocks

View file

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

View file

@ -3,11 +3,11 @@
using Gamecraft.Wires; using Gamecraft.Wires;
using Unity.Mathematics; using Unity.Mathematics;
using GamecraftModdingAPI; using TechbloxModdingAPI;
using GamecraftModdingAPI.Tests; using TechbloxModdingAPI.Tests;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
#if TEST #if TEST
/// <summary> /// <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."); //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() public static void TestTextBlock()
{ {
TextBlock textBlock = null; // Note: the assignment operation is a lambda, which slightly confuses the compiler 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.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.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; 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)] [APITestCase(TestType.EditMode)]
public static void TestDampedSpring() 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; 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() public static void TestMusicBlock1()
{ {
Block newBlock = Block.PlaceNew(BlockIDs.MusicBlock, Unity.Mathematics.float3.zero + 2); Block newBlock = Block.PlaceNew(BlockIDs.MusicBlock, Unity.Mathematics.float3.zero + 2);
@ -131,14 +131,14 @@ namespace GamecraftModdingAPI.Blocks
Wire newWire = null; Wire newWire = null;
if (!Assert.Errorless(() => { newWire = b.Connect(0, target, 0);})) return; 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; 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() public static void TestSpecialiseError()
{ {
Block newBlock = Block.PlaceNew(BlockIDs.Bench, new float3(1, 1, 1)); 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; 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 #endif
} }

View file

@ -3,8 +3,6 @@ using System.Collections.Generic;
using System.Reflection; using System.Reflection;
using Gamecraft.Blocks.BlockGroups; using Gamecraft.Blocks.BlockGroups;
using Gamecraft.GUI.Blueprints; using Gamecraft.GUI.Blueprints;
using GamecraftModdingAPI.Engines;
using GamecraftModdingAPI.Utility;
using HarmonyLib; using HarmonyLib;
using RobocraftX.Blocks; using RobocraftX.Blocks;
using RobocraftX.Common; using RobocraftX.Common;
@ -15,12 +13,14 @@ using Svelto.ECS;
using Svelto.ECS.DataStructures; using Svelto.ECS.DataStructures;
using Svelto.ECS.EntityStructs; using Svelto.ECS.EntityStructs;
using Svelto.ECS.Serialization; using Svelto.ECS.Serialization;
using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;
using Unity.Collections; using Unity.Collections;
using Unity.Mathematics; using Unity.Mathematics;
using UnityEngine; using UnityEngine;
using Allocator = Svelto.Common.Allocator; using Allocator = Svelto.Common.Allocator;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public class BlueprintEngine : IFactoryEngine public class BlueprintEngine : IFactoryEngine
{ {

View file

@ -17,11 +17,10 @@ using Svelto.Tasks.ExtraLean;
using UnityEngine; using UnityEngine;
using UnityEngine.AddressableAssets; using UnityEngine.AddressableAssets;
using Material = UnityEngine.Material; using Material = UnityEngine.Material;
using GamecraftModdingAPI.Utility;
using ServiceLayer; using ServiceLayer;
using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
/// <summary> /// <summary>
/// Experimental support for adding custom blocks to the game. /// Experimental support for adding custom blocks to the game.

View file

@ -1,7 +1,7 @@
using System; using System;
using DataLoader; using DataLoader;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
[AttributeUsage(AttributeTargets.Class)] [AttributeUsage(AttributeTargets.Class)]
public class CustomBlockAttribute : Attribute public class CustomBlockAttribute : Attribute

View file

@ -1,14 +1,14 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using GamecraftModdingAPI.Engines; using TechbloxModdingAPI.Engines;
using GamecraftModdingAPI.Persistence; using TechbloxModdingAPI.Persistence;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
using RobocraftX.Common; using RobocraftX.Common;
using Svelto.ECS; using Svelto.ECS;
using Svelto.ECS.Experimental; using Svelto.ECS.Experimental;
using Svelto.ECS.Serialization; using Svelto.ECS.Serialization;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
/*public class CustomBlockEngine : IFactoryEngine /*public class CustomBlockEngine : IFactoryEngine
{ {

View file

@ -2,7 +2,7 @@ using RobocraftX.Blocks;
using RobocraftX.Common; using RobocraftX.Common;
using Svelto.ECS; using Svelto.ECS;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public class DampedSpring : Block public class DampedSpring : Block
{ {

View file

@ -1,7 +1,7 @@
using RobocraftX.Common; using RobocraftX.Common;
using Svelto.ECS; using Svelto.ECS;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public class LogicGate : SignalingBlock public class LogicGate : SignalingBlock
{ {

View file

@ -5,9 +5,9 @@ using RobocraftX.Common;
using Svelto.ECS; using Svelto.ECS;
using Unity.Mathematics; using Unity.Mathematics;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public class Motor : SignalingBlock public class Motor : SignalingBlock
{ {

View file

@ -4,11 +4,10 @@ using Svelto.ECS;
using Svelto.ECS.EntityStructs; using Svelto.ECS.EntityStructs;
using Unity.Transforms; using Unity.Transforms;
using Unity.Mathematics; using Unity.Mathematics;
using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Blocks
using GamecraftModdingAPI.Engines;
namespace GamecraftModdingAPI.Blocks
{ {
/// <summary> /// <summary>
/// Engine which executes block movement actions /// Engine which executes block movement actions

View file

@ -8,11 +8,11 @@ using RobocraftX.Blocks;
using Svelto.ECS; using Svelto.ECS;
using Unity.Mathematics; using Unity.Mathematics;
using GamecraftModdingAPI; using TechbloxModdingAPI;
using GamecraftModdingAPI.Tests; using TechbloxModdingAPI.Tests;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public class MusicBlock : SignalingBlock public class MusicBlock : SignalingBlock
{ {

View file

@ -2,7 +2,7 @@
using RobocraftX.Common; using RobocraftX.Common;
using Svelto.ECS; using Svelto.ECS;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public class ObjectIdentifier : Block public class ObjectIdentifier : Block
{ {

View file

@ -4,10 +4,10 @@ using RobocraftX.Blocks;
using Svelto.ECS; using Svelto.ECS;
using Unity.Mathematics; using Unity.Mathematics;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
using RobocraftX.Common; using RobocraftX.Common;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public class Piston : SignalingBlock public class Piston : SignalingBlock
{ {

View file

@ -13,13 +13,12 @@ using Svelto.ECS;
using Svelto.ECS.EntityStructs; using Svelto.ECS.EntityStructs;
using Unity.Mathematics; using Unity.Mathematics;
using UnityEngine; using UnityEngine;
using TechbloxModdingAPI.Players;
using GamecraftModdingAPI.Utility;
using GamecraftModdingAPI.Engines;
using GamecraftModdingAPI.Players;
using RobocraftX.Rendering.GPUI; using RobocraftX.Rendering.GPUI;
using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
/// <summary> /// <summary>
/// Engine which executes block placement actions /// Engine which executes block placement actions

View file

@ -4,11 +4,10 @@ using HarmonyLib;
using RobocraftX.Blocks; using RobocraftX.Blocks;
using RobocraftX.Common; using RobocraftX.Common;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Blocks
using GamecraftModdingAPI.Engines;
namespace GamecraftModdingAPI.Blocks
{ {
public class RemovalEngine : IApiEngine public class RemovalEngine : IApiEngine
{ {

View file

@ -4,11 +4,10 @@ using Svelto.ECS;
using Svelto.ECS.EntityStructs; using Svelto.ECS.EntityStructs;
using Unity.Mathematics; using Unity.Mathematics;
using UnityEngine; using UnityEngine;
using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Blocks
using GamecraftModdingAPI.Engines;
namespace GamecraftModdingAPI.Blocks
{ {
/// <summary> /// <summary>
/// Engine which executes block movement actions /// Engine which executes block movement actions

View file

@ -5,11 +5,10 @@ using RobocraftX.Common;
using RobocraftX.UECS; using RobocraftX.UECS;
using Svelto.ECS; using Svelto.ECS;
using Unity.Entities; using Unity.Entities;
using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Engines; namespace TechbloxModdingAPI.Blocks
using GamecraftModdingAPI.Utility;
namespace GamecraftModdingAPI.Blocks
{ {
public class ScalingEngine : IApiEngine public class ScalingEngine : IApiEngine
{ {

View file

@ -5,9 +5,9 @@ using RobocraftX.Common;
using Svelto.ECS; using Svelto.ECS;
using Unity.Mathematics; using Unity.Mathematics;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public class Servo : SignalingBlock public class Servo : SignalingBlock
{ {

View file

@ -6,7 +6,7 @@ using RobocraftX.Blocks;
using RobocraftX.Common; using RobocraftX.Common;
using Svelto.ECS; using Svelto.ECS;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public class SfxBlock : SignalingBlock public class SfxBlock : SignalingBlock
{ {

View file

@ -2,10 +2,9 @@
using Svelto.ECS; using Svelto.ECS;
using Svelto.DataStructures; using Svelto.DataStructures;
using Gamecraft.Wires; using Gamecraft.Wires;
using TechbloxModdingAPI.Engines;
using GamecraftModdingAPI.Engines; namespace TechbloxModdingAPI.Blocks
namespace GamecraftModdingAPI.Blocks
{ {
/// <summary> /// <summary>
/// Engine which executes signal actions /// Engine which executes signal actions

View file

@ -4,10 +4,10 @@ using Gamecraft.Wires;
using Svelto.ECS; using Svelto.ECS;
using Unity.Mathematics; using Unity.Mathematics;
using GamecraftModdingAPI; using TechbloxModdingAPI;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
/// <summary> /// <summary>
/// Common implementation for blocks that support wiring. /// Common implementation for blocks that support wiring.

View file

@ -6,10 +6,10 @@ using Gamecraft.CharacterVulnerability;
using Svelto.ECS; using Svelto.ECS;
using Unity.Mathematics; using Unity.Mathematics;
using GamecraftModdingAPI; using TechbloxModdingAPI;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public class SpawnPoint : Block public class SpawnPoint : Block
{ {

View file

@ -5,10 +5,10 @@ using RobocraftX.Common;
using Svelto.ECS; using Svelto.ECS;
using Unity.Mathematics; using Unity.Mathematics;
using GamecraftModdingAPI; using TechbloxModdingAPI;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public class TextBlock : SignalingBlock public class TextBlock : SignalingBlock
{ {

View file

@ -6,10 +6,10 @@ using Gamecraft.Blocks.TimerBlock;
using Svelto.ECS; using Svelto.ECS;
using Unity.Mathematics; using Unity.Mathematics;
using GamecraftModdingAPI; using TechbloxModdingAPI;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public class Timer : SignalingBlock public class Timer : SignalingBlock
{ {

View file

@ -4,9 +4,9 @@ using Gamecraft.Wires;
using Svelto.ECS; using Svelto.ECS;
using Svelto.ECS.Experimental; using Svelto.ECS.Experimental;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Blocks namespace TechbloxModdingAPI.Blocks
{ {
public class Wire public class Wire
{ {

View file

@ -2,7 +2,7 @@
using Unity.Mathematics; using Unity.Mathematics;
using UnityEngine; using UnityEngine;
namespace GamecraftModdingAPI namespace TechbloxModdingAPI
{ {
/// <summary> /// <summary>
/// Represents a blueprint in the inventory. When placed it becomes a block group. /// Represents a blueprint in the inventory. When placed it becomes a block group.

View file

@ -2,7 +2,7 @@
using RobocraftX.Common; using RobocraftX.Common;
using Svelto.ECS; using Svelto.ECS;
namespace GamecraftModdingAPI namespace TechbloxModdingAPI
{ {
/// <summary> /// <summary>
/// Represnts a cluster of blocks in time running mode, meaning blocks that are connected either directly or via joints. /// Represnts a cluster of blocks in time running mode, meaning blocks that are connected either directly or via joints.

View file

@ -1,10 +1,9 @@
using System; using System;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Commands
namespace GamecraftModdingAPI.Commands
{ {
/// <summary> /// <summary>
/// Custom Command builder. /// Custom Command builder.

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace GamecraftModdingAPI.Commands namespace TechbloxModdingAPI.Commands
{ {
/// <summary> /// <summary>
/// UNIMPLEMENTED! /// UNIMPLEMENTED!

View file

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

View file

@ -5,10 +5,9 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Commands
namespace GamecraftModdingAPI.Commands
{ {
/// <summary> /// <summary>
/// Keeps track of custom commands /// Keeps track of custom commands

View file

@ -8,7 +8,7 @@ using RobocraftX.CR.MainGame;
using RobocraftX.Multiplayer; using RobocraftX.Multiplayer;
using RobocraftX.StateSync; using RobocraftX.StateSync;
namespace GamecraftModdingAPI.Commands namespace TechbloxModdingAPI.Commands
{ {
/// <summary> /// <summary>
/// Patch of RobocraftX.CR.MainGame.MainGameCompositionRoot.DeterministicCompose<T>() /// Patch of RobocraftX.CR.MainGame.MainGameCompositionRoot.DeterministicCompose<T>()

View file

@ -7,7 +7,7 @@ using System.Threading.Tasks;
using uREPL; using uREPL;
using RobocraftX.CommandLine.Custom; using RobocraftX.CommandLine.Custom;
namespace GamecraftModdingAPI.Commands namespace TechbloxModdingAPI.Commands
{ {
/// <summary> /// <summary>
/// Convenient methods for registering commands to Gamecraft. /// Convenient methods for registering commands to Gamecraft.

View file

@ -2,7 +2,7 @@
using uREPL; using uREPL;
namespace GamecraftModdingAPI.Commands namespace TechbloxModdingAPI.Commands
{ {
public static class ExistingCommands public static class ExistingCommands
{ {

View file

@ -6,10 +6,10 @@ using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Engines; using TechbloxModdingAPI.Engines;
namespace GamecraftModdingAPI.Commands namespace TechbloxModdingAPI.Commands
{ {
/// <summary> /// <summary>
/// Engine interface to handle command operations. /// Engine interface to handle command operations.

View file

@ -5,10 +5,9 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Commands
namespace GamecraftModdingAPI.Commands
{ {
/// <summary> /// <summary>
/// A simple implementation of ICustomCommandEngine sufficient for most commands. /// A simple implementation of ICustomCommandEngine sufficient for most commands.
@ -37,13 +36,13 @@ namespace GamecraftModdingAPI.Commands
public void Dispose() public void Dispose()
{ {
GamecraftModdingAPI.Utility.Logging.MetaDebugLog($"Unregistering SimpleCustomCommandEngine {this.Name}"); Logging.MetaDebugLog($"Unregistering SimpleCustomCommandEngine {this.Name}");
CommandRegistrationHelper.Unregister(this.Name); CommandRegistrationHelper.Unregister(this.Name);
} }
public void Ready() 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); CommandRegistrationHelper.Register(this.Name, this.InvokeCatchError, this.Description);
} }

View file

@ -5,10 +5,9 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Commands
namespace GamecraftModdingAPI.Commands
{ {
/// <summary> /// <summary>
/// A simple implementation of ICustomCommandEngine sufficient for most commands. /// A simple implementation of ICustomCommandEngine sufficient for most commands.
@ -28,13 +27,13 @@ namespace GamecraftModdingAPI.Commands
public void Dispose() public void Dispose()
{ {
GamecraftModdingAPI.Utility.Logging.MetaDebugLog($"Unregistering SimpleCustomCommandEngine {this.Name}"); Logging.MetaDebugLog($"Unregistering SimpleCustomCommandEngine {this.Name}");
CommandRegistrationHelper.Unregister(this.Name); CommandRegistrationHelper.Unregister(this.Name);
} }
public void Ready() 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); CommandRegistrationHelper.Register<A>(this.Name, this.InvokeCatchError, this.Description);
} }

View file

@ -5,10 +5,9 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Commands
namespace GamecraftModdingAPI.Commands
{ {
/// <summary> /// <summary>
/// A simple implementation of ICustomCommandEngine sufficient for most commands. /// A simple implementation of ICustomCommandEngine sufficient for most commands.
@ -28,13 +27,13 @@ namespace GamecraftModdingAPI.Commands
public void Dispose() public void Dispose()
{ {
GamecraftModdingAPI.Utility.Logging.MetaDebugLog($"Unregistering SimpleCustomCommandEngine {this.Name}"); Logging.MetaDebugLog($"Unregistering SimpleCustomCommandEngine {this.Name}");
CommandRegistrationHelper.Unregister(this.Name); CommandRegistrationHelper.Unregister(this.Name);
} }
public void Ready() 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); CommandRegistrationHelper.Register<A,B>(this.Name, this.InvokeCatchError, this.Description);
} }

View file

@ -5,10 +5,9 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Commands
namespace GamecraftModdingAPI.Commands
{ {
/// <summary> /// <summary>
/// A simple implementation of ICustomCommandEngine sufficient for most commands. /// A simple implementation of ICustomCommandEngine sufficient for most commands.
@ -28,13 +27,13 @@ namespace GamecraftModdingAPI.Commands
public void Dispose() public void Dispose()
{ {
GamecraftModdingAPI.Utility.Logging.MetaDebugLog($"Unregistering SimpleCustomCommandEngine {this.Name}"); Logging.MetaDebugLog($"Unregistering SimpleCustomCommandEngine {this.Name}");
CommandRegistrationHelper.Unregister(this.Name); CommandRegistrationHelper.Unregister(this.Name);
} }
public void Ready() 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); CommandRegistrationHelper.Register<A,B,C>(this.Name, this.InvokeCatchError, this.Description);
} }

View file

@ -6,10 +6,10 @@ using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
namespace GamecraftModdingAPI.Engines namespace TechbloxModdingAPI.Engines
{ {
/// <summary> /// <summary>
/// Base engine interface used by all GamecraftModdingAPI engines /// Base engine interface used by all TechbloxModdingAPI engines
/// </summary> /// </summary>
public interface IApiEngine : IEngine, IQueryingEntitiesEngine, IDisposable public interface IApiEngine : IEngine, IQueryingEntitiesEngine, IDisposable
{ {

View file

@ -6,9 +6,9 @@ using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Engines namespace TechbloxModdingAPI.Engines
{ {
/// <summary> /// <summary>
/// Engine interface to create a ModEventEntityStruct in entitiesDB when Emit() is called. /// Engine interface to create a ModEventEntityStruct in entitiesDB when Emit() is called.

View file

@ -7,9 +7,9 @@ using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
using Svelto.ECS.Internal; using Svelto.ECS.Internal;
using GamecraftModdingAPI.Events; using TechbloxModdingAPI.Events;
namespace GamecraftModdingAPI.Engines namespace TechbloxModdingAPI.Engines
{ {
/// <summary> /// <summary>
/// Engine interface to handle ModEventEntityStruct events emitted by IEventEmitterEngines. /// Engine interface to handle ModEventEntityStruct events emitted by IEventEmitterEngines.

View file

@ -10,9 +10,9 @@ using Svelto.ECS;
using RobocraftX.Common; using RobocraftX.Common;
using RobocraftX.StateSync; using RobocraftX.StateSync;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Events namespace TechbloxModdingAPI.Events
{ {
/// <summary> /// <summary>
/// Patch of RobocraftX.StateSync.DeterministicStepCompositionRoot.ComposeEnginesGroups(...) /// Patch of RobocraftX.StateSync.DeterministicStepCompositionRoot.ComposeEnginesGroups(...)

View file

@ -2,7 +2,7 @@
using Svelto.ECS; using Svelto.ECS;
namespace GamecraftModdingAPI.Events namespace TechbloxModdingAPI.Events
{ {
[Obsolete] [Obsolete]
public class EmitterBuilder public class EmitterBuilder

View file

@ -6,7 +6,7 @@ using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
namespace GamecraftModdingAPI.Events namespace TechbloxModdingAPI.Events
{ {
/// <summary> /// <summary>
/// Convenient factories for mod event engines /// Convenient factories for mod event engines

View file

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

View file

@ -5,16 +5,15 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Events
namespace GamecraftModdingAPI.Events
{ {
/// <summary> /// <summary>
/// Keeps track of event handlers and emitters. /// Keeps track of event handlers and emitters.
/// This is used to add, remove and get API event handlers and emitters. /// This is used to add, remove and get API event handlers and emitters.
/// </summary> /// </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 public static class EventManager
{ {
private static Dictionary<string, IEventEmitterEngine> _eventEmitters = new Dictionary<string, IEventEmitterEngine>(); private static Dictionary<string, IEventEmitterEngine> _eventEmitters = new Dictionary<string, IEventEmitterEngine>();

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace GamecraftModdingAPI.Events namespace TechbloxModdingAPI.Events
{ {
/// <summary> /// <summary>
/// Built-in event types. /// Built-in event types.

View file

@ -9,10 +9,9 @@ using HarmonyLib;
using RobocraftX.CR.MainGame; using RobocraftX.CR.MainGame;
using Svelto.ECS; using Svelto.ECS;
using Unity.Entities; using Unity.Entities;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Events
namespace GamecraftModdingAPI.Events
{ {
/// <summary> /// <summary>
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame() /// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame()

View file

@ -7,9 +7,9 @@ using System.Threading.Tasks;
using HarmonyLib; using HarmonyLib;
using RobocraftX; using RobocraftX;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Events namespace TechbloxModdingAPI.Events
{ {
/// <summary> /// <summary>
/// Patch of RobocraftX.FullGameCompositionRoot.ReloadGame() /// Patch of RobocraftX.FullGameCompositionRoot.ReloadGame()

View file

@ -4,10 +4,9 @@ using Unity.Jobs;
using RobocraftX.SimulationModeState; using RobocraftX.SimulationModeState;
using RobocraftX.StateSync; using RobocraftX.StateSync;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Events
namespace GamecraftModdingAPI.Events
{ {
/// <summary> /// <summary>
/// Event emitter engine for switching to to build mode. /// Event emitter engine for switching to to build mode.

View file

@ -4,10 +4,9 @@ using Unity.Jobs;
using RobocraftX.SimulationModeState; using RobocraftX.SimulationModeState;
using RobocraftX.StateSync; using RobocraftX.StateSync;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Events
namespace GamecraftModdingAPI.Events
{ {
/// <summary> /// <summary>
/// Event emitter engine for switching to simulation mode. /// Event emitter engine for switching to simulation mode.

View file

@ -10,9 +10,9 @@ using RobocraftX;
using RobocraftX.CR.MainGame; using RobocraftX.CR.MainGame;
using Svelto.ECS; using Svelto.ECS;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Events namespace TechbloxModdingAPI.Events
{ {
/// <summary> /// <summary>
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame() /// Patch of RobocraftX.FullGameCompositionRoot.ActivateGame()

View file

@ -2,7 +2,7 @@
using Svelto.ECS; using Svelto.ECS;
namespace GamecraftModdingAPI.Events namespace TechbloxModdingAPI.Events
{ {
[Obsolete] [Obsolete]
public class HandlerBuilder public class HandlerBuilder

View file

@ -5,10 +5,9 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Engines;
using GamecraftModdingAPI.Engines; namespace TechbloxModdingAPI.Events
namespace GamecraftModdingAPI.Events
{ {
/// <summary> /// <summary>
/// Engine interface to create a ModEventEntityStruct in entitiesDB when a specific event occurs. /// Engine interface to create a ModEventEntityStruct in entitiesDB when a specific event occurs.

View file

@ -6,10 +6,9 @@ using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
using Svelto.ECS.Internal; using Svelto.ECS.Internal;
using TechbloxModdingAPI.Engines;
using GamecraftModdingAPI.Engines; namespace TechbloxModdingAPI.Events
namespace GamecraftModdingAPI.Events
{ {
/// <summary> /// <summary>
/// Engine interface to handle ModEventEntityStruct events emitted by IEventEmitterEngines. /// Engine interface to handle ModEventEntityStruct events emitted by IEventEmitterEngines.

View file

@ -7,10 +7,9 @@ using System.Threading.Tasks;
using HarmonyLib; using HarmonyLib;
using RobocraftX; using RobocraftX;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Events
namespace GamecraftModdingAPI.Events
{ {
/// <summary> /// <summary>
/// Patch of RobocraftX.FullGameCompositionRoot.ActivateMenu() /// Patch of RobocraftX.FullGameCompositionRoot.ActivateMenu()

View file

@ -7,10 +7,9 @@ using System.Threading.Tasks;
using HarmonyLib; using HarmonyLib;
using RobocraftX; using RobocraftX;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Events
namespace GamecraftModdingAPI.Events
{ {
/// <summary> /// <summary>
/// Patch of RobocraftX.FullGameCompositionRoot.SwitchToMenu() /// Patch of RobocraftX.FullGameCompositionRoot.SwitchToMenu()

View file

@ -6,7 +6,7 @@ using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
namespace GamecraftModdingAPI.Events namespace TechbloxModdingAPI.Events
{ {
/// <summary> /// <summary>
/// EntityDescriptor for creating ModEventEntityStructs /// EntityDescriptor for creating ModEventEntityStructs

View file

@ -6,7 +6,7 @@ using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
namespace GamecraftModdingAPI.Events namespace TechbloxModdingAPI.Events
{ {
/// <summary> /// <summary>
/// The event entity struct /// The event entity struct

View file

@ -5,9 +5,9 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Events namespace TechbloxModdingAPI.Events
{ {
/// <summary> /// <summary>
/// A simple implementation of IEventEmitterEngine sufficient for most uses /// A simple implementation of IEventEmitterEngine sufficient for most uses

View file

@ -5,10 +5,9 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Events
namespace GamecraftModdingAPI.Events
{ {
/// <summary> /// <summary>
/// A simple implementation of IEventHandlerEngine sufficient for most uses /// A simple implementation of IEventHandlerEngine sufficient for most uses

View file

@ -1,13 +1,12 @@
using GamecraftModdingAPI.Players;
using GamecraftModdingAPI.Utility;
using RobocraftX.Physics; using RobocraftX.Physics;
using Svelto.ECS.EntityStructs; using Svelto.ECS.EntityStructs;
using Techblox.FlyCam; using Techblox.FlyCam;
using TechbloxModdingAPI.Players;
using TechbloxModdingAPI.Utility;
using Unity.Mathematics; using Unity.Mathematics;
using UnityEngine; using UnityEngine;
namespace GamecraftModdingAPI namespace TechbloxModdingAPI
{ {
public class FlyCam public class FlyCam
{ {

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Runtime.Serialization; using System.Runtime.Serialization;
namespace GamecraftModdingAPI namespace TechbloxModdingAPI
{ {
public class GamecraftModdingAPIException : Exception public class GamecraftModdingAPIException : Exception
{ {

View file

@ -3,10 +3,9 @@
using RobocraftX.Common; using RobocraftX.Common;
using RobocraftX.Common.Input; using RobocraftX.Common.Input;
using Svelto.ECS; using Svelto.ECS;
using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Utility; namespace TechbloxModdingAPI.Input
namespace GamecraftModdingAPI.Input
{ {
public static class FakeInput public static class FakeInput
{ {

View file

@ -5,10 +5,10 @@ using RobocraftX.Common.Input;
using RobocraftX.Players; using RobocraftX.Players;
using Svelto.ECS; using Svelto.ECS;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Engines; using TechbloxModdingAPI.Engines;
namespace GamecraftModdingAPI.Input namespace TechbloxModdingAPI.Input
{ {
public class FakeInputEngine : IApiEngine public class FakeInputEngine : IApiEngine
{ {

View file

@ -2,7 +2,7 @@ using System;
using Unity.Mathematics; using Unity.Mathematics;
using UnityEngine; using UnityEngine;
namespace GamecraftModdingAPI.Interface.IMGUI namespace TechbloxModdingAPI.Interface.IMGUI
{ {
/// <summary> /// <summary>
/// A clickable button. /// A clickable button.

View file

@ -3,7 +3,7 @@ using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Globalization; using System.Globalization;
using System.Reflection; using System.Reflection;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
using HarmonyLib; using HarmonyLib;
using Svelto.Tasks; using Svelto.Tasks;
using Svelto.Tasks.Lean; using Svelto.Tasks.Lean;
@ -11,7 +11,7 @@ using UnityEngine;
using UnityEngine.AddressableAssets; using UnityEngine.AddressableAssets;
using UnityEngine.ResourceManagement.AsyncOperations; using UnityEngine.ResourceManagement.AsyncOperations;
namespace GamecraftModdingAPI.Interface.IMGUI namespace TechbloxModdingAPI.Interface.IMGUI
{ {
/// <summary> /// <summary>
/// Convenient IMGUI values. /// Convenient IMGUI values.

View file

@ -1,9 +1,9 @@
using System; using System;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
using Svelto.DataStructures; using Svelto.DataStructures;
using UnityEngine; using UnityEngine;
namespace GamecraftModdingAPI.Interface.IMGUI namespace TechbloxModdingAPI.Interface.IMGUI
{ {
/// <summary> /// <summary>
/// A group of elements. /// A group of elements.
@ -80,7 +80,7 @@ namespace GamecraftModdingAPI.Interface.IMGUI
} }
/// <summary> /// <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> /// </summary>
/// <param name="box">The rectangular area to use in the window.</param> /// <param name="box">The rectangular area to use in the window.</param>
/// <param name="name">Name of the group.</param> /// <param name="name">Name of the group.</param>

View file

@ -1,8 +1,8 @@
using System; using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using GamecraftModdingAPI.App; using TechbloxModdingAPI.App;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
using Rewired.Internal; using Rewired.Internal;
using Svelto.DataStructures; using Svelto.DataStructures;
using Svelto.Tasks; using Svelto.Tasks;
@ -10,7 +10,7 @@ using Svelto.Tasks.ExtraLean;
using Svelto.Tasks.ExtraLean.Unity; using Svelto.Tasks.ExtraLean.Unity;
using UnityEngine; using UnityEngine;
namespace GamecraftModdingAPI.Interface.IMGUI namespace TechbloxModdingAPI.Interface.IMGUI
{ {
/// <summary> /// <summary>
/// Keeps track of UIElement instances. /// Keeps track of UIElement instances.

View file

@ -1,6 +1,6 @@
using UnityEngine; using UnityEngine;
namespace GamecraftModdingAPI.Interface.IMGUI namespace TechbloxModdingAPI.Interface.IMGUI
{ {
/// <summary> /// <summary>
/// An image. /// An image.
@ -44,7 +44,7 @@ namespace GamecraftModdingAPI.Interface.IMGUI
public bool Enabled { set; get; } = true; public bool Enabled { set; get; } = true;
/// <summary> /// <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> /// </summary>
/// <param name="texture">Image to display.</param> /// <param name="texture">Image to display.</param>
/// <param name="name">The element's name.</param> /// <param name="name">The element's name.</param>
@ -72,7 +72,7 @@ namespace GamecraftModdingAPI.Interface.IMGUI
} }
/// <summary> /// <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> /// </summary>
/// <param name="box">Rectangular area for the image.</param> /// <param name="box">Rectangular area for the image.</param>
/// <param name="texture">Image to display.</param> /// <param name="texture">Image to display.</param>

View file

@ -1,6 +1,6 @@
using UnityEngine; using UnityEngine;
namespace GamecraftModdingAPI.Interface.IMGUI namespace TechbloxModdingAPI.Interface.IMGUI
{ {
/// <summary> /// <summary>
/// A simple text label. /// A simple text label.
@ -43,7 +43,7 @@ namespace GamecraftModdingAPI.Interface.IMGUI
public bool Enabled { set; get; } = true; public bool Enabled { set; get; } = true;
/// <summary> /// <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> /// </summary>
/// <param name="initialText">Initial string to display on the label.</param> /// <param name="initialText">Initial string to display on the label.</param>
/// <param name="name">The element's name.</param> /// <param name="name">The element's name.</param>
@ -63,7 +63,7 @@ namespace GamecraftModdingAPI.Interface.IMGUI
} }
/// <summary> /// <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> /// </summary>
/// <param name="box">Rectangular area for the label.</param> /// <param name="box">Rectangular area for the label.</param>
/// <param name="initialText">Initial string to display on the label.</param> /// <param name="initialText">Initial string to display on the label.</param>

View file

@ -1,7 +1,7 @@
using System; using System;
using UnityEngine; using UnityEngine;
namespace GamecraftModdingAPI.Interface.IMGUI namespace TechbloxModdingAPI.Interface.IMGUI
{ {
/// <summary> /// <summary>
/// A text input field. /// A text input field.

View file

@ -1,6 +1,6 @@
using System; using System;
namespace GamecraftModdingAPI.Interface.IMGUI namespace TechbloxModdingAPI.Interface.IMGUI
{ {
/// <summary> /// <summary>
/// GUI Element like a text field, button or picture. /// GUI Element like a text field, button or picture.

View file

@ -2,12 +2,11 @@
using RobocraftX.Common.Input; using RobocraftX.Common.Input;
using RobocraftX.Multiplayer.Input; using RobocraftX.Multiplayer.Input;
using GamecraftModdingAPI.Blocks;
using GamecraftModdingAPI.Utility;
using HarmonyLib; using HarmonyLib;
using TechbloxModdingAPI.Blocks;
using TechbloxModdingAPI.Utility;
namespace GamecraftModdingAPI.Inventory namespace TechbloxModdingAPI.Inventory
{ {
public static class Hotbar public static class Hotbar
{ {

View file

@ -8,13 +8,13 @@ using RobocraftX.Common.Input;
using RobocraftX.Common.Players; using RobocraftX.Common.Players;
using Svelto.ECS; using Svelto.ECS;
using GamecraftModdingAPI.Blocks; using TechbloxModdingAPI.Blocks;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
using GamecraftModdingAPI.Engines;
using RobocraftX.Blocks; using RobocraftX.Blocks;
using Techblox.FlyCam; using Techblox.FlyCam;
using TechbloxModdingAPI.Engines;
namespace GamecraftModdingAPI.Inventory namespace TechbloxModdingAPI.Inventory
{ {
public class HotbarEngine : IApiEngine public class HotbarEngine : IApiEngine
{ {

View file

@ -4,9 +4,9 @@ using System.Reflection;
using Svelto.ECS; using Svelto.ECS;
using HarmonyLib; using HarmonyLib;
using GamecraftModdingAPI.Blocks; using TechbloxModdingAPI.Blocks;
namespace GamecraftModdingAPI.Inventory namespace TechbloxModdingAPI.Inventory
{ {
[HarmonyPatch] [HarmonyPatch]
public class HotbarSlotSelectionHandlerEnginePatch public class HotbarSlotSelectionHandlerEnginePatch

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