-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Integrate flow field pathfinder into game simulation #1656
Conversation
4e4536b
to
7fcfdf9
Compare
9ac1a73
to
e410c95
Compare
759396c
to
c3f49b6
Compare
7809d09
to
1487ef3
Compare
c0bfe1f
to
da96a11
Compare
8d4c2cb
to
6c9ded3
Compare
abce704
to
13ce00c
Compare
13ce00c
to
347d586
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this is good for now, and an incremental improvement to the already well designed previous code. we surely can improve further and fix bugs that show up in practice :)
const std::unordered_map<nyan::fqon_t, int> APITerrain::get_path_costs(const nyan::Object &terrain) { | ||
std::unordered_map<nyan::fqon_t, int> result; | ||
|
||
nyan::dict_t path_costs = terrain.get_dict("Terrain.path_costs"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be awesome if nyan could return the casted std unordered/map directly...
Makes the pathfinder usable from the game simulation.
Depends on #1648, #1647
Introduces several additions and optimizations to the work started in #1620 :
Map
object for accessing pathfinderTerrain
objects