83 lines
2.2 KiB
C++
83 lines
2.2 KiB
C++
#ifndef LOGIC_SCRIPTING_SCRIPTING_FUNCTIONAL_HPP_
|
|
#define LOGIC_SCRIPTING_SCRIPTING_FUNCTIONAL_HPP_
|
|
|
|
#include <glm/glm.hpp>
|
|
#include <string>
|
|
|
|
#include "data/dynamic.hpp"
|
|
#include "delegates.hpp"
|
|
#include "typedefs.hpp"
|
|
|
|
namespace scripting {
|
|
using common_func =
|
|
std::function<dynamic::Value(const std::vector<dynamic::Value>&)>;
|
|
|
|
runnable create_runnable(
|
|
const scriptenv& env,
|
|
const std::string& src,
|
|
const std::string& file = "<string>"
|
|
);
|
|
|
|
wstringconsumer create_wstring_consumer(
|
|
const scriptenv& env,
|
|
const std::string& src,
|
|
const std::string& file = "<string>"
|
|
);
|
|
|
|
wstringsupplier create_wstring_supplier(
|
|
const scriptenv& env,
|
|
const std::string& src,
|
|
const std::string& file = "<string>"
|
|
);
|
|
|
|
wstringchecker create_wstring_validator(
|
|
const scriptenv& env,
|
|
const std::string& src,
|
|
const std::string& file = "<string>"
|
|
);
|
|
|
|
boolconsumer create_bool_consumer(
|
|
const scriptenv& env,
|
|
const std::string& src,
|
|
const std::string& file = "<string>"
|
|
);
|
|
|
|
boolsupplier create_bool_supplier(
|
|
const scriptenv& env,
|
|
const std::string& src,
|
|
const std::string& file = "<string>"
|
|
);
|
|
|
|
doubleconsumer create_number_consumer(
|
|
const scriptenv& env,
|
|
const std::string& src,
|
|
const std::string& file = "<string>"
|
|
);
|
|
|
|
doublesupplier create_number_supplier(
|
|
const scriptenv& env,
|
|
const std::string& src,
|
|
const std::string& file = "<string>"
|
|
);
|
|
|
|
int_array_consumer create_int_array_consumer(
|
|
const scriptenv& env,
|
|
const std::string& src,
|
|
const std::string& file = "<string>"
|
|
);
|
|
|
|
vec2supplier create_vec2_supplier(
|
|
const scriptenv& env,
|
|
const std::string& src,
|
|
const std::string& file = "<string>"
|
|
);
|
|
|
|
dynamic::to_string_func create_tostring(
|
|
const scriptenv& env,
|
|
const std::string& src,
|
|
const std::string& file = "<string>"
|
|
);
|
|
}
|
|
|
|
#endif // LOGIC_SCRIPTING_SCRIPTING_FUNCTIONAL_HPP_
|