XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
UTF-8
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;
}