import time 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'' class AnimFinish(_event): def __init__(self, objectID, animationID): super().__init__() self.objectID = objectID self.animationID = animationID def __repr__(self): return f'' class Timeout(_event): def __init__(self, timeoutID, fireOn): super().__init__() # The timeout ID specified by the user self.timeoutID = timeoutID # When the event should be fired self.fireOn = fireOn # When it was created self.created = time.perf_counter() def __repr__(self): return f''