/*
 * Copyright (C) 2016 jomp16
 *
 * This file is part of events_library.
 *
 * events_library is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * events_library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with events_library. If not, see <http://www.gnu.org/licenses/>.
 */

package tk.jomp16.event.api.dispatcher

import tk.jomp16.event.api.event.IEvent
import tk.jomp16.event.api.listener.IEventListener

interface IEventDispatcher {
    fun addListener(eventListener: IEventListener)

    fun removeListener(eventListener: IEventListener)

    fun dispatchEvent(iEvent: IEvent): Boolean

    operator fun plusAssign(other: IEventListener)

    operator fun minusAssign(other: IEventListener)
}