import pygame
from ..core.component import Component

class ColliderComponent(Component):

    def __init__(self,
    
        offsetX,
        offsetY,
        w,
        h,
        collisionResponse=None
    
    ):
        
        # collision rect
        self.rect = pygame.Rect(offsetX, offsetY, w, h)
        
        # function that is called when colliding with other entities or the map
        self.collisionResponse = collisionResponse
