Skip to main content

Module core

Module core 

Source
Expand description

ICore — generated by cargo xtask gen-omp from core.hpp. Implemented by Core in the server’s omp-server.

Do not edit: change xtask/omp-wrappers.toml or the generator and regenerate. Slots are clang’s layout of the header for each ABI, checked against the official binaries by cargo xtask check-abi --generated.

Functions§

core_config⚠
IConfig & ICore::getConfig().
core_connect_bot⚠
void ICore::connectBot(StringView, StringView).
core_event_dispatcher⚠
IEventDispatcher<CoreEventHandler> & ICore::getEventDispatcher().
core_gravity⚠
float ICore::getGravity().
core_network_bit_stream_version⚠
int ICore::getNetworkBitStreamVersion().
core_networks⚠
const FlatPtrHashSet<INetwork> & ICore::getNetworks().
core_players⚠
IPlayerPool & ICore::getPlayers().
core_reload_all⚠
void ICore::reloadAll().
core_request_http⚠
void ICore::requestHTTP(HTTPResponseHandler *, HTTPRequestType, StringView, StringView).
core_request_http4⚠
void ICore::requestHTTP4(HTTPResponseHandler *, HTTPRequestType, StringView, StringView).
core_reset_all⚠
void ICore::resetAll().
core_set_data⚠
void ICore::setData(SettableCoreDataType, StringView).
core_set_gravity⚠
void ICore::setGravity(float).
core_set_thread_sleep⚠
void ICore::setThreadSleep(Microseconds).
core_set_weather⚠
void ICore::setWeather(int).
core_set_world_time⚠
void ICore::setWorldTime(Hours).
core_sha256⚠
bool ICore::sha256(StringView, StringView, StaticArray<char, 64 + 1> &).
core_tick_count⚠
unsigned int ICore::getTickCount().
core_tick_rate⚠
unsigned int ICore::tickRate().
core_use_dyn_ticks⚠
void ICore::useDynTicks(const bool).
core_use_stunt_bonuses⚠
void ICore::useStuntBonuses(bool).
core_version⚠
SemanticVersion ICore::getVersion().
core_version_hash⚠
StringView ICore::getVersionHash().
core_weapon_name⚠
StringView ICore::getWeaponName(PlayerWeapon).