{"id":17501932,"url":"https://github.com/itsdoot/bevy_observed_utility","last_synced_at":"2025-04-14T03:23:03.018Z","repository":{"id":253728260,"uuid":"844342301","full_name":"ItsDoot/bevy_observed_utility","owner":"ItsDoot","description":"Ergonomic and Correct Utility AI for Bevy Engine","archived":false,"fork":false,"pushed_at":"2025-03-05T01:48:35.000Z","size":181,"stargazers_count":26,"open_issues_count":10,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T17:21:25.195Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://crates.io/crates/bevy_observed_utility","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ItsDoot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-19T03:55:12.000Z","updated_at":"2025-03-05T01:48:38.000Z","dependencies_parsed_at":"2024-11-01T01:02:47.846Z","dependency_job_id":"f357e618-a167-4cea-af27-1c0ef8ffb305","html_url":"https://github.com/ItsDoot/bevy_observed_utility","commit_stats":null,"previous_names":["itsdoot/bevy_observed_utility"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsDoot%2Fbevy_observed_utility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsDoot%2Fbevy_observed_utility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsDoot%2Fbevy_observed_utility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsDoot%2Fbevy_observed_utility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ItsDoot","download_url":"https://codeload.github.com/ItsDoot/bevy_observed_utility/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248814100,"owners_count":21165690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-19T20:33:16.614Z","updated_at":"2025-04-14T03:23:02.998Z","avatar_url":"https://github.com/ItsDoot.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bevy_observed_utility\n\nA state-of-the-art utility AI library for Bevy, built using ECS [observers](https://docs.rs/bevy/latest/bevy/ecs/prelude/struct.Observer.html), with a focus on ergonomics and correctness.\n\nSee the [documentation](https://docs.rs/bevy_observed_utility/latest/bevy_observed_utility) for a complete walkthrough example of using the library.\n\n## Get Started\n\n```toml\n[dependencies]\nbevy_observed_utility = \"0.2.0\"\n```\n\n| Bevy Version | Crate Version |\n|--------------|---------------|\n| 0.14         | 0.1.0         |\n| 0.15         | 0.2.0         |\n\n## Features\n\n- Minimal boilerplate: Add utility AI to pre-existing entities with little ceremony.\n- Highly expressive: Build scoring hierarchies for whatever occasion, as complex or as simple as needed.\n- Order-correct scoring: Hierarchies score their children before their parents.\n- Familiar design: Reuses standard `Parent`/`Children` hierarchy components to build actor entities that select actions based on their child score entities.\n- Pay-for-what-you-use performance: Scoring and Picking variants' observers are only registered when they're spawned for the first time.\n- Game flow agnostic: Works well with both real-time and turn-based game simulation.\n\n## Design Goals\n\nIn order of priority:\n\n- **Correctness**\n    - Scoring entity trees are scored in depth-first post-order traversal, ensuring that all children are scored before their parents.\n- **Ergonomics**:\n    - Adding scoring, picking, and actions to pre-existing entities should have little boilerplate.\n- **Modularity**:\n    - Adding new kinds of scoring and picking should be easy.\n    - Adding different ways of handling actions should be easy.\n    - Both turn-based and real-time games should be supported.\n- **Performance**:\n    - Pay only for what you use: Scoring and picking observers are only added if they are used.\n    - Scoring and picking should be reasonably fast. Action performance is up to the user.\n\n## Lifecycle Visualized\n\n![lifecycle](https://raw.githubusercontent.com/ItsDoot/bevy_observed_utility/main/lifecycle.png)\n\n## License\n\n`bevy_observed_utility` is dual-licensed under either:\n\n- MIT License\n- Apache License, Version 2.0\n\nat your option.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsdoot%2Fbevy_observed_utility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsdoot%2Fbevy_observed_utility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsdoot%2Fbevy_observed_utility/lists"}