浏览代码

Update and add rotation params to test cmd

tags/v1.0.0
NorbiPeti 4 年前
父节点
当前提交
28c3adff4d
签署人:: NorbiPeti <szatmari.norbert.peter@gmail.com> GPG 密钥 ID: DBA4C4549A927E56
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. +4
    -2
      GCMC/CubePlacerEngine.cs
  2. +3
    -0
      GCMC/GCMC.csproj

+ 4
- 2
GCMC/CubePlacerEngine.cs 查看文件

@@ -76,7 +76,7 @@ namespace GCMC
}

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++;
}

@@ -103,8 +103,10 @@ namespace GCMC
float scaleY = float.Parse(s[8]);
float scaleZ = float.Parse(s[9]);
float rotX = float.Parse(s[10]);
float rotY = float.Parse(s[11]);
float rotZ = float.Parse(s[12]);
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);
}
catch (Exception e)


+ 3
- 0
GCMC/GCMC.csproj 查看文件

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


正在加载...
取消
保存