Browse Source

Rename API references

tags/v1.2.0
NorbiPeti 3 years ago
parent
commit
c4f0198965
Signed by: NorbiPeti <szatmari.norbert.peter@gmail.com> GPG Key ID: DBA4C4549A927E56
5 changed files with 19 additions and 19 deletions
  1. +3
    -3
      BuildingTools/BlockSelections.cs
  2. +6
    -6
      BuildingTools/BuildingTools.cs
  3. +2
    -2
      BuildingTools/BuildingTools.csproj
  4. +3
    -3
      BuildingTools/CommandUtils.cs
  5. +5
    -5
      BuildingTools/NoClipCommand.cs

+ 3
- 3
BuildingTools/BlockSelections.cs View File

@@ -1,7 +1,7 @@
using System.Linq;
using GamecraftModdingAPI;
using GamecraftModdingAPI.Blocks;
using GamecraftModdingAPI.Utility;
using TechbloxModdingAPI;
using TechbloxModdingAPI.Blocks;
using TechbloxModdingAPI.Utility;

namespace BuildingTools
{


+ 6
- 6
BuildingTools/BuildingTools.cs View File

@@ -2,13 +2,13 @@ using System;
using System.Collections.Generic;
using System.Linq;
using DataLoader;
using GamecraftModdingAPI;
using GamecraftModdingAPI.Blocks;
using GamecraftModdingAPI.Commands;
using GamecraftModdingAPI.Utility;
using TechbloxModdingAPI;
using TechbloxModdingAPI.Blocks;
using TechbloxModdingAPI.Commands;
using TechbloxModdingAPI.Utility;
using IllusionPlugin;
using Unity.Mathematics;
using Main = GamecraftModdingAPI.Main;
using Main = TechbloxModdingAPI.Main;

namespace BuildingTools
{
@@ -282,7 +282,7 @@ namespace BuildingTools
{
var player = Player.LocalPlayer;
if (player == null) return "";
GamecraftModdingAPI.FlyCam cam = GameState.IsBuildMode() ? player.BuildCamera : null;
TechbloxModdingAPI.FlyCam cam = GameState.IsBuildMode() ? player.BuildCamera : null;
//float3 pos = cam?.Position ?? player.Position;
float3 rot = cam?.Rotation ?? player.Rotation;
float3 vel = cam?.Velocity ?? player.Velocity;


+ 2
- 2
BuildingTools/BuildingTools.csproj View File

@@ -241,8 +241,8 @@
<Reference Include="Gamecraft.Wires.Mockup, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\ref\TechbloxPreview_Data\Managed\Gamecraft.Wires.Mockup.dll</HintPath>
</Reference>
<Reference Include="GamecraftModdingAPI">
<HintPath>..\..\GamecraftModdingAPI\GamecraftModdingAPI\bin\Debug\net472\GamecraftModdingAPI.dll</HintPath>
<Reference Include="TechbloxModdingAPI">
<HintPath>..\..\GamecraftModdingAPI\TechbloxModdingAPI\bin\Debug\net472\TechbloxModdingAPI.dll</HintPath>
</Reference>
<Reference Include="GameState, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\ref\TechbloxPreview_Data\Managed\GameState.dll</HintPath>


+ 3
- 3
BuildingTools/CommandUtils.cs View File

@@ -1,8 +1,8 @@
using System;
using Gamecraft.Wires;
using GamecraftModdingAPI;
using GamecraftModdingAPI.Commands;
using GamecraftModdingAPI.Utility;
using TechbloxModdingAPI;
using TechbloxModdingAPI.Commands;
using TechbloxModdingAPI.Utility;
using RobocraftX.CommandLine.Custom;

namespace BuildingTools


+ 5
- 5
BuildingTools/NoClipCommand.cs View File

@@ -1,10 +1,10 @@
using System;
using System.Collections;
using System.Reflection;
using GamecraftModdingAPI;
using GamecraftModdingAPI.Engines;
using GamecraftModdingAPI.Players;
using GamecraftModdingAPI.Utility;
using TechbloxModdingAPI;
using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Players;
using TechbloxModdingAPI.Utility;
using HarmonyLib;
using RobocraftX.Character;
using RobocraftX.Character.Factories;
@@ -41,7 +41,7 @@ namespace BuildingTools
if (_entityManager == default) _entityManager = FullGameFields._physicsWorld.EntityManager;
Logging.CommandLog("Enabling noclip");
_oldFilter = ChangeCollider(_collisionFilter);
OnUpdate().RunOn(GamecraftModdingAPI.Tasks.Scheduler.extraLeanRunner);
OnUpdate().RunOn(TechbloxModdingAPI.Tasks.Scheduler.extraLeanRunner);
_enabled = true;
Logging.CommandLog("Noclip enabled");
}


Loading…
Cancel
Save