Skip to content

Commit

Permalink
changed native names in the source
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristo Isberg committed Dec 25, 2018
1 parent 09fcbf2 commit fac375a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
15 changes: 10 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,16 @@ PLUGIN_EXPORT void PLUGIN_CALL Unload() {


AMX_NATIVE_INFO PluginNatives[] = {
{"IsValidMapNode", Natives::IsValidNode},
{"GetMapNodePos", Natives::GetNodePos},
{"GetDistanceBetweenMapNodes", Natives::GetDistanceBetweenNodes},
{"GetMapNodeDistanceFromPoint", Natives::GetNodeDistanceFromPoint},
{"GetClosestMapNodeToPoint", Natives::GetClosestNodeToPoint},
{"IsValidMapNode", Natives::IsValidMapNode},
{"GetMapNodePos", Natives::GetMapNodePos},
{"GetDistanceBetweenMapNodes", Natives::GetDistanceBetweenMapNodes},
//{"GetAngleBetweenMapNodes", Natives::GetAngleBetweenMapNodes},
{"GetMapNodeDistanceFromPoint", Natives::GetMapNodeDistanceFromPoint},
//{"GetMapNodeAngleFromPoint", Natives::GetMapNodeAngleFromPoint},
{"GetClosestMapNodeToPoint", Natives::GetClosestMapNodeToPoint},
//{"GetMapNodeConnectionCount", Natives::GetMapNodeConnectionCount},
//{"GetHighestMapNodeID", Natives::GetHighestMapNodeID},
//{"GetRandomMapNode", Natives::GetRandomMapNode},

{"FindPath", Natives::FindPath},
{"FindPathThreaded", Natives::FindPathThreaded},
Expand Down
15 changes: 10 additions & 5 deletions src/natives.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ enum {


namespace Natives {
cell AMX_NATIVE_CALL IsValidNode(AMX* amx, cell* params);
cell AMX_NATIVE_CALL GetNodePos(AMX* amx, cell* params);
cell AMX_NATIVE_CALL GetDistanceBetweenNodes(AMX* amx, cell* params);
cell AMX_NATIVE_CALL GetNodeDistanceFromPoint(AMX* amx, cell* params);
cell AMX_NATIVE_CALL GetClosestNodeToPoint(AMX* amx, cell* params);
cell AMX_NATIVE_CALL IsValidMapNode(AMX* amx, cell* params);
cell AMX_NATIVE_CALL GetMapNodePos(AMX* amx, cell* params);
cell AMX_NATIVE_CALL GetDistanceBetweenMapNodes(AMX* amx, cell* params);
//cell AMX_NATIVE_CALL GetAngleBetweenMapNodes(AMX* amx, cell* params);
cell AMX_NATIVE_CALL GetMapNodeDistanceFromPoint(AMX* amx, cell* params);
//cell AMX_NATIVE_CALL GetMapNodeAngleFromPoint(AMX* amx, cell* params);
cell AMX_NATIVE_CALL GetClosestMapNodeToPoint(AMX* amx, cell* params);
//cell AMX_NATIVE_CALL GetMapNodeConnectionCount(AMX* amx, cell* params);
//cell AMX_NATIVE_CALL GetHighestMapNodeID(AMX* amx, cell* params);
//cell AMX_NATIVE_CALL GetRandomMapNode(AMX* amx, cell* params);

cell AMX_NATIVE_CALL FindPath(AMX* amx, cell* params);
cell AMX_NATIVE_CALL FindPathThreaded(AMX* amx, cell* params);
Expand Down

0 comments on commit fac375a

Please sign in to comment.