Skip to content
EvilEngine.Formats.Records

CrosshairRegion record struct

public readonly record struct CrosshairRegion

A rectangle of a texture in whole texels, from a record’s region = [x, y, width, height]: the part of an image a crosshair style or a weapon icon draws, so one sheet can hold many. The readers refuse one whose numbers aren’t whole or whose size isn’t above 0.

Assembly
EvilEngine.Formats
Commit
4ff877b1

Members

CrosshairRegion constructor

public CrosshairRegion(int X, int Y, int Width, int Height)

Makes a region from its left and top edges and its size.

X property

public int X { get; init; }

The left edge, in texels from the image’s left.

Y property

public int Y { get; init; }

The top edge, in texels from the image’s top.

Width property

public int Width { get; init; }

How many texels wide.

Height property

public int Height { get; init; }

How many texels tall.