Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
s_base.h File Reference
#include <iostream>
#include <string>
#include <thread>
#include <mutex>
#include <unordered_map>
#include "common/helper.h"
#include "util/basic_macros.h"
#include <lua.h>
#include <lualib.h>
#include "irrlichttypes.h"
#include "common/c_types.h"
#include "common/c_internal.h"
#include "debug.h"
#include "config.h"
+ Include dependency graph for s_base.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ScriptApiBase
 

Macros

#define SCRIPTAPI_LOCK_DEBUG
 
#define BUILTIN_MOD_NAME   "*builtin*"
 
#define PCALL_RES(RES)
 
#define runCallbacks(nargs, mode)    runCallbacksRaw((nargs), (mode), __FUNCTION__)
 
#define setOriginFromTable(index)    setOriginFromTableRaw(index, __FUNCTION__)
 

Enumerations

enum class  ScriptingType : u8 {
  Async , Client , MainMenu , Server ,
  Emerge
}
 

Macro Definition Documentation

◆ BUILTIN_MOD_NAME

◆ PCALL_RES

#define PCALL_RES ( RES)
Value:
{ \
int result_ = (RES); \
if (result_ != 0) { \
scriptError(result_, __FUNCTION__); \
} \
}

Referenced by MainMenuScripting::beforeClose(), ScriptApiEnv::check_for_falling(), ScriptApiServer::createAuth(), ScriptApiDetached::detached_inventory_AllowMove(), ScriptApiDetached::detached_inventory_AllowPut(), ScriptApiDetached::detached_inventory_AllowTake(), ScriptApiDetached::detached_inventory_OnMove(), ScriptApiDetached::detached_inventory_OnPut(), ScriptApiDetached::detached_inventory_OnTake(), ScriptApiServer::getAuth(), ScriptApiMainMenu::handleMainMenuButtons(), ScriptApiMainMenu::handleMainMenuEvent(), ScriptApiItem::item_CraftPredict(), ScriptApiItem::item_OnCraft(), ScriptApiItem::item_OnDrop(), ScriptApiItem::item_OnPlace(), ScriptApiItem::item_OnSecondaryUse(), ScriptApiItem::item_OnUse(), ScriptApiEntity::luaentity_Activate(), ScriptApiEntity::luaentity_Deactivate(), ScriptApiEntity::luaentity_GetStaticdata(), ScriptApiEntity::luaentity_Punch(), ScriptApiEntity::luaentity_run_simple_callback(), ScriptApiEntity::luaentity_Step(), ScriptApiNode::node_after_destruct(), ScriptApiNode::node_on_construct(), ScriptApiNode::node_on_destruct(), ScriptApiNode::node_on_dig(), ScriptApiNode::node_on_flood(), ScriptApiNode::node_on_punch(), ScriptApiNode::node_on_receive_fields(), ScriptApiNode::node_on_timer(), ScriptApiNodemeta::nodemeta_inventory_AllowMove(), ScriptApiNodemeta::nodemeta_inventory_AllowPut(), ScriptApiNodemeta::nodemeta_inventory_AllowTake(), ScriptApiNodemeta::nodemeta_inventory_OnMove(), ScriptApiNodemeta::nodemeta_inventory_OnPut(), ScriptApiNodemeta::nodemeta_inventory_OnTake(), ScriptApiServer::on_dynamic_media_added(), ScriptApiEnv::on_emerge_area_completion(), ScriptApiPlayer::on_player_hpchange(), and ScriptApiServer::setPassword().

◆ runCallbacks

#define runCallbacks ( nargs,
mode )    runCallbacksRaw((nargs), (mode), __FUNCTION__)

Referenced by ScriptApiPlayer::can_bypass_userlimit(), ScriptApiEnv::environment_OnGenerated(), ScriptApiEnv::environment_Step(), ScriptApiClient::environment_step(), ScriptApiPlayer::on_authplayer(), ScriptApiServer::on_chat_message(), ScriptApiPlayer::on_cheat(), ScriptApiClient::on_damage_taken(), ScriptApiPlayer::on_dieplayer(), ScriptApiClient::on_dignode(), ScriptApiClient::on_formspec_input(), ScriptApiMapgen::on_generated(), ScriptApiClient::on_hp_modification(), ScriptApiClient::on_inventory_open(), ScriptApiClient::on_item_use(), ScriptApiPlayer::on_joinplayer(), ScriptApiPlayer::on_leaveplayer(), ScriptApiEnv::on_liquid_transformed(), ScriptApiEnv::on_mapblocks_changed(), ScriptApiModChannels::on_modchannel_message(), ScriptApiModChannels::on_modchannel_signal(), ScriptApiClient::on_mods_loaded(), ScriptApiMapgen::on_mods_loaded(), ScriptApiServer::on_mods_loaded(), ScriptApiPlayer::on_newplayer(), ScriptApiClient::on_placenode(), ScriptApiPlayer::on_playerReceiveFields(), ScriptApiPlayer::on_prejoinplayer(), ScriptApiClient::on_punchnode(), ScriptApiPlayer::on_punchplayer(), ScriptApiClient::on_receiving_message(), ScriptApiPlayer::on_respawnplayer(), ScriptApiPlayer::on_rightclickplayer(), ScriptApiClient::on_sending_message(), ScriptApiClient::on_shutdown(), ScriptApiMapgen::on_shutdown(), ScriptApiServer::on_shutdown(), ScriptApiEnv::player_event(), ScriptApiPlayer::player_inventory_AllowMove(), ScriptApiPlayer::player_inventory_AllowPut(), ScriptApiPlayer::player_inventory_AllowTake(), ScriptApiPlayer::player_inventory_OnMove(), ScriptApiPlayer::player_inventory_OnPut(), and ScriptApiPlayer::player_inventory_OnTake().

◆ SCRIPTAPI_LOCK_DEBUG

#define SCRIPTAPI_LOCK_DEBUG

◆ setOriginFromTable

Enumeration Type Documentation

◆ ScriptingType

enum class ScriptingType : u8
strong
Enumerator
Async 
Client 
MainMenu 
Server 
Emerge