Interface GobanEvents

interface GobanEvents {
    advance-to-next-board: (() => void);
    analyze_subtool: ((d) => void);
    analyze_tool: ((d) => void);
    audio-capture-stones: ((obj) => void);
    audio-clock: ((event) => void);
    audio-disconnected: (() => void);
    audio-enter-stone-removal: (() => void);
    audio-game-ended: ((winner) => void);
    audio-game-paused: (() => void);
    audio-game-resumed: (() => void);
    audio-game-started: ((obj) => void);
    audio-other-player-disconnected: ((obj) => void);
    audio-other-player-reconnected: ((obj) => void);
    audio-pass: (() => void);
    audio-reconnected: (() => void);
    audio-resume-game-from-stone-removal: (() => void);
    audio-stone: ((obj) => void);
    audio-undo-granted: (() => void);
    audio-undo-requested: (() => void);
    auto-resign: ((obj) => void);
    captured-stones: ((obj) => void);
    chat: ((d) => void);
    chat-remove: ((ids) => void);
    chat-reset: (() => void);
    clear-auto-resign: ((obj) => void);
    clear-message: (() => void);
    clock: ((clock) => void);
    conditional-moves.updated: (() => void);
    cur_move: ((d) => void);
    cur_review_move: ((d) => void);
    destroy: (() => void);
    engine.updated: ((engine) => void);
    error: ((d) => void);
    gamedata: ((d) => void);
    last_official_move: ((d) => void);
    load: ((config) => void);
    mode: ((d) => void);
    move-made: (() => void);
    outcome: ((d) => void);
    paused: ((d) => void);
    phase: ((d) => void);
    played-by-click: ((player) => void);
    player-update: ((player) => void);
    puzzle-correct-answer: (() => void);
    puzzle-place: ((obj) => void);
    puzzle-wrong-answer: (() => void);
    review.load-end: (() => void);
    review.load-start: (() => void);
    review.sync-to-current-move: (() => void);
    review.updated: (() => void);
    review_controller_id: ((d) => void);
    review_owner_id: ((d) => void);
    rules: ((d) => void);
    score_estimate: ((d) => void);
    set-for-removal: {
        removed: boolean;
        x: number;
        y: number;
    };
    show-message: ((message) => void);
    stalling_score_estimate: ((data?) => void);
    state_text: ((state) => void);
    stone-removal.accepted: (() => void);
    stone-removal.auto-scoring-complete: (() => void);
    stone-removal.auto-scoring-started: (() => void);
    stone-removal.needs-sealing: ((positions) => void);
    stone-removal.updated: (() => void);
    strict_seki_mode: ((d) => void);
    submit_move: ((d) => void);
    submitting-move: ((tf) => void);
    title: ((d) => void);
    undo_canceled: (() => void);
    undo_requested: ((d) => void);
    update: (() => void);
    winner: ((d) => void);
}

Hierarchy (view full)

Properties

advance-to-next-board: (() => void)

Type declaration

    • (): void
    • Returns void

analyze_subtool: ((d) => void)

Type declaration

    • (d): void
    • Parameters

      • d: string

      Returns void

analyze_tool: ((d) => void)

Type declaration

audio-capture-stones: ((obj) => void)

Type declaration

    • (obj): void
    • Parameters

      • obj: {
            already_captured: number;
            count: number;
        }
        • already_captured: number
        • count: number

      Returns void

audio-clock: ((event) => void)

Type declaration

audio-disconnected: (() => void)

Type declaration

    • (): void
    • Returns void

audio-enter-stone-removal: (() => void)

Type declaration

    • (): void
    • Returns void

audio-game-ended: ((winner) => void)

Type declaration

    • (winner): void
    • Parameters

      • winner: "black" | "white" | "tie"

      Returns void

audio-game-paused: (() => void)

Type declaration

    • (): void
    • Returns void

audio-game-resumed: (() => void)

Type declaration

    • (): void
    • Returns void

audio-game-started: ((obj) => void)

Type declaration

    • (obj): void
    • Parameters

      • obj: {
            player_id: number;
        }
        • player_id: number

          Player to move

      Returns void

audio-other-player-disconnected: ((obj) => void)

Type declaration

    • (obj): void
    • Parameters

      • obj: {
            player_id: number;
        }
        • player_id: number

      Returns void

audio-other-player-reconnected: ((obj) => void)

Type declaration

    • (obj): void
    • Parameters

      • obj: {
            player_id: number;
        }
        • player_id: number

      Returns void

audio-pass: (() => void)

Type declaration

    • (): void
    • Returns void

audio-reconnected: (() => void)

Type declaration

    • (): void
    • Returns void

audio-resume-game-from-stone-removal: (() => void)

Type declaration

    • (): void
    • Returns void

audio-stone: ((obj) => void)

Type declaration

    • (obj): void
    • Parameters

      • obj: {
            color: "black" | "white";
            height: number;
            width: number;
            x: number;
            y: number;
        }
        • color: "black" | "white"
        • height: number
        • width: number
        • x: number
        • y: number

      Returns void

audio-undo-granted: (() => void)

Type declaration

    • (): void
    • Returns void

audio-undo-requested: (() => void)

Type declaration

    • (): void
    • Returns void

auto-resign: ((obj) => void)

Type declaration

    • (obj): void
    • Parameters

      • obj: {
            expiration: number;
            game_id: number;
            player_id: number;
        }
        • expiration: number
        • game_id: number
        • player_id: number

      Returns void

captured-stones: ((obj) => void)

Type declaration

chat: ((d) => void)

Type declaration

    • (d): void
    • Parameters

      • d: any

      Returns void

chat-remove: ((ids) => void)

Type declaration

    • (ids): void
    • Parameters

      • ids: {
            chat_ids: string[];
        }
        • chat_ids: string[]

      Returns void

chat-reset: (() => void)

Type declaration

    • (): void
    • Returns void

clear-auto-resign: ((obj) => void)

Type declaration

    • (obj): void
    • Parameters

      • obj: {
            game_id: number;
            player_id: number;
        }
        • game_id: number
        • player_id: number

      Returns void

clear-message: (() => void)

Type declaration

    • (): void
    • Returns void

clock: ((clock) => void)

Type declaration

conditional-moves.updated: (() => void)

Type declaration

    • (): void
    • Returns void

cur_move: ((d) => void)

Type declaration

    • (d): void
    • Parameters

      Returns void

cur_review_move: ((d) => void)

Type declaration

    • (d): void
    • Parameters

      Returns void

destroy: (() => void)

Type declaration

    • (): void
    • Returns void

engine.updated: ((engine) => void)

Type declaration

    • (engine): void
    • Parameters

      Returns void

error: ((d) => void)

Type declaration

    • (d): void
    • Parameters

      • d: any

      Returns void

gamedata: ((d) => void)

Type declaration

    • (d): void
    • Parameters

      • d: any

      Returns void

last_official_move: ((d) => void)

Type declaration

    • (d): void
    • Parameters

      Returns void

load: ((config) => void)

Type declaration

    • (config): void
    • Parameters

      Returns void

mode: ((d) => void)

Type declaration

move-made: (() => void)

Type declaration

    • (): void
    • Returns void

outcome: ((d) => void)

Type declaration

    • (d): void
    • Parameters

      • d: string

      Returns void

paused: ((d) => void)

Type declaration

    • (d): void
    • Parameters

      • d: boolean

      Returns void

phase: ((d) => void)

Type declaration

played-by-click: ((player) => void)

Type declaration

    • (player): void
    • Parameters

      • player: {
            player_id: number;
            x: number;
            y: number;
        }
        • player_id: number
        • x: number
        • y: number

      Returns void

player-update: ((player) => void)

Type declaration

puzzle-correct-answer: (() => void)

Type declaration

    • (): void
    • Returns void

puzzle-place: ((obj) => void)

Type declaration

    • (obj): void
    • Parameters

      • obj: {
            color: "black" | "white";
            height: number;
            width: number;
            x: number;
            y: number;
        }
        • color: "black" | "white"
        • height: number
        • width: number
        • x: number
        • y: number

      Returns void

puzzle-wrong-answer: (() => void)

Type declaration

    • (): void
    • Returns void

review.load-end: (() => void)

Type declaration

    • (): void
    • Returns void

review.load-start: (() => void)

Type declaration

    • (): void
    • Returns void

review.sync-to-current-move: (() => void)

Type declaration

    • (): void
    • Returns void

review.updated: (() => void)

Type declaration

    • (): void
    • Returns void

review_controller_id: ((d) => void)

Type declaration

    • (d): void
    • Parameters

      • d: undefined | number

      Returns void

review_owner_id: ((d) => void)

Type declaration

    • (d): void
    • Parameters

      • d: undefined | number

      Returns void

rules: ((d) => void)

Type declaration

score_estimate: ((d) => void)

Type declaration

set-for-removal: {
    removed: boolean;
    x: number;
    y: number;
}

Type declaration

  • removed: boolean
  • x: number
  • y: number
show-message: ((message) => void)

Type declaration

    • (message): void
    • Parameters

      • message: {
            formatted: string;
            message_id: string;
            parameters?: {
                [key: string]: any;
            };
        }
        • formatted: string
        • message_id: string
        • Optional parameters?: {
              [key: string]: any;
          }
          • [key: string]: any

      Returns void

stalling_score_estimate: ((data?) => void)

Type declaration

state_text: ((state) => void)

Type declaration

    • (state): void
    • Parameters

      • state: {
            show_moves_made_count?: boolean;
            title: string;
        }
        • Optional show_moves_made_count?: boolean
        • title: string

      Returns void

stone-removal.accepted: (() => void)

Type declaration

    • (): void
    • Returns void

stone-removal.auto-scoring-complete: (() => void)

Type declaration

    • (): void
    • Returns void

stone-removal.auto-scoring-started: (() => void)

Type declaration

    • (): void
    • Returns void

stone-removal.needs-sealing: ((positions) => void)

Type declaration

stone-removal.updated: (() => void)

Type declaration

    • (): void
    • Returns void

strict_seki_mode: ((d) => void)

Type declaration

    • (d): void
    • Parameters

      • d: boolean

      Returns void

submit_move: ((d) => void)

Type declaration

    • (d): void
    • Parameters

      • d: undefined | (() => void)

      Returns void

submitting-move: ((tf) => void)

Type declaration

    • (tf): void
    • Parameters

      • tf: boolean

      Returns void

title: ((d) => void)

Type declaration

    • (d): void
    • Parameters

      • d: string

      Returns void

undo_canceled: (() => void)

Type declaration

    • (): void
    • Returns void

undo_requested: ((d) => void)

Type declaration

    • (d): void
    • Parameters

      • d: undefined | number

      Returns void

update: (() => void)

Type declaration

    • (): void
    • Returns void

winner: ((d) => void)

Type declaration

    • (d): void
    • Parameters

      • d: undefined | number

      Returns void