Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide tile assignments for cities in scenarios #551

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

TomWerner
Copy link
Contributor

Unlike with .SAV files, scenarios don't specify the tile assignments for each of the citizens in cities. To handle this we backfill them using the tile assignment AI. This is slightly complicated by fact that the C7Engine code can't depend directly on the AI logic, so we have to do some dependency injection via an Action.

#541

@TomWerner TomWerner force-pushed the twrner/assign-citizens-in-scenarios branch 12 times, most recently from 7b824d3 to 58ddc95 Compare February 17, 2025 20:18
Unlike with `.SAV` files, scenarios don't specify the tile assignments for each of the citizens in cities. To handle this we backfill them using the tile assignment AI. This is slightly complicated by fact that the `C7Engine` code can't depend directly on the AI logic, so we have to do some dependency injection via an `Action`.

#541
@TomWerner TomWerner force-pushed the twrner/assign-citizens-in-scenarios branch from 58ddc95 to 88e7a70 Compare February 19, 2025 20:13
@TomWerner
Copy link
Contributor Author

Merging as this PR has been open a week. I'm always happy to address post-submit comments.

@TomWerner TomWerner merged commit c24d3c9 into Development Feb 19, 2025
3 checks passed
@TomWerner TomWerner deleted the twrner/assign-citizens-in-scenarios branch February 19, 2025 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant