Ajout du système d'objets cliquable et changement du système #21

Merged
tipragot merged 6 commits from button into main 2023-10-27 15:48:38 +00:00
Showing only changes of commit 0cdb5bbabd - Show all commits

View file

@ -0,0 +1,27 @@
"""
Definit un plugin qui verifie si un objet Hover est cliqué.
"""
from engine import *
class ClickablePlugin(Plugin):
"""
Plugin qui verifie si un objet Hover est cliqué.
"""
@staticmethod
def _update(world: World) -> None:
class Clickable:
"""
Un composant qui marque une entitée comme pouvant etre cliqué.
"""
class Clicked:
"""
Un composant qui marque une entitée comme etant cliqué.
"""