/*
* The wardrobe core API that Wardrobe Ballot (olds_wardrobe) uses. A wardrobe
* core, or a bridge plugin in front of one, provides these natives under the
* library name "wardrobe_core".
* Copyright (C) 2026 daemon (olds.ro)
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#if defined _olds_wardrobe_core_included
#endinput
#endif
#define _olds_wardrobe_core_included
#pragma reqlib wardrobe_core
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib wardrobe_core
#endif
/* Theme index for the core's own default look. */
#define WARDROBE_DEFAULT -1
/**
* @return how many themes the registry holds (indexes 0 .. count-1)
*/
native wardrobe_theme_count();
/**
* A theme's name, and whether every file of it is present and precached.
*
* @param theme registry index
* @param name receives the theme's display name
* @param missing receives the path of the first missing or not precached file, if any
* @return 1 if the theme is complete and permitted, 0 if not
*/
native wardrobe_theme_check(theme, name[], nameLen, missing[], missingLen);
/**
* Shows the player a preview of the theme (the core decides how).
*/
native wardrobe_preview(id, theme);
/**
* Dresses the player in the theme, or in the core's default with WARDROBE_DEFAULT.
*
* @return 1 if applied
*/
native wardrobe_apply(id, theme);