wgo
Version:
JavaScript library for game of Go
14 lines (13 loc) • 343 B
TypeScript
import PlayerBase from './PlayerBase';
/**
* Interface of plugins of PlayerBase.
*/
export default interface PlayerPlugin {
/**
* During plugin installation this method will be called once. Plugin can register all necessary
* events here.
*
* @param player
*/
apply(player: PlayerBase): void;
}