diff --git a/include/components/attack_component.h b/include/components/attack_component.h index 6e78aed..674477d 100644 --- a/include/components/attack_component.h +++ b/include/components/attack_component.h @@ -2,7 +2,7 @@ ** EPITECH PROJECT, 2020 ** my_rpg ** File description: -** attack_component.h +** attack_component.hMdr */ @@ -13,9 +13,14 @@ typedef void (*attack)(gc_entity *from, gc_entity *enemy); +typedef struct attack_holder { + char *name; + attack run; +} attack_holder; + struct attack_component { gc_component base; - gc_data *attacks; + attack_holder *attacks; }; extern const struct attack_component attack_component; diff --git a/lib/gamacon b/lib/gamacon index ae7daff..845620b 160000 --- a/lib/gamacon +++ b/lib/gamacon @@ -1 +1 @@ -Subproject commit ae7dafffe705faa2fc737d59f042e43fa92201cd +Subproject commit 845620bd43a8ef25d7bb9fd19df7e162d83853f2 diff --git a/prefabs/combat.gcprefab b/prefabs/combat.gcprefab index 7be98e3..f5ac3f7 100644 --- a/prefabs/combat.gcprefab +++ b/prefabs/combat.gcprefab @@ -30,6 +30,10 @@ + + + + diff --git a/prefabs/input.gcprefab b/prefabs/input.gcprefab index 886f051..149acb5 100644 --- a/prefabs/input.gcprefab +++ b/prefabs/input.gcprefab @@ -1,6 +1,6 @@ -