Luanti 5.16.0-dev
 
Loading...
Searching...
No Matches
scripting_sscsm.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 Luanti authors
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#pragma once
6
7#include "cpp_api/s_base.h"
8#include "cpp_api/s_sscsm.h"
10
12 virtual public ScriptApiBase,
13 public ScriptApiSSCSM,
15{
16public:
18
19protected:
20 bool checkPathInternal(const std::string &abs_path, bool write_required,
21 bool *write_allowed) { return false; };
22
23private:
24 void initializeModApi(lua_State *L, int top);
25};
The thread that runs SSCSM code.
Definition sscsm_environment.h:26
Definition scripting_sscsm.h:15
SSCSMScripting(SSCSMEnvironment *env)
Definition scripting_sscsm.cpp:11
void initializeModApi(lua_State *L, int top)
Definition scripting_sscsm.cpp:32
bool checkPathInternal(const std::string &abs_path, bool write_required, bool *write_allowed)
Should check if the given path may be accessed.
Definition scripting_sscsm.h:20
Definition s_base.h:66
Definition s_sscsm.h:10
Definition s_security.h:28