From 55344d1352a5301a8d54da61316733deda8cf349 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Wed, 1 Jun 2022 16:54:17 +0200 Subject: [PATCH] Start updating to Techblox 2022.05.25.11.05 Resolved compiler errors Mostly by removing erroring code --- CodeGenerator/BlockClassGenerator.cs | 2 +- CodeGenerator/CodeGenerator.csproj | 94 +++++++++++++++++-- CodeGenerator/Program.cs | 6 +- TechbloxModdingAPI/Block.cs | 7 +- TechbloxModdingAPI/Blocks/BlockIDs.cs | 34 ++++++- TechbloxModdingAPI/Blocks/BlockMaterial.cs | 10 +- .../Blocks/Engines/BlockEngine.cs | 28 +++--- .../Blocks/Engines/MovementEngine.cs | 2 +- .../Blocks/Engines/RotationEngine.cs | 4 +- .../Blocks/Engines/SignalEngine.cs | 4 +- TechbloxModdingAPI/Blocks/Servo.cs | 32 +++---- TechbloxModdingAPI/TechbloxModdingAPI.csproj | 4 + 12 files changed, 174 insertions(+), 53 deletions(-) diff --git a/CodeGenerator/BlockClassGenerator.cs b/CodeGenerator/BlockClassGenerator.cs index 77d4ad4..81cd00f 100644 --- a/CodeGenerator/BlockClassGenerator.cs +++ b/CodeGenerator/BlockClassGenerator.cs @@ -67,7 +67,7 @@ namespace CodeGenerator codeUnit.Namespaces.Add(ns); var provider = CodeDomProvider.CreateProvider("CSharp"); - var path = $@"..\..\..\..\TechbloxModdingAPI\Blocks\{name}.cs"; + var path = $@"../../../../TechbloxModdingAPI/Blocks/{name}.cs"; using (var sw = new StreamWriter(path)) { provider.GenerateCodeFromCompileUnit(codeUnit, sw, new CodeGeneratorOptions {BracingStyle = "C"}); diff --git a/CodeGenerator/CodeGenerator.csproj b/CodeGenerator/CodeGenerator.csproj index e02e6a8..32255ac 100644 --- a/CodeGenerator/CodeGenerator.csproj +++ b/CodeGenerator/CodeGenerator.csproj @@ -419,6 +419,10 @@ ..\ref\Techblox_Data\Managed\RobocraftX.GUI.PauseMenu.dll ..\..\ref\Techblox_Data\Managed\RobocraftX.GUI.PauseMenu.dll + + ..\ref\Techblox_Data\Managed\RobocraftX.GUI.QuitConfirmation.dll + ..\..\ref\Techblox_Data\Managed\RobocraftX.GUI.QuitConfirmation.dll + ..\ref\Techblox_Data\Managed\RobocraftX.GUI.ScaleGhost.dll ..\..\ref\Techblox_Data\Managed\RobocraftX.GUI.ScaleGhost.dll @@ -595,10 +599,6 @@ ..\ref\Techblox_Data\Managed\Techblox.Blocks.Connections.dll ..\..\ref\Techblox_Data\Managed\Techblox.Blocks.Connections.dll - - ..\ref\Techblox_Data\Managed\Techblox.Blocks.Debug.Client.Monobehaviours.dll - ..\..\ref\Techblox_Data\Managed\Techblox.Blocks.Debug.Client.Monobehaviours.dll - ..\ref\Techblox_Data\Managed\Techblox.Blocks.LightBlock.dll ..\..\ref\Techblox_Data\Managed\Techblox.Blocks.LightBlock.dll @@ -607,6 +607,10 @@ ..\ref\Techblox_Data\Managed\Techblox.Building.Rules.dll ..\..\ref\Techblox_Data\Managed\Techblox.Building.Rules.dll + + ..\ref\Techblox_Data\Managed\Techblox.Building.Shift.dll + ..\..\ref\Techblox_Data\Managed\Techblox.Building.Shift.dll + ..\ref\Techblox_Data\Managed\Techblox.BuildingDrone.dll ..\..\ref\Techblox_Data\Managed\Techblox.BuildingDrone.dll @@ -731,6 +735,14 @@ ..\ref\Techblox_Data\Managed\Techblox.GUI.BuildRules.dll ..\..\ref\Techblox_Data\Managed\Techblox.GUI.BuildRules.dll + + ..\ref\Techblox_Data\Managed\Techblox.GUI.Collection.dll + ..\..\ref\Techblox_Data\Managed\Techblox.GUI.Collection.dll + + + ..\ref\Techblox_Data\Managed\Techblox.GUI.Commands.dll + ..\..\ref\Techblox_Data\Managed\Techblox.GUI.Commands.dll + ..\ref\Techblox_Data\Managed\Techblox.GUI.Controls.dll ..\..\ref\Techblox_Data\Managed\Techblox.GUI.Controls.dll @@ -775,18 +787,26 @@ ..\ref\Techblox_Data\Managed\Techblox.GUI.MainGame.dll ..\..\ref\Techblox_Data\Managed\Techblox.GUI.MainGame.dll + + ..\ref\Techblox_Data\Managed\Techblox.GUI.MainGame.StateMachine.dll + ..\..\ref\Techblox_Data\Managed\Techblox.GUI.MainGame.StateMachine.dll + ..\ref\Techblox_Data\Managed\Techblox.GUI.MyGamesScreen.dll ..\..\ref\Techblox_Data\Managed\Techblox.GUI.MyGamesScreen.dll - - ..\ref\Techblox_Data\Managed\Techblox.GUI.PauseMenuCommands.dll - ..\..\ref\Techblox_Data\Managed\Techblox.GUI.PauseMenuCommands.dll + + ..\ref\Techblox_Data\Managed\Techblox.GUI.PauseMenu.dll + ..\..\ref\Techblox_Data\Managed\Techblox.GUI.PauseMenu.dll ..\ref\Techblox_Data\Managed\Techblox.GUI.Progression.dll ..\..\ref\Techblox_Data\Managed\Techblox.GUI.Progression.dll + + ..\ref\Techblox_Data\Managed\Techblox.GUI.ScreenCanvas.dll + ..\..\ref\Techblox_Data\Managed\Techblox.GUI.ScreenCanvas.dll + ..\ref\Techblox_Data\Managed\Techblox.GUI.TabsBar.Landscapes.dll ..\..\ref\Techblox_Data\Managed\Techblox.GUI.TabsBar.Landscapes.dll @@ -799,6 +819,10 @@ ..\ref\Techblox_Data\Managed\Techblox.GUI.UsernameDisplay.dll ..\..\ref\Techblox_Data\Managed\Techblox.GUI.UsernameDisplay.dll + + ..\ref\Techblox_Data\Managed\Techblox.GUI.WorldCanvas.dll + ..\..\ref\Techblox_Data\Managed\Techblox.GUI.WorldCanvas.dll + ..\ref\Techblox_Data\Managed\Techblox.InputCapture.dll ..\..\ref\Techblox_Data\Managed\Techblox.InputCapture.dll @@ -947,10 +971,30 @@ ..\ref\Techblox_Data\Managed\Techblox.Services.Progression.Client.dll ..\..\ref\Techblox_Data\Managed\Techblox.Services.Progression.Client.dll + + ..\ref\Techblox_Data\Managed\Techblox.Services.Progression.dll + ..\..\ref\Techblox_Data\Managed\Techblox.Services.Progression.dll + ..\ref\Techblox_Data\Managed\Techblox.Services.Storage.dll ..\..\ref\Techblox_Data\Managed\Techblox.Services.Storage.dll + + ..\ref\Techblox_Data\Managed\Techblox.Services.Users.Client.dll + ..\..\ref\Techblox_Data\Managed\Techblox.Services.Users.Client.dll + + + ..\ref\Techblox_Data\Managed\Techblox.Services.Users.dll + ..\..\ref\Techblox_Data\Managed\Techblox.Services.Users.dll + + + ..\ref\Techblox_Data\Managed\Techblox.ServoBlocksServer.dll + ..\..\ref\Techblox_Data\Managed\Techblox.ServoBlocksServer.dll + + + ..\ref\Techblox_Data\Managed\Techblox.ServosServer.dll + ..\..\ref\Techblox_Data\Managed\Techblox.ServosServer.dll + ..\ref\Techblox_Data\Managed\Techblox.SignalHandling.Audio.dll ..\..\ref\Techblox_Data\Managed\Techblox.SignalHandling.Audio.dll @@ -959,6 +1003,10 @@ ..\ref\Techblox_Data\Managed\Techblox.SignalHandling.Common.dll ..\..\ref\Techblox_Data\Managed\Techblox.SignalHandling.Common.dll + + ..\ref\Techblox_Data\Managed\Techblox.Simulation.Clusters.dll + ..\..\ref\Techblox_Data\Managed\Techblox.Simulation.Clusters.dll + ..\ref\Techblox_Data\Managed\Techblox.SpawnBlock.Client.dll ..\..\ref\Techblox_Data\Managed\Techblox.SpawnBlock.Client.dll @@ -1027,6 +1075,30 @@ ..\ref\Techblox_Data\Managed\Techblox.VisualEffects.VFXGraph.dll ..\..\ref\Techblox_Data\Managed\Techblox.VisualEffects.VFXGraph.dll + + ..\ref\Techblox_Data\Managed\Techblox.Weapons.Aiming.dll + ..\..\ref\Techblox_Data\Managed\Techblox.Weapons.Aiming.dll + + + ..\ref\Techblox_Data\Managed\Techblox.Weapons.DisablerBlock.dll + ..\..\ref\Techblox_Data\Managed\Techblox.Weapons.DisablerBlock.dll + + + ..\ref\Techblox_Data\Managed\Techblox.Weapons.dll + ..\..\ref\Techblox_Data\Managed\Techblox.Weapons.dll + + + ..\ref\Techblox_Data\Managed\Techblox.Weapons.Projectiles.dll + ..\..\ref\Techblox_Data\Managed\Techblox.Weapons.Projectiles.dll + + + ..\ref\Techblox_Data\Managed\Techblox.Weapons.Projectiles.Server.dll + ..\..\ref\Techblox_Data\Managed\Techblox.Weapons.Projectiles.Server.dll + + + ..\ref\Techblox_Data\Managed\Techblox.Weapons.Server.dll + ..\..\ref\Techblox_Data\Managed\Techblox.Weapons.Server.dll + ..\ref\Techblox_Data\Managed\Techblox.WheelFX.dll ..\..\ref\Techblox_Data\Managed\Techblox.WheelFX.dll @@ -1407,6 +1479,10 @@ ..\ref\Techblox_Data\Managed\UnityEngine.TextCoreFontEngineModule.dll ..\..\ref\Techblox_Data\Managed\UnityEngine.TextCoreFontEngineModule.dll + + ..\ref\Techblox_Data\Managed\UnityEngine.TextCoreModule.dll + ..\..\ref\Techblox_Data\Managed\UnityEngine.TextCoreModule.dll + ..\ref\Techblox_Data\Managed\UnityEngine.TextCoreTextEngineModule.dll ..\..\ref\Techblox_Data\Managed\UnityEngine.TextCoreTextEngineModule.dll @@ -1523,6 +1599,10 @@ ..\ref\Techblox_Data\Managed\Whinarn.UnityMeshSimplifier.Runtime.dll ..\..\ref\Techblox_Data\Managed\Whinarn.UnityMeshSimplifier.Runtime.dll + + ..\ref\Techblox_Data\Managed\ZFBrowser.dll + ..\..\ref\Techblox_Data\Managed\ZFBrowser.dll + diff --git a/CodeGenerator/Program.cs b/CodeGenerator/Program.cs index 9f1e3ae..900c6d4 100644 --- a/CodeGenerator/Program.cs +++ b/CodeGenerator/Program.cs @@ -3,7 +3,7 @@ using HarmonyLib; using RobocraftX.Blocks; using RobocraftX.PilotSeat; using Techblox.EngineBlock; -using Techblox.ObjectIDBlockServer; +using Techblox.ServoBlocksServer; using Techblox.WheelRigBlock; namespace CodeGenerator @@ -24,7 +24,7 @@ namespace CodeGenerator }, typeof(TweakableJointDampingComponent), typeof(DampedSpringReadOnlyStruct)); bcg.Generate("LogicGate", "LOGIC_BLOCK_GROUP"); - bcg.Generate("Servo", types: typeof(ServoReadOnlyStruct), renames: new Dictionary + bcg.Generate("Servo", types: typeof(ServoReadOnlyTweakableComponent), renames: new Dictionary { {"minDeviation", "MinimumAngle"}, {"maxDeviation", "MaximumAngle"}, @@ -39,7 +39,7 @@ namespace CodeGenerator {"pistonVelocity", "MaximumForce"} }, typeof(PistonReadOnlyStruct)); bcg.Generate("Motor", null, null, typeof(MotorReadOnlyStruct)); - bcg.Generate("ObjectID", "ObjectIDBlockExclusiveGroups.OBJECT_ID_BLOCK_GROUP", null, typeof(ObjectIDTweakableComponent)); + //bcg.Generate("ObjectID", "ObjectIDBlockExclusiveGroups.OBJECT_ID_BLOCK_GROUP", null, typeof(ObjectIDTweakableComponent)); } } } \ No newline at end of file diff --git a/TechbloxModdingAPI/Block.cs b/TechbloxModdingAPI/Block.cs index c76ee08..5c3c897 100644 --- a/TechbloxModdingAPI/Block.cs +++ b/TechbloxModdingAPI/Block.cs @@ -441,9 +441,10 @@ namespace TechbloxModdingAPI public SimBody GetSimBody() { var st = BlockEngine.GetBlockInfo(this); - return st.machineRigidBodyId != uint.MaxValue - ? new SimBody(st.machineRigidBodyId, st.clusterId) - : null; + /*return st.machineRigidBodyId != uint.MaxValue + ? new SimBody(st.machineRigidBodyId, st.clusterId) - TODO: + : null;*/ + return null; } /// diff --git a/TechbloxModdingAPI/Blocks/BlockIDs.cs b/TechbloxModdingAPI/Blocks/BlockIDs.cs index 22ee226..bd4ba8a 100644 --- a/TechbloxModdingAPI/Blocks/BlockIDs.cs +++ b/TechbloxModdingAPI/Blocks/BlockIDs.cs @@ -333,13 +333,39 @@ namespace TechbloxModdingAPI.Blocks DistanceSensor, Stabilizer, ObjectID, - TeamScore = 428, + ScoreToTechpointConversion, + TeamScore, ScorePickupBlock, - StreetLamp = 435, - ConstantBlock = 452, + SportyHatchbackDriverSeat, + SportyHatchbackPassengerSeat, + FlamingExhaust = 433, + SmokingExhaust, + StreetLamp, + Vector7HatchbackWheel, + Vector7HatchbackWheelWideProfile, + Vector7SedanWheel, + Vector7SedanWideProfile, + Vector7FormulaWheel, + Vector7FormulaWheelRear, + Vector7MonsterTruckWheel, + Vector7TruckWheel, + Vector7TruckWheelDouble, + BusSeat, + XLJet, + XXLJet, + ElectricSedanEngine, + HeadlampIndicator, + HeadlampSrip, + HeadlampStripEdge, + ConstantBlock, CounterBlock, SmallGridHill, SmallGridHillInnerCorner, - SmallGridHillOuterCorner + SmallGridHillOuterCorner, + Vector7SmallJet = 460, + Vector7MediumJet, + Vector7LargeJet, + Vector7XLJet, + Vector7XXLJet } } \ No newline at end of file diff --git a/TechbloxModdingAPI/Blocks/BlockMaterial.cs b/TechbloxModdingAPI/Blocks/BlockMaterial.cs index fe98bd9..641b21f 100644 --- a/TechbloxModdingAPI/Blocks/BlockMaterial.cs +++ b/TechbloxModdingAPI/Blocks/BlockMaterial.cs @@ -32,6 +32,14 @@ namespace TechbloxModdingAPI.Blocks WoodPainted, WoodRoughGrungy, Boundary, - Emissive + Emissive, + AircraftPaneling_Riveted_Painted, + AircraftPaneling_Riveted_Metallic, + Steel_Bodywork_Pearlescent, + Steel_Bodywork_RadWrap, + Steel_Bodywork_Glitter, + BouncyRubber, + BouncyRubber_TieDye, + FuturisticPaneling_Riveted_Painted = 40 } } \ No newline at end of file diff --git a/TechbloxModdingAPI/Blocks/Engines/BlockEngine.cs b/TechbloxModdingAPI/Blocks/Engines/BlockEngine.cs index 7a15226..dc035ee 100644 --- a/TechbloxModdingAPI/Blocks/Engines/BlockEngine.cs +++ b/TechbloxModdingAPI/Blocks/Engines/BlockEngine.cs @@ -53,13 +53,13 @@ namespace TechbloxModdingAPI.Blocks.Engines { for(int i = 0; i < count; i++) { - ecoll[i].isProcessed = false; + ecoll[i].areConnectionsAssigned = false; } } //TODO: GetConnectedCubesUtility - ConnectedCubesUtility.TreeTraversal.GetConnectedCubes(entitiesDB, blockID, cubeStack, cubes, - (in GridConnectionsEntityStruct _) => false); + /*ConnectedCubesUtility.TreeTraversal.GetConnectedCubes(entitiesDB, blockID, cubeStack, cubes, + (in GridConnectionsEntityStruct _) => false);*/ var ret = new Block[cubes.count]; for (int i = 0; i < cubes.count; i++) @@ -179,15 +179,15 @@ namespace TechbloxModdingAPI.Blocks.Engines var tag = tags[i]; if (!connections.HasValue) //Would need reflection to get the group from the build group otherwise connections = entitiesDB.QueryMappedEntities(tag.ID.groupID); - var rid = connections.Value.Entity(tag.ID.entityID).machineRigidBodyId; - foreach (var rb in ret) + //var rid = connections.Value.Entity(tag.ID.entityID).machineRigidBodyId; + /*foreach (var rb in ret) - TODO { if (rb.Id.entityID == rid) goto DUPLICATE; //Multiple Object Identifiers on one rigid body } ret.Add(new SimBody(rid)); - DUPLICATE: ; + DUPLICATE: ;*/ } return ret.ToArray(); @@ -201,8 +201,8 @@ namespace TechbloxModdingAPI.Blocks.Engines { ref var joint = ref joints[i]; if (joint.isBroken) continue; - if (joint.connectedEntityA == id) list.Add(new SimBody(joint.connectedEntityB)); - else if (joint.connectedEntityB == id) list.Add(new SimBody(joint.connectedEntityA)); + /*if (joint.connectedEntityA == id) list.Add(new SimBody(joint.connectedEntityB)); - TODO: + else if (joint.connectedEntityB == id) list.Add(new SimBody(joint.connectedEntityA));*/ } return list.ToArray(); @@ -217,8 +217,8 @@ namespace TechbloxModdingAPI.Blocks.Engines for (var index = 0; index < count; index++) { var conn = coll[index]; - if (conn.clusterId == cid) - bodies.Add(conn.machineRigidBodyId); + /*if (conn.clusterId == cid) - TODO + bodies.Add(conn.machineRigidBodyId);*/ } } @@ -246,8 +246,8 @@ namespace TechbloxModdingAPI.Blocks.Engines { var conn = coll[index]; //Static blocks don't have a cluster ID but the cluster destruction manager should have one - if (conn.machineRigidBodyId == sbid && conn.clusterId != uint.MaxValue) - return new Cluster(conn.clusterId); + /*if (conn.machineRigidBodyId == sbid && conn.clusterId != uint.MaxValue) - TODO: + return new Cluster(conn.clusterId);*/ } } @@ -264,8 +264,8 @@ namespace TechbloxModdingAPI.Blocks.Engines for (var index = 0; index < count; index++) { var conn = coll[index]; - if (conn.machineRigidBodyId == sbid) - set.Add(Block.New(tags[index].ID)); + /*if (conn.machineRigidBodyId == sbid) - TODO + set.Add(Block.New(tags[index].ID));*/ } } diff --git a/TechbloxModdingAPI/Blocks/Engines/MovementEngine.cs b/TechbloxModdingAPI/Blocks/Engines/MovementEngine.cs index 12996b0..34ab4d5 100644 --- a/TechbloxModdingAPI/Blocks/Engines/MovementEngine.cs +++ b/TechbloxModdingAPI/Blocks/Engines/MovementEngine.cs @@ -56,7 +56,7 @@ namespace TechbloxModdingAPI.Blocks.Engines }); } - entitiesDB.QueryEntityOrDefault(block).isProcessed = false; + entitiesDB.QueryEntityOrDefault(block).areConnectionsAssigned = false; return posStruct.position; } diff --git a/TechbloxModdingAPI/Blocks/Engines/RotationEngine.cs b/TechbloxModdingAPI/Blocks/Engines/RotationEngine.cs index 8c639e8..a047031 100644 --- a/TechbloxModdingAPI/Blocks/Engines/RotationEngine.cs +++ b/TechbloxModdingAPI/Blocks/Engines/RotationEngine.cs @@ -59,7 +59,9 @@ namespace TechbloxModdingAPI.Blocks.Engines }); } - entitiesDB.QueryEntityOrDefault(block).isProcessed = false; + // TODO: Connections probably need to be assigned (maybe) + // They are assigned during machine processing anyway + entitiesDB.QueryEntityOrDefault(block).areConnectionsAssigned = false; return ((Quaternion)rotStruct.rotation).eulerAngles; } diff --git a/TechbloxModdingAPI/Blocks/Engines/SignalEngine.cs b/TechbloxModdingAPI/Blocks/Engines/SignalEngine.cs index 1f89816..ffd2b07 100644 --- a/TechbloxModdingAPI/Blocks/Engines/SignalEngine.cs +++ b/TechbloxModdingAPI/Blocks/Engines/SignalEngine.cs @@ -313,7 +313,7 @@ namespace TechbloxModdingAPI.Blocks.Engines for (int i = 0; i < count; i++) { ref BlockPortsStruct s = ref coll[i]; - res.Add(s.ID); + //res.Add(s.ID); - TODO } } @@ -367,7 +367,7 @@ namespace TechbloxModdingAPI.Blocks.Engines : NamedExclusiveGroup.Group; if (entitiesDB.Exists(signalID, group)) { - index = entitiesDB.QueryEntity(signalID, group).anyChannelIndex; + index = entitiesDB.QueryEntity(signalID, group).firstChannelIndexCachedInSim; var channelData = entitiesDB.QueryEntities(NamedExclusiveGroup.Group); return channelData; diff --git a/TechbloxModdingAPI/Blocks/Servo.cs b/TechbloxModdingAPI/Blocks/Servo.cs index 89bd194..8f626df 100644 --- a/TechbloxModdingAPI/Blocks/Servo.cs +++ b/TechbloxModdingAPI/Blocks/Servo.cs @@ -30,11 +30,11 @@ namespace TechbloxModdingAPI.Blocks { get { - return BlockEngine.GetBlockInfo(this).servoVelocity; + return BlockEngine.GetBlockInfo(this).servoVelocity; } set { - BlockEngine.GetBlockInfo(this).servoVelocity = value; + BlockEngine.GetBlockInfo(this).servoVelocity = value; } } @@ -45,11 +45,11 @@ namespace TechbloxModdingAPI.Blocks { get { - return BlockEngine.GetBlockInfo(this).minDeviation; + return BlockEngine.GetBlockInfo(this).minDeviation; } set { - BlockEngine.GetBlockInfo(this).minDeviation = value; + BlockEngine.GetBlockInfo(this).minDeviation = value; } } @@ -60,11 +60,11 @@ namespace TechbloxModdingAPI.Blocks { get { - return BlockEngine.GetBlockInfo(this).maxDeviation; + return BlockEngine.GetBlockInfo(this).maxDeviation; } set { - BlockEngine.GetBlockInfo(this).maxDeviation = value; + BlockEngine.GetBlockInfo(this).maxDeviation = value; } } @@ -75,11 +75,11 @@ namespace TechbloxModdingAPI.Blocks { get { - return BlockEngine.GetBlockInfo(this).reverse; + return BlockEngine.GetBlockInfo(this).reverse; } set { - BlockEngine.GetBlockInfo(this).reverse = value; + BlockEngine.GetBlockInfo(this).reverse = value; } } @@ -90,11 +90,11 @@ namespace TechbloxModdingAPI.Blocks { get { - return BlockEngine.GetBlockInfo(this).hasProportionalInput; + return BlockEngine.GetBlockInfo(this).hasProportionalInput; } set { - BlockEngine.GetBlockInfo(this).hasProportionalInput = value; + BlockEngine.GetBlockInfo(this).hasProportionalInput = value; } } @@ -105,11 +105,11 @@ namespace TechbloxModdingAPI.Blocks { get { - return BlockEngine.GetBlockInfo(this).directionVector; + return BlockEngine.GetBlockInfo(this).directionVector; } set { - BlockEngine.GetBlockInfo(this).directionVector = value; + BlockEngine.GetBlockInfo(this).directionVector = value; } } @@ -120,11 +120,11 @@ namespace TechbloxModdingAPI.Blocks { get { - return BlockEngine.GetBlockInfo(this).rotationAxis; + return BlockEngine.GetBlockInfo(this).rotationAxis; } set { - BlockEngine.GetBlockInfo(this).rotationAxis = value; + BlockEngine.GetBlockInfo(this).rotationAxis = value; } } @@ -135,11 +135,11 @@ namespace TechbloxModdingAPI.Blocks { get { - return BlockEngine.GetBlockInfo(this).forceAxis; + return BlockEngine.GetBlockInfo(this).forceAxis; } set { - BlockEngine.GetBlockInfo(this).forceAxis = value; + BlockEngine.GetBlockInfo(this).forceAxis = value; } } } diff --git a/TechbloxModdingAPI/TechbloxModdingAPI.csproj b/TechbloxModdingAPI/TechbloxModdingAPI.csproj index 456a019..12ff5bb 100644 --- a/TechbloxModdingAPI/TechbloxModdingAPI.csproj +++ b/TechbloxModdingAPI/TechbloxModdingAPI.csproj @@ -1595,6 +1595,10 @@ ..\ref\Techblox_Data\Managed\Whinarn.UnityMeshSimplifier.Runtime.dll ..\..\ref\Techblox_Data\Managed\Whinarn.UnityMeshSimplifier.Runtime.dll + + ..\ref\Techblox_Data\Managed\ZFBrowser.dll + ..\..\ref\Techblox_Data\Managed\ZFBrowser.dll +