#if defined _coords_manager_included
#endinput
#endif
#define _coords_manager_included
#include <coords_manager_const>
/**
* Add key.
*
* @param key Key
*
* @return Error code (coords_manager_const)
*/
native cm_add_key(const key[MAX_KEY_LENGTH]);
/**
* Add coord by key.
*
* @param key Key
* @param origin Origin array
*
* @return Origin index on success, otherwise error code (coords_manager_const)
*/
native cm_add_coord(const key[MAX_KEY_LENGTH], Float:origin[3]);
/**
* Get coord by key.
*
* @param key Key
* @param index Origin index
* @param origin Origin array
*
* @return Error code (coords_manager_const)
*/
native cm_get_coord(const key[MAX_KEY_LENGTH], index = NONE_INDEX, Float:origin[3]);
/**
* Get random coord.
*
* @param key Key
* @param origin Origin array
*
* @return Origin index on success, otherwise error code (coords_manager_const)
*/
native cm_get_random_coord(const key[MAX_KEY_LENGTH] = "", Float:origin[3]);
/**
* Check if key is exists.
*
* @param key Key
*
* @return true/false
*/
native bool:cm_key_exists(const key[MAX_KEY_LENGTH]);
/**
* Remove key.
*
* @param key Key
*
* @return Error code (coords_manager_const)
*/
native cm_remove_key(const key[MAX_KEY_LENGTH]);
/**
* Remove coord by index.
*
* @param key Key
* @param index Coord info
* @param origin Origin array
*
* @return Error code (coords_manager_const)
*/
native cm_remove_coord(const key[MAX_KEY_LENGTH], index);
/**
* Called when a data loaded.
*
* @noreturn
*/
forward cm_data_loaded();