From 9d7dc590232887e4c4232119142d5dace341a7fa Mon Sep 17 00:00:00 2001 From: Sander Mertens Date: Sat, 13 Jul 2024 19:03:49 -0700 Subject: [PATCH] Fix links to Flecs Rust binding --- README.md | 8 ++++---- docs/Docs.md | 2 +- docs/Queries.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 186704b26..e7651687b 100644 --- a/README.md +++ b/README.md @@ -62,9 +62,9 @@ int main(int argc, char *argv[]) { ECS_SYSTEM(ecs, Move, EcsOnUpdate, Position, Velocity); - ecs_entity_t e = ecs_new(ecs); - ecs_set(ecs, e, Position, {10, 20}); - ecs_set(ecs, e, Velocity, {1, 2}); + ecs_entity_t e = ecs_insert(ecs, + ecs_value(Position, {10, 20}), + ecs_value(Velocity, {1, 2})); while (ecs_progress(ecs, 0)) { } } @@ -163,7 +163,7 @@ The following language bindings have been developed with Flecs! Note that these - C#: - [BeanCheeseBurrito/Flecs.NET](https://github.com/BeanCheeseBurrito/Flecs.NET) - Rust: - - [flecs-ecs-rs](https://github.com/Indra-db/flecs-ecs-rs) + - [Flecs-Rust](https://github.com/Indra-db/Flecs-Rust) - [flecs-polyglot](https://github.com/flecs-hub/flecs-polyglot) - [flecs-rs](https://github.com/jazzay/flecs-rs) - Zig: diff --git a/docs/Docs.md b/docs/Docs.md index 87f8b34d3..b1c6be166 100644 --- a/docs/Docs.md +++ b/docs/Docs.md @@ -29,7 +29,7 @@ - [C examples](https://github.com/SanderMertens/flecs/tree/master/examples/c) - [C++ examples](https://github.com/SanderMertens/flecs/tree/master/examples/cpp) - [C# examples](https://github.com/BeanCheeseBurrito/Flecs.NET/tree/main/src/Flecs.NET.Examples) -- [Rust examples](https://github.com/Indra-db/flecs-ecs-rs/tree/main/flecs_ecs/examples/flecs) +- [Rust examples](https://github.com/Indra-db/Flecs-Rust/tree/main/flecs_ecs/examples/flecs) ## Demos - [Playground (Flecs Script)](https://www.flecs.dev/explorer/?host=flecs_explorer.wasm) diff --git a/docs/Queries.md b/docs/Queries.md index f11553fa2..00fb65da4 100644 --- a/docs/Queries.md +++ b/docs/Queries.md @@ -41,7 +41,7 @@ Make sure to check out the query code examples in the repository: - [queries (C)](https://github.com/SanderMertens/flecs/tree/master/examples/c/queries) - [queries (C++)](https://github.com/SanderMertens/flecs/tree/master/examples/cpp/queries) - - [queries (Rust)](https://github.com/Indra-db/flecs-ecs-rs/tree/main/flecs_ecs/examples/flecs/queries) + - [queries (Rust)](https://github.com/Indra-db/Flecs-Rust/tree/main/flecs_ecs/examples/flecs/queries) ## Performance and Caching Understanding the basic architecture of queries helps to make the right tradeoffs when using queries in games. The biggest impact on query performance is whether a query is cached or not. This section goes over what caching is, how it can be used and when it makes sense to use it.