feat: Added Daedalus class
+ sqParseTable moved to nonut::CustomTypes as SqDict + fix: Removed Python constructors for ItemGround and DamageDescription classes (so it's unable to make new objects in the scripts)
This commit is contained in:
20
src/classes/py/Daedalus.h
Normal file
20
src/classes/py/Daedalus.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef _PYDAEDALUS_H_
|
||||
#define _PYDAEDALUS_H_
|
||||
|
||||
#include <classes/sq/Daedalus.h>
|
||||
#include <pybind11/embed.h>
|
||||
#include <iostream>
|
||||
namespace py = pybind11;
|
||||
|
||||
class PyDaedalus
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//static nonut::Int index(nonut::String value) { return nonut::Daedalus::get()->index(value); }
|
||||
static nonut::Int index(nonut::String value) { std::cout << nonut::Daedalus::get()->index(value) << std::endl;return 5; }
|
||||
static py::dict symbol(nonut::String value) { return nonut::Daedalus::get()->symbol(value).data; }
|
||||
static py::dict instance(nonut::String value) { return nonut::Daedalus::get()->instance(value).data; }
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user