xhads/source/skill.ads

51 lines
2.1 KiB
Ada

-- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
--
-- GNU General Public Licence (version 3 or later)
with core;
package skill is
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
type enumeration is (
alchemy, archery, architecture, athletics, diplomacy, estates,
exploration, leadership, logistics, medicine, mercantile, mysticism,
necromancy, resistance, skirmish, sorcery, tactics, thaumaturgy
);
------------------------------------------------------------------------------------------
type information is record
base : core.point;
name : core.unstring;
text : core.unstring;
end record;
type points is array (enumeration) of core.point;
type bonus is array (enumeration) of natural;
default : points := (others => (0, 24));
------------------------------------------------------------------------------------------
count : constant natural := enumeration'pos (enumeration'last) + 1;
trait : array (enumeration) of information;
icon : array (enumeration) of core.sprite;
------------------------------------------------------------------------------------------
procedure configure;
procedure draw_points (data : in points := (others => (0, 0));
x : in integer := 0;
y : in integer := 0);
procedure save_points (here : in core.io.file_type; data : in points);
procedure load_points (here : in core.io.file_type; data : out points);
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
end skill;