UNPKG

tsgammon-core

Version:

A Backgammon library for Typescript, formerly developed as a part of tsgammon-ui

19 lines 1.02 kB
import { EOGStatus } from '../EOGStatus'; import { SGResult } from '../records/SGResult'; import { BGListener } from './BGListener'; import { BGState } from './BGState'; import { SingleGameListener } from './SingleGameListener'; import { SGState } from './SingleGameState'; /** * ゲームを終了させるときに呼ぶ操作:降参時、またはキューブありのゲームでチェッカープレイでの終局時に呼ばれる * (キューブパスの場合の終局は、cubeGameDispatcherの管理となる)。 */ export declare type BGEoGHandler = { onEndOfBGGame: (bgState: BGState, sgResult: SGResult, eog: EOGStatus) => void; }; export declare function eogEventHandler(...listeners: Partial<BGListener>[]): BGEoGHandler; export declare type SGEoGHandler = { onEndOfGame: (sgState: SGState, sgResult: SGResult, eog: EOGStatus) => void; }; export declare function eogEventHandlersSG(...listeners: Partial<SingleGameListener>[]): SGEoGHandler; //# sourceMappingURL=EOGEventHandlers.d.ts.map