public interface TelegramProvider
MessageDispatcher.addListener(com.almasb.fxgl.ai.msg.Telegraph, int) by providing optional Telegram.extraInfo to be sent
in a Telegram of a given type to the newly registered Telegraph.| Modifier and Type | Method and Description |
|---|---|
Object |
provideMessageInfo(int msg,
Telegraph receiver)
Provides
Telegram.extraInfo to dispatch immediately when a Telegraph is registered for the given message
type. |
Object provideMessageInfo(int msg, Telegraph receiver)
Telegram.extraInfo to dispatch immediately when a Telegraph is registered for the given message
type.msg - the message type to providereceiver - the newly registered Telegraph. Providers can provide different info depending on the targeted Telegraph.MessageDispatcher.addListener(Telegraph, int),
MessageDispatcher.addListeners(Telegraph, int...)Copyright © 2018. All rights reserved.