from terrex.packets.base import ServerPacket
from terrex.structures.id import MessageID
from terrex.util.streamer import Reader


class AchievementMessageEventHappened(ServerPacket):
    id = MessageID.AchievementMessageEventHappened

    def __init__(self, event_id: int = 0):
        self.event_id = event_id

    def read(self, reader: Reader) -> None:
        self.event_id = reader.read_short()

    def handle(self, world, player, evman):
        pass
