game_pathfinding 0.1.1

一个寻路库,包含AStar和Recast,目前还在开发阶段
Documentation
#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <new>

constexpr static const uint64_t MAX_VALUE_U64 = UINT64_MAX;

struct CPointArray {
  uintptr_t length;
  const int32_t *data;
};

struct CPoint {
  int32_t x;
  int32_t y;
};

extern "C" {

CPointArray find_path(int64_t map_id, const CPoint *start_point, const CPoint *end_point);

int64_t load_map(const char *c_string);

void free_rust_memory(int32_t *ptr);

} // extern "C"