Added animation events
This commit is contained in:
21
src/gameUtils/events.py
Normal file
21
src/gameUtils/events.py
Normal 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=}>'
|
||||
Reference in New Issue
Block a user