using VRageMath;
namespace SpaceEngineersBlueprintEditor.SpaceEngineersCore.GridConverter;
/// <summary>
/// Data for converting a SE1 block into SE2 blocks
/// </summary>
public struct BlockConversionDefinition
{
/// <summary>
/// Collection of blocks
/// </summary>
public Block[] Blocks;
}
/// <summary>
/// An SE2 block that will be placed
/// </summary>
public struct Block
{
/// <summary>
/// The GUID of the block's server prefab
/// </summary>
public string BlockServerPrefab;
/// <summary>
/// Rotates the block by this quaternion
/// </summary>
public Quaternion Rotation;
/// <summary>
/// Offset in uniform grid space for the forward direction
/// </summary>
public int ForwardOffset;
/// <summary>
/// Offset in uniform grid space for the up direction
/// </summary>
public int UpOffset;
/// <summary>
/// Offset in uniform grid space for the right direction
/// </summary>
public int RightOffset;
}
using VRageMath;
namespace SpaceEngineersBlueprintEditor.SpaceEngineersCore.GridConverter;
/// <summary>
/// Data for converting a SE1 block into SE2 blocks
/// </summary>
public struct BlockConversionDefinition
{
/// <summary>
/// Collection of blocks
/// </summary>
public Block[] Blocks;
}
/// <summary>
/// An SE2 block that will be placed
/// </summary>
public struct Block
{
/// <summary>
/// The GUID of the block's server prefab
/// </summary>
public string BlockServerPrefab;
/// <summary>
/// Rotates the block by this quaternion
/// </summary>
public Quaternion Rotation;
/// <summary>
/// Offset in uniform grid space for the forward direction
/// </summary>
public int ForwardOffset;
/// <summary>
/// Offset in uniform grid space for the up direction
/// </summary>
public int UpOffset;
/// <summary>
/// Offset in uniform grid space for the right direction
/// </summary>
public int RightOffset;
}