Skip to content

Commit

Permalink
update latest sdk changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxoh committed Aug 8, 2024
1 parent 3702e71 commit 5b7f478
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions c-api/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -818,13 +818,13 @@ void Core_GetEntitiesInRange(alt::ICore* core, vector3_t position, int32_t range
entities = entityArr;
}

void Core_GetClosestEntities(alt::ICore* core, vector3_t position, int32_t range, int32_t dimension, int32_t limit, uint64_t allowedTypes, void**& entities, uint8_t types[], uint64_t size) {
void Core_GetClosestEntities(alt::ICore* core, vector3_t position, int32_t range, int32_t dimension, int32_t limit, uint64_t allowedTypes, uint8_t order, void**& entities, uint8_t types[], uint64_t size) {
alt::Position pos;
pos.x = position.x;
pos.y = position.y;
pos.z = position.z;

auto entitiesArray = core->GetClosestEntities(pos, range, dimension, limit, allowedTypes);
auto entitiesArray = core->GetClosestEntities(pos, range, dimension, limit, allowedTypes, static_cast<alt::common::Order>(order));
if (entitiesArray.size() < size) {
size = entitiesArray.size();
}
Expand Down
2 changes: 1 addition & 1 deletion c-api/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ EXPORT_SERVER uint64_t Core_GetEntitiesInRangeCount(alt::ICore* core, vector3_t
EXPORT_SERVER uint64_t Core_GetClosestEntitiesCount(alt::ICore* core, vector3_t position, int32_t range, int32_t dimension, int32_t limit, uint64_t allowedTypes);
EXPORT_SERVER void Core_GetEntitiesInDimension(alt::ICore* core, int32_t dimension, uint64_t allowedTypes, void**& entities, uint8_t types[], uint64_t size);
EXPORT_SERVER void Core_GetEntitiesInRange(alt::ICore* core, vector3_t position, int32_t range, int32_t dimension, uint64_t allowedTypes, void**& entities, uint8_t types[], uint64_t size);
EXPORT_SERVER void Core_GetClosestEntities(alt::ICore* core, vector3_t position, int32_t range, int32_t dimension, int32_t limit, uint64_t allowedTypes, void**& entities, uint8_t types[], uint64_t size);
EXPORT_SERVER void Core_GetClosestEntities(alt::ICore* core, vector3_t position, int32_t range, int32_t dimension, int32_t limit, uint64_t allowedTypes, uint8_t order, void**& entities, uint8_t types[], uint64_t size);

#ifdef ALT_CLIENT_API
EXPORT_CLIENT uint8_t Core_Client_FileExists(alt::ICore* core, alt::IResource* resource, const char* path);
Expand Down
4 changes: 2 additions & 2 deletions c-api/func_table.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "func_table.h"

inline uint64_t capiHash = 8028889173226987673UL;
inline uint64_t capiHash = 11629663074568386340UL;
inline uint64_t capiHashes[] = {
0,
#ifdef ALT_CLIENT_API
Expand Down Expand Up @@ -1367,7 +1367,7 @@ inline uint64_t capiHashes[] = {
16312284234900575747UL,
14452794280175707515UL,
10333270135403224879UL,
12057843286905322939UL,
3102729611893259067UL,
419502286495548608UL,
12193205314801108926UL,
13972691773502904173UL,
Expand Down
2 changes: 1 addition & 1 deletion cpp-sdk
Submodule cpp-sdk updated 2 files
+16 −1 ICore.h
+16 −0 common/Order.h

0 comments on commit 5b7f478

Please sign in to comment.