/*
* olds_captain_draft.inc - what a captain draft core offers to add-ons such as the Captain Pick
* Clock (olds.ro). A draft core (or a bridge plugin in front of one) registers the library
* "olds_captain", the two natives and calls the three forwards.
* Copyright (C) 2026 daemon (olds.ro). GPL-3.0-or-later.
*/
#if defined _olds_captain_draft_included
#endinput
#endif
#define _olds_captain_draft_included
/* Teams in the forwards: 1 = terrorists, 2 = counter-terrorists. */
/**
* Picks a player for a captain, as if the captain had chosen them.
* @return 1 when the pick was made; 0 when it is not that captain's turn or the player is
* not in the pool.
*/
native olds_cap_pick(captain, player);
/* 1 while the player is in the draft pool, still unpicked. */
native olds_cap_in_pool(id);
/* A pick turn begins: the captain chooses one player for that team. */
forward olds_cap_pick_turn(captain, team);
/* A pick was made (by the captain, by an add-on, or by the core itself). */
forward olds_cap_picked(captain, player);
/* The draft is over: everyone is picked, or it was stopped. */
forward olds_cap_draft_end();