added finding path with A* and json file to know where character can walk
This commit is contained in:
1 parent
eff7322140
commit
4eaefd25d4
11 files changed
+905
-11
No files matched your search
@@ -155,6 +155,14 @@ namespace ZL {
|
||||
return game->getDialogueFlag(flag);
|
||||
});
|
||||
|
||||
api.set_function("set_navigation_area_available",
|
||||
[game](const std::string& areaName, bool available) {
|
||||
if (!game->setNavigationAreaAvailable(areaName, available)) {
|
||||
std::cerr << "[script] set_navigation_area_available: area not found: "
|
||||
<< areaName << "\n";
|
||||
}
|
||||
});
|
||||
|
||||
// receive_npc_gift(npc_index)
|
||||
api.set_function("receive_npc_gift", [game](int npcIndex) {
|
||||
std::cout << "[script] receive_npc_gift: npc index " << npcIndex << std::endl;
|
||||
|
||||
Reference in new issue
Block a user