feat: Added Sky class

+ changed file structure in the python module
+ fixed static method binding for PyDaedalus class
This commit is contained in:
AURUMVORXX
2024-11-07 02:29:19 +03:00
parent 6e76960158
commit 15b34c3f40
11 changed files with 185 additions and 16 deletions

View File

@@ -3,7 +3,6 @@
#include <classes/sq/Daedalus.h>
#include <pybind11/embed.h>
#include <iostream>
namespace py = pybind11;
class PyDaedalus
@@ -11,8 +10,7 @@ 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 nonut::Int index(nonut::String value) { return nonut::Daedalus::get()->index(value); }
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; }
};