xhads/source/effect.ads

53 lines
1.5 KiB
Ada
Raw Normal View History

-- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
--
-- GNU General Public Licence (version 3 or later)
2024-02-15 21:03:09 -05:00
with core;
package effect is
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
type operation_index is (
idle,
add,
subtract,
multiply,
divide,
increment,
decrement
2024-02-15 21:03:09 -05:00
);
type operator_index is (
attribute,
skill,
resource
);
2024-02-15 21:03:09 -05:00
------------------------------------------------------------------------------------------
type value is record
operation : operation_index;
operator : operator_index;
modifier : integer;
permanent : boolean;
duration : natural;
end record;
none : value;
2024-02-15 21:03:09 -05:00
------------------------------------------------------------------------------------------
--~count : constant natural := enumeration'pos (enumeration'last) + 1;
--~trait : constant array (enumeration) of information := (
--~((others => null), (others => (others => 0))),
--~((others => null), (others => (others => 0))),
--~((others => null), (others => (others => 0))),
--~((others => null), (others => (others => 0)))
--~);
2024-02-15 21:03:09 -05:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
end effect;