3 releases
new 0.0.12 | Dec 3, 2024 |
---|---|
0.0.11 | Nov 30, 2024 |
0.0.10 | Nov 24, 2024 |
#1529 in Game dev
311 downloads per month
Used in 18 crates
(13 directly)
26KB
470 lines
limnus-assets 🧱
limnus-assets
is a simple and efficient asset management system built on top of the sparse-slot
. It is
designed to store and manage assets with unique identifiers, providing functionality for insertion, removal,
and access to assets. The system supports both immutable and mutable access to assets and is suitable for
use in game engines or any other system that needs to manage assets efficiently.
✨ Features
- Efficient Asset Storage: Uses
sparse-slot
for efficient handling of assets by index and generation. - Asset Management: Add, remove, and access assets using unique identifiers (
Id
). - Immutable and Mutable Access: Retrieve assets immutably or mutably with
get
andget_mut
. - Asset Iteration: Iterate over all stored assets with the
iter
method, providing both theId
and the asset. - Empty Check and Length: Check if the asset store is empty or get the current number of stored assets with
is_empty
andlen
.
📦 Installation
To use limnus-assets
, add it to your Cargo.toml
:
[dependencies]
limnus-assets = "0.0.12"
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contents credits
- Kenny.nl "platform art deluxe"
Dependencies
~0.6–11MB
~64K SLoC