Skip to content

Commit

Permalink
[python] fix: remove uncessary constructor for Resources
Browse files Browse the repository at this point in the history
  • Loading branch information
jd28 committed Jul 24, 2024
1 parent 37ec937 commit bebaa6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/fake/rollnw/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ class Resources(Container):
"""Resources service
"""

def __init__(self, parent: "Resources"):
"""Constructs resoruce manager with a given parent."""

def demand_any(self, resref: str,
restypes: List[ResourceType]) -> ResourceData:
"""Gets the first found resource in container priority order for an arbitrary list
Expand Down
1 change: 0 additions & 1 deletion rollnw-py/wrapper_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ void init_kernel_objects(py::module& kernel)
void init_kernel_resources(py::module& kernel)
{
py::class_<nw::kernel::Resources, nw::Container>(kernel, "Resources")
.def(py::init<>())
.def(py::init<const nw::kernel::Resources*>(),
py::keep_alive<1, 2>())
.def("demand_any", &nw::kernel::Resources::demand_any)
Expand Down

0 comments on commit bebaa6d

Please sign in to comment.