Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue #112]Implementing missing level feature: Inventory #114

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nakul-py
Copy link

@nakul-py nakul-py commented Jan 2, 2025

Implementing missing level features.
Fixes #112

@RadiatedMonkey RadiatedMonkey added the C-Level Category: Level label Jan 2, 2025
@akashic-records-of-the-abyss
Copy link
Contributor

From what i can tell this doesnt actually implement the Inventory? All this does is expose the key value to get an inventory. A consumer would still have to query the underlying DB (possible via an unsafe call on level) to get the data that they then need to parse manually anyway.

@akashic-records-of-the-abyss
Copy link
Contributor

This isnt valid code i dont think? Why is the RustDBInterface storing the UserState and cloning it? There is no reason for the RustyDBInterface to store UserState. This also enforces copying of the UserState which isnt possible for some setups

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address the issues given

crates/level/src/level/db_interface/inventory.rs Outdated Show resolved Hide resolved
crates/level/src/level/db_interface/rusty.rs Outdated Show resolved Hide resolved
crates/level/src/level/db_interface/rusty.rs Outdated Show resolved Hide resolved
crates/level/src/level/db_interface/rusty.rs Outdated Show resolved Hide resolved
crates/level/src/level/db_interface/rusty.rs Show resolved Hide resolved
crates/level/src/level/db_interface/rusty.rs Show resolved Hide resolved
crates/level/src/level/db_interface/rusty.rs Outdated Show resolved Hide resolved
crates/level/src/level/db_interface/rusty.rs Outdated Show resolved Hide resolved
crates/level/src/level/db_interface/rusty.rs Show resolved Hide resolved
@akashic-records-of-the-abyss
Copy link
Contributor

Also please mark this PR as a draft and not ready to merge

@nakul-py nakul-py marked this pull request as draft January 4, 2025 14:48
@nakul-py nakul-py marked this pull request as ready for review January 7, 2025 06:02
@nakul-py nakul-py marked this pull request as draft January 7, 2025 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Level Category: Level
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement missing level features: Inventories
3 participants