mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
489 B
C++
21 lines
489 B
C++
#include "common.hpp"
|
|
#include <llarp.hpp>
|
|
|
|
namespace llarp
|
|
{
|
|
namespace simulate
|
|
{
|
|
void
|
|
SimContext_Init(py::module& mod)
|
|
{
|
|
py::class_< Simulation, Sim_ptr >(mod, "Simulation")
|
|
.def(py::init<>())
|
|
.def("AddNode", &Simulation::AddNode)
|
|
.def("DelNode", &Simulation::DelNode);
|
|
py::object context = py::cast(std::make_shared< Simulation >());
|
|
mod.attr("context") = context;
|
|
}
|
|
|
|
} // namespace simulate
|
|
} // namespace llarp
|