summaryrefslogtreecommitdiff
path: root/test.adb
diff options
context:
space:
mode:
authorrexim <reximkut@gmail.com>2024-03-11 00:02:15 +0700
committerrexim <reximkut@gmail.com>2024-03-11 00:02:15 +0700
commitce6c3bf08a4c9d5eb5e64808943412c69f85f349 (patch)
treeac6b4555198a0b1c96ec2d1e02a94e67af9fceed /test.adb
parent5a89655e5a6e0d91eb6dcb1968ffc99b5fe0f7c5 (diff)
Implement bomb regeneration
Diffstat (limited to 'test.adb')
-rw-r--r--test.adb14
1 files changed, 8 insertions, 6 deletions
diff --git a/test.adb b/test.adb
index f757eb4..3501009 100644
--- a/test.adb
+++ b/test.adb
@@ -3,13 +3,15 @@ with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Strings; use Ada.Strings;
procedure Test is
- type IVector2 is record
- X, Y: Integer;
- end record;
- type Ten_Numbers is array(IVector2) of Integer;
+ type Item_Kind is (Key, Bomb);
- Position: IVector2;
- Xs: Ten_Numbers;
+ type Item(Kind: Item_Kind) is record
+ case Kind is
+ when Key => null;
+ when Bomb =>
+ Cooldown: Integer;
+ end case;
+ end record;
begin
null;
end;