Crates.io | specs-static |
lib.rs | specs-static |
version | 0.3.0 |
source | src |
created_at | 2018-03-26 07:40:29.030304 |
updated_at | 2019-03-06 16:50:44.311611 |
description | specs-static is an extension for Specs that adds custom ids. |
homepage | |
repository | https://github.com/torkleyy/specs-static |
max_upload_size | |
id | 57547 |
size | 23,856 |
An experimental extension for Specs.
This adds component storages that are not indexed by Entity
, but by custom ids that
are entirely managed by the user.
This can be useful for tile maps where you want each tile to have certain components. Managing the ids manually will give you a huge performance boost here.
Please see the basic example.
1.29 stable
Storage
with custom idsget
, get_mut
and Join
WorldExt
for registering these storagesContribution is highly welcome! If you'd like another feature, just create an issue. You can also help out with any issue you want to; just make sure to leave a comment that you're working on it. If you need any help, feel free to ask!
All contributions are assumed to be dual-licensed under MIT/Apache-2.
specs-static
is distributed under the terms of both the MIT
license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT.