您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
34 行
621 B
34 行
621 B
package mightypork.gamecore.core;
|
|
|
|
|
|
import mightypork.utils.annotations.Stub;
|
|
import mightypork.utils.eventbus.clients.BusNode;
|
|
|
|
|
|
/**
|
|
* App plugin. Plugins are an easy way to extend app functionality.<br>
|
|
* Typically, a plugin waits for trigger event(s) and performs some action upon
|
|
* receiving them.
|
|
*
|
|
* @author Ondřej Hruška (MightyPork)
|
|
*/
|
|
public class AppPlugin extends BusNode {
|
|
|
|
protected App app;
|
|
|
|
|
|
void bind(App app)
|
|
{
|
|
this.app = app;
|
|
}
|
|
|
|
|
|
/**
|
|
* Initialize the plugin for the given App.<br>
|
|
* The plugin is already attached to the event bus.
|
|
*/
|
|
@Stub
|
|
public void initialize()
|
|
{
|
|
}
|
|
}
|
|
|