Update and add rotation params to test cmd

This commit is contained in:
Norbi Peti 2020-01-15 22:59:44 +01:00
parent 562cea3d49
commit 28c3adff4d
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56
2 changed files with 7 additions and 2 deletions

View file

@ -76,7 +76,7 @@ namespace GCMC
} }
Placement.PlaceBlock(id, (blocks.Start + blocks.End) / 2, color: color, darkness: darkness, Placement.PlaceBlock(id, (blocks.Start + blocks.End) / 2, color: color, darkness: darkness,
scale: (blocks.End - blocks.Start + 1) * 5, rotation: quaternion.identity); scale: (blocks.End - blocks.Start + 1) * 5, rotation: float3.zero);
C++; C++;
} }
@ -103,8 +103,10 @@ namespace GCMC
float scaleY = float.Parse(s[8]); float scaleY = float.Parse(s[8]);
float scaleZ = float.Parse(s[9]); float scaleZ = float.Parse(s[9]);
float rotX = float.Parse(s[10]); float rotX = float.Parse(s[10]);
float rotY = float.Parse(s[11]);
float rotZ = float.Parse(s[12]);
uint playerId = 0; uint playerId = 0;
Placement.PlaceBlock((BlockIDs) block, new float3(x, y, z), new quaternion(rotX, 0, 0, 1), Placement.PlaceBlock((BlockIDs) block, new float3(x, y, z), new float3(rotX, rotY, rotZ),
(BlockColors) color, darkness, scale, new float3(scaleX, scaleY, scaleZ), playerId); (BlockColors) color, darkness, scale, new float3(scaleX, scaleY, scaleZ), playerId);
} }
catch (Exception e) catch (Exception e)

View file

@ -24,6 +24,9 @@
<Reference Include="GamecraftModdingAPI, Version=0.1.1.0, Culture=neutral, PublicKeyToken=null"> <Reference Include="GamecraftModdingAPI, Version=0.1.1.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\GamecraftModdingAPI\GamecraftModdingAPI\bin\Debug\net48\GamecraftModdingAPI.dll</HintPath> <HintPath>..\..\GamecraftModdingAPI\GamecraftModdingAPI\bin\Debug\net48\GamecraftModdingAPI.dll</HintPath>
</Reference> </Reference>
<Reference Include="GamecraftModdingAPI, Version=0.1.2.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\GamecraftModdingAPI\GamecraftModdingAPI\bin\Debug\net48\GamecraftModdingAPI.dll</HintPath>
</Reference>
<Reference Include="IllusionPlugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"> <Reference Include="IllusionPlugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>IllusionPlugin.dll</HintPath> <HintPath>IllusionPlugin.dll</HintPath>
</Reference> </Reference>