railroad.rail.utils

Members

Aliases

SegmentBuffer
alias SegmentBuffer = FixedBuffer!(RailSegment, 3)
Undocumented in source.

Enums

DiagonalRailSide
enum DiagonalRailSide
Undocumented in source.
RailEditOp
enum RailEditOp
Undocumented in source.
RailOrientation
enum RailOrientation
Undocumented in source.
RailSegment
enum RailSegment
Undocumented in source.

Functions

addDiagonalManhattan
ivec2 addDiagonalManhattan(ivec2 origin, int distance, RailOrientation orientation, DiagonalRailSide side)
Undocumented in source. Be warned that the author may not have intended to support it.
calcBlockTilePos
ivec3 calcBlockTilePos(ivec3 bwp)
Undocumented in source. Be warned that the author may not have intended to support it.
drawSolidityDebug
void drawSolidityDebug(Batch b, RailData data, BlockWorldPos bwp)
Undocumented in source. Be warned that the author may not have intended to support it.
getRailAt
RailData getRailAt(RailPos railPos, ushort railEntityId, WorldAccess worldAccess, BlockEntityAccess entityAccess)
Undocumented in source. Be warned that the author may not have intended to support it.
isSegmentSolid
bool isSegmentSolid(RailSegment segment, ivec3 blockTilePos)
Undocumented in source. Be warned that the author may not have intended to support it.
isSlopeUpSideBlock
bool isSlopeUpSideBlock(RailData railData, ivec3 entityPos, CubeSide sideToMesh)
Undocumented in source. Be warned that the author may not have intended to support it.
railDebugHandler
void railDebugHandler(BlockEntityDebugContext context)
Undocumented in source. Be warned that the author may not have intended to support it.
railTilePos
ivec3 railTilePos(ivec3 bwp)
Undocumented in source. Be warned that the author may not have intended to support it.
rotateSegment
void rotateSegment(RailSegment segment)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

DIAGONAL_RAIL_SIZE
enum DIAGONAL_RAIL_SIZE;
Undocumented in source.
RAIL_TILE_SIZE
enum RAIL_TILE_SIZE;
Undocumented in source.
SEGMENT_LENGTH_DIAGONAL
enum SEGMENT_LENGTH_DIAGONAL;
Undocumented in source.
SEGMENT_LENGTH_SLOPE
enum SEGMENT_LENGTH_SLOPE;
Undocumented in source.
SEGMENT_LENGTH_STRAIGHT
enum SEGMENT_LENGTH_STRAIGHT;
Undocumented in source.
SLOPE_RAIL_BIT
enum SLOPE_RAIL_BIT;
Undocumented in source.
X_RAIL_OFFSET
enum X_RAIL_OFFSET;
Undocumented in source.
X_RAIL_SIZE
enum X_RAIL_SIZE;
Undocumented in source.
Z_RAIL_OFFSET
enum Z_RAIL_OFFSET;
Undocumented in source.
Z_RAIL_SIZE
enum Z_RAIL_SIZE;
Undocumented in source.

Structs

RailData
struct RailData
Undocumented in source.
RailPos
struct RailPos
Undocumented in source.
SegmentInfo
struct SegmentInfo
Undocumented in source.
SegmentRange
struct SegmentRange
Undocumented in source.
SmoothConnections
struct SmoothConnections
Undocumented in source.

Variables

railBottomSolidityBitmaps
ulong[2] railBottomSolidityBitmaps;
Undocumented in source.
railPickOffset
ivec4 railPickOffset;
Undocumented in source.
railSegmentBottomSolidityIndex
ushort railSegmentBottomSolidityIndex;
Undocumented in source.
railSegmentData
ubyte[] railSegmentData;
Undocumented in source.
railSegmentMeshId
ubyte[] railSegmentMeshId;
Undocumented in source.
railSegmentMeshRotation
ubyte[] railSegmentMeshRotation;
Undocumented in source.
railSegmentOffsets
ivec3[] railSegmentOffsets;
Undocumented in source.
railSegmentSizes
ivec3[] railSegmentSizes;
Undocumented in source.
railSizeVector
ivec3 railSizeVector;
Undocumented in source.
railTileConnectionPoints
vec3[] railTileConnectionPoints;
Undocumented in source.
segmentInfos
SegmentInfo[10] segmentInfos;
Undocumented in source.
segmentLengths
float[] segmentLengths;
Undocumented in source.
segmentSmoothConnectionTbl
SmoothConnections[] segmentSmoothConnectionTbl;
Undocumented in source.
sideToOffset
byte[3][4] sideToOffset;
Undocumented in source.
slopeUpToSide
CubeSide[4] slopeUpToSide;
Undocumented in source.

Meta

Authors

Andrey Penechko.