package mage.cards.repository;

import mage.game.events.ExternalEvent;

import java.io.Serializable;
import java.util.EventObject;

/**
 * @author JayDi85
 */
public class RepositoryEvent extends EventObject implements ExternalEvent, Serializable {

    // TODO: db changed on update only, events can be deleted
    public enum RepositoryEventType {
        DB_LOADED, DB_UPDATED
    }

    private RepositoryEventType eventType;

    public RepositoryEvent(RepositoryEventType eventType) {
        super(eventType);
        this.eventType = eventType;
    }

    public RepositoryEventType getEventType() {
        return eventType;
    }
}
