Added animation events

This commit is contained in:
2025-06-20 19:26:43 +01:00
parent 44f75b52d0
commit a421069a63
4 changed files with 41 additions and 3 deletions

21
src/gameUtils/events.py Normal file
View File

@ -0,0 +1,21 @@
class _event:
def __init__(self):
self.type = self.__class__
class AnimStart(_event):
def __init__(self, objectID, animationID):
super().__init__()
self.objectID = objectID
self.animationID = animationID
def __repr__(self):
return f'<AnimFinish | {self.objectID=} | {self.animationID=}>'
class AnimFinish(_event):
def __init__(self, objectID, animationID):
super().__init__()
self.objectID = objectID
self.animationID = animationID
def __repr__(self):
return f'<AnimFinish | {self.objectID=} | {self.animationID=}>'