limnus-assets

Crates.iolimnus-assets
lib.rslimnus-assets
version0.0.12
sourcesrc
created_at2024-11-24 19:38:06.787697
updated_at2024-12-03 18:51:32.131462
descriptionstore assets in a slot map
homepage
repositoryhttps://github.com/swamp/limnus
max_upload_size
id1459532
size8,027
Peter Bjorklund (piot)

documentation

README

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 and get_mut.
  • Asset Iteration: Iterate over all stored assets with the iter method, providing both the Id 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 and len.

📦 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

Commit count: 19

cargo fmt