diff options
author | rexim <reximkut@gmail.com> | 2024-03-11 00:02:15 +0700 |
---|---|---|
committer | rexim <reximkut@gmail.com> | 2024-03-11 00:02:15 +0700 |
commit | ce6c3bf08a4c9d5eb5e64808943412c69f85f349 (patch) | |
tree | ac6b4555198a0b1c96ec2d1e02a94e67af9fceed /test.adb | |
parent | 5a89655e5a6e0d91eb6dcb1968ffc99b5fe0f7c5 (diff) |
Implement bomb regeneration
Diffstat (limited to 'test.adb')
-rw-r--r-- | test.adb | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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; |