/*
* Run Shadow Splits (olds.ro): natives for a KZ timer or a small bridge plugin.
* Copyright (C) 2026 daemon (olds.ro). SPDX-License-Identifier: GPL-3.0-or-later
*
* Call these from the timer's own callbacks:
* run start olds_shadow_start(id, route, style, routeSig)
* checkpoint reached olds_shadow_checkpoint(id, number, runTime)
* finish olds_shadow_finish(id, runTime, valid)
* reset / stop olds_shadow_reset(id)
* style switch olds_shadow_style(id, style)
*
* route route name, 1-31 characters (letters, digits, - _ .), "main" for a one-route map
* style style name, 1-15 characters (same characters), e.g. "normal", "lowgrav"
* routeSig anything that changes when the route definition changes (for example its
* checkpoint list hashed to text), up to 31 characters; a stored reference with a
* different signature is deleted
*/
#if defined _olds_shadow_included
#endinput
#endif
#define _olds_shadow_included
#pragma reqlib "olds_shadow"
/* Starts a run. Returns 1 if a reference run exists for this route and style. */
native olds_shadow_start(id, const route[], const style[], const routeSig[])
/* Checkpoint number (1 = first) reached at runTime seconds. Returns 1 if a delta was shown. */
native olds_shadow_checkpoint(id, number, Float:runTime)
/* The run ended at runTime seconds; valid = 1 for a finish the timer accepts. Returns 1 if it
* became the new reference. */
native olds_shadow_finish(id, Float:runTime, valid)
/* The run was reset or stopped: no more deltas; the reference is not touched. */
native olds_shadow_reset(id)
/* The player switched style: the current run stops and the next start uses this style. */
native olds_shadow_style(id, const style[])