Does not support multi slot items #9

Open
opened 2022-07-26 17:30:59 +00:00 by Lubba-64 · 1 comment
Lubba-64 commented 2022-07-26 17:30:59 +00:00 (Migrated from github.com)

There are games like subnautica, and escape from tarkov, that have items that take up multiple slots worth of space. I was unaware of this potential configuration when making this.

This is not a feature that is planned, this is just something the crate does not support right now but could in the future.
I don't think there are any good ways of adding this in without making some breaking changes.

The best way I can think of for doing this is splitting the library up into containers, each with a generic implementation for a different type of inventory system. Doing it like this would just mean importing stuff from standard or spatial or whatever other generic inventory ends up being created, like so:

use game_inventory::spatial::*;
// or...
use game_inventory::standard::*;
There are games like subnautica, and escape from tarkov, that have items that take up multiple slots worth of space. I was unaware of this potential configuration when making this. This is not a feature that is planned, this is just something the crate does not support right now but could in the future. I don't think there are any good ways of adding this in without making some breaking changes. The best way I can think of for doing this is splitting the library up into containers, each with a generic implementation for a different type of inventory system. Doing it like this would just mean importing stuff from `standard` or `spatial` or whatever other generic inventory ends up being created, like so: ```rs use game_inventory::spatial::*; // or... use game_inventory::standard::*; ```
Lubba-64 commented 2022-07-26 17:34:00 +00:00 (Migrated from github.com)

I should add this to the restrictions section of the docs, although going through the trouble of publishing a new version to update the docs seems like a bad idea.

I should add this to the restrictions section of the docs, although going through the trouble of publishing a new version to update the docs seems like a bad idea.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lubba64/game_inventory#9
No description provided.