2023-03-26 12:46:41 +02:00
|
|
|
import pygame
|
|
|
|
|
|
|
|
from sprite.PositionScale import PositionScale
|
|
|
|
from ui_elements.ClickEvent import ClickEvent
|
2023-03-26 15:00:29 +02:00
|
|
|
from ui_elements.KeyManager import KeyManager
|
2023-03-26 12:46:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
class TickData:
|
2023-03-26 15:00:29 +02:00
|
|
|
def __init__(self, dt: float, pygame_events: list[pygame.event.Event], key_manager: KeyManager,
|
2023-03-26 12:46:41 +02:00
|
|
|
click_events: list[ClickEvent], screen_transform: PositionScale):
|
|
|
|
self.dt = dt
|
|
|
|
self.pygame_events = pygame_events
|
2023-03-26 15:00:29 +02:00
|
|
|
self.key_manager = key_manager
|
2023-03-26 12:46:41 +02:00
|
|
|
self.click_events = click_events
|
|
|
|
self.screen_transform = screen_transform
|