xhads/source/material.ads

42 lines
1.5 KiB
Ada
Raw Normal View History

2024-05-12 20:15:36 -04:00
-- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
--
-- GNU General Public Licence (version 3 or later)
with core;
package material is
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
type enumeration is (
sulphur, mercury, mint, cinnamon
);
------------------------------------------------------------------------------------------
type information is record
name : core.short_string;
cost : natural;
end record;
------------------------------------------------------------------------------------------
count : constant natural := enumeration'pos (enumeration'last) + 1;
trait : constant array (enumeration) of information := (
2024-05-23 04:52:45 -04:00
sulphur => ("Sulphur ", 7),
mercury => ("Mercury ", 13),
mint => ("Mint ", 3),
cinnamon => ("Cinnamon ", 5)
2024-05-12 20:15:36 -04:00
);
------------------------------------------------------------------------------------------
procedure configure;
procedure draw (index : in enumeration; x, y : in integer);
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
end material;