Rename API references

This commit is contained in:
Norbi Peti 2021-05-02 02:00:06 +02:00
parent 160eecabb7
commit c4f0198965
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56
5 changed files with 19 additions and 19 deletions

View file

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

View file

@ -2,13 +2,13 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using DataLoader; using DataLoader;
using GamecraftModdingAPI; using TechbloxModdingAPI;
using GamecraftModdingAPI.Blocks; using TechbloxModdingAPI.Blocks;
using GamecraftModdingAPI.Commands; using TechbloxModdingAPI.Commands;
using GamecraftModdingAPI.Utility; using TechbloxModdingAPI.Utility;
using IllusionPlugin; using IllusionPlugin;
using Unity.Mathematics; using Unity.Mathematics;
using Main = GamecraftModdingAPI.Main; using Main = TechbloxModdingAPI.Main;
namespace BuildingTools namespace BuildingTools
{ {
@ -282,7 +282,7 @@ namespace BuildingTools
{ {
var player = Player.LocalPlayer; var player = Player.LocalPlayer;
if (player == null) return ""; 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 pos = cam?.Position ?? player.Position;
float3 rot = cam?.Rotation ?? player.Rotation; float3 rot = cam?.Rotation ?? player.Rotation;
float3 vel = cam?.Velocity ?? player.Velocity; float3 vel = cam?.Velocity ?? player.Velocity;

View file

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

View file

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

View file

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