4 releases (2 breaking)
Uses old Rust 2015
0.3.0 | Mar 6, 2019 |
---|---|
0.2.0 | May 19, 2018 |
0.1.1 | Mar 26, 2018 |
0.1.0 | Mar 26, 2018 |
#815 in Concurrency
10KB
122 lines
specs-static
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.
Usage
Please see the basic example.
Required Rust version
1.29 stable
Features
Storage
with custom idsget
,get_mut
andJoin
WorldExt
for registering these storages
Contribution
Contribution 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.
License
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.
Dependencies
~5MB
~96K SLoC