rename JsonSerialize to JsonEncode, JsonDeserialize to JsonDecode

This commit is contained in:
Lion Kortlepel
2022-03-02 13:26:19 +01:00
parent 965935a0e6
commit 9a0cdc6517
5 changed files with 25 additions and 25 deletions

View File

@@ -22,7 +22,7 @@ namespace MP {
bool IsPlayerConnected(int ID);
void Sleep(size_t Ms);
void PrintRaw(sol::variadic_args);
std::string JsonSerialize(const sol::table& object);
std::string JsonEncode(const sol::table& object);
}
namespace FS {
std::pair<bool, std::string> CreateDirectory(const std::string& Path);

View File

@@ -190,7 +190,7 @@ private:
std::string Lua_GetPlayerName(int ID);
sol::table Lua_GetPlayerVehicles(int ID);
sol::table Lua_HttpCreateConnection(const std::string& host, uint16_t port);
sol::table Lua_JsonDeserialize(const std::string& str);
sol::table Lua_JsonDecode(const std::string& str);
int Lua_GetPlayerIDByName(const std::string& Name);
std::string mName;