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:
AURUMVORXX
2024-11-06 23:58:23 +03:00
parent fe0604d79c
commit f4ec811163
20 changed files with 141 additions and 98 deletions

20
src/classes/py/Daedalus.h Normal file
View 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