polserver/pol-core/bscript/fmodule.h
turleypol 1463b76c7c
Includes are now all relative to pol-core basefolder (#906)
* all except pol

* pol and includes under defines

* something weird has happened

* remove own folder from include searchpath

* fixed remaining, adapted include style for external headers

* missing include
2026-07-25 23:01:18 +02:00

48 lines
871 B
C++

/** @file
*
* @par History
*/
#ifndef FMODULE_H
#define FMODULE_H
#include <map>
#include <stddef.h>
#include <string>
#include <vector>
#include "clib/boostutils.h"
#include "clib/maputil.h"
namespace Pol::Bscript
{
class ModuleFunction
{
public:
boost_utils::function_name_flystring name;
unsigned nargs;
int funcidx; // according to the executor, what's its function index
ModuleFunction( const char* fname, int nargs );
~ModuleFunction() = default;
};
class FunctionalityModule
{
public:
bool have_indexes;
std::vector<ModuleFunction*> functions;
boost_utils::function_name_flystring modulename;
explicit FunctionalityModule( const char* modname );
FunctionalityModule( const FunctionalityModule& ) = delete;
~FunctionalityModule();
void addFunction( const char* funcname, int nparams );
};
} // namespace Pol::Bscript
#endif