#ecs #gamedev #specs

specs-static

specs-static is an extension for Specs that adds custom ids

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

#801 in Concurrency

Download history 5/week @ 2023-11-03 5/week @ 2023-11-10 1/week @ 2023-11-17 8/week @ 2023-11-24 14/week @ 2023-12-01 4/week @ 2023-12-15 8/week @ 2023-12-22 4/week @ 2023-12-29 8/week @ 2024-01-19 4/week @ 2024-01-26 6/week @ 2024-02-02 7/week @ 2024-02-09 47/week @ 2024-02-16

64 downloads per month

MIT/Apache

10KB
122 lines

specs-static

Build Status Crates.io MIT/Apache Docs.rs LoC

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 ids
  • get, get_mut and Join
  • 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
~93K SLoC