Types/EquipmentShape: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Basics == The shape and dimensions of an equipment module. == Mandatory properties == === width === '''Type''': Types/uint32 === height === '''Type''': Types/uint32...") |
(0.17.51) |
||
Line 12: | Line 12: | ||
'''Type''': [[Types/string]] | '''Type''': [[Types/string]] | ||
The shape. Must be "full". | The shape. Must be "full" or "manual". When using "manual", <code>points</code> must be defined. | ||
== Optional properties == | |||
=== points === | |||
'''Type''': [[Types/table]] (array) of [[Types/table]] (array) of [[Types/uint32]] | |||
Only used when when using <code>type</code> "manual". Defines the filled squares of the equipment shape. {0, 0} is the upper left corner of the equipment. | |||
<syntaxhighlight lang="lua">-- A set of points which fall within the width/height - can't be empty | |||
points = {{0, 0}, {1, 0}, {2, 0}, {3, 0}, | |||
{0, 1}, {3, 1}, | |||
{0, 2}, {3, 2}, | |||
{0, 3}, {1, 3}, {2, 3}, {3, 3}} | |||
</syntaxhighlight> |
Revision as of 09:01, 8 July 2019
Basics
The shape and dimensions of an equipment module.
Mandatory properties
width
Type: Types/uint32
height
Type: Types/uint32
type
Type: Types/string
The shape. Must be "full" or "manual". When using "manual", points
must be defined.
Optional properties
points
Type: Types/table (array) of Types/table (array) of Types/uint32
Only used when when using type
"manual". Defines the filled squares of the equipment shape. {0, 0} is the upper left corner of the equipment.
-- A set of points which fall within the width/height - can't be empty
points = {{0, 0}, {1, 0}, {2, 0}, {3, 0},
{0, 1}, {3, 1},
{0, 2}, {3, 2},
{0, 3}, {1, 3}, {2, 3}, {3, 3}}