/*
* Tower Breach Register (olds_breach) API, for a Tower Defence mod or a bridge plugin.
* Copyright (C) 2026 daemon (olds.ro)
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#if defined _olds_breach_included
#endinput
#endif
#define _olds_breach_included
#pragma reqlib olds_breach
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib olds_breach
#endif
/** A wave began; the register starts empty. */
native olds_breach_wave_start(wave);
/**
* This enemy entity has just damaged the real tower. Its lane is the lane box
* holding its origin now. Only the first breach of each lane is kept.
*
* @return 1 if it was recorded as a lane's first breach, 0 otherwise
*/
native olds_breach_tower_damage(enemy);
/**
* The wave ended. With cancelled true nothing is reported and the register is
* dropped; otherwise the register is posted to chat.
*/
native olds_breach_wave_end(bool:cancelled);