Crain-32 / Multiworld_Client

MIT License
1 stars 4 forks source link

Current Item Tracking - Resolved through ASM Patches #6

Closed Crain-32 closed 2 years ago

Crain-32 commented 2 years ago

Reason

In order for Multiworld to Properly work with the current implementation, the Client needs to know when it should remove Items, and when it should give Items. This helps handle the player getting other player's items.

Expected Implementation

The expectation is a Singleton Class (PlayerInventory? InventoryManager? just make it relevant) with the following functions.

server_received_item(item_id: int,) -> bool:

server_sent_item(item_id: int) -> bool:

current_items() -> dict[str, int]:

jaysc commented 2 years ago

FYI https://stackoverflow.com/questions/6760685/creating-a-singleton-in-python

Crain-32 commented 2 years ago

FYI https://stackoverflow.com/questions/6760685/creating-a-singleton-in-python

I'm not exactly positive about how singletons are related to this Issue. I reread the issue and noticed I used the word singleton. That's my bad, it can just be a class, smh Crain.

I believe the only instance of one was for the Config, which you've already made a PR for.