{"repo":"dekirisu/bevy_cell","free":true,"listed":false,"github":"https://github.com/dekirisu/bevy_cell","clone":"git clone https://github.com/dekirisu/bevy_cell.git","description":"Attach Bevy's Handles/Entities statically to Types.","language":"Rust","stars":39,"topics":["bevy","rustlang","lazy","macro"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"🦊 Easily attach bevy 's Handles/Entities statically to types 🐑 Get them in any system, without using Resources. 🦄 See type cell for any other use case! --- I. There are 2 valid syntaxes: 🐰 {Type} [name1] [name2] [name3] 🦝 Type: [name1] [name2] [name3]; II. The syntax inside the [] will change the attached type: 🐈 Entity - Just choose a name: [camera] 🦥 Handle - Its type separated by a : [Image cat] 🐹 Raw - Its type separated by a : : [Image:cat] 🐒 If no type is set, the parent type is used: [ cat] [:cat] III. Setting the collection type is also done inside [] : 🦄 Single - Using the syntax as in II. 🐔 Vec - add a < after the name: [cameras< ] 🐲 HashMap - add a after the name: [cameras ] IV. Setting Values: 🐑 Use Type::set ..(value) ONCE on (pre-)startup 🦌 The value can be anything implementing its type! V. Getting Values: 🐏 Different getters are provided, depending on the collection type! VI. Mutability: 🐝 You can make any of those mutable by adding a mut before the name 🦞 Only use this if you can avoid race conditions 🦧 One idea is to mutate something on state change! --- License Licensed under either of Apache License, Version 2.0 or MIT license at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.","default_branch":null,"files":null,"tree":[],"storefront":"/r/dekirisu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dekirisu/bevy_cell/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}