Compare commits
1 Commits
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "${pluginName}",
|
"name": "${pluginName}",
|
||||||
"entry": "${pluginFile}",
|
"entry": "${pluginFile}",
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"author": "GroupMountain",
|
"author": "GroupMountain",
|
||||||
"type": "native",
|
"type": "native",
|
||||||
"passive": true,
|
"passive": true,
|
||||||
|
|||||||
@@ -188,8 +188,9 @@ void Export_Compatibility_API() {
|
|||||||
RemoteCall::exportAs(
|
RemoteCall::exportAs(
|
||||||
"GMLIB_API",
|
"GMLIB_API",
|
||||||
"updateOrCreateLanguageFile",
|
"updateOrCreateLanguageFile",
|
||||||
[](std::string const& code, std::unordered_map<std::string, std::string> lang, std::string const& path
|
[](std::string const& code,
|
||||||
) -> void {
|
std::unordered_map<std::string, std::string> lang,
|
||||||
|
std::string const& path) -> void {
|
||||||
if (GMLevel::getInstance()) {
|
if (GMLevel::getInstance()) {
|
||||||
I18nAPI::updateOrCreateLanguageFile(path, code, lang);
|
I18nAPI::updateOrCreateLanguageFile(path, code, lang);
|
||||||
}
|
}
|
||||||
@@ -476,22 +477,39 @@ void Export_Compatibility_API() {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
RemoteCall::exportAs("GMLIB_API", "getXuidByUuid", [](std::string const& uuid) -> std::string {
|
RemoteCall::exportAs("GMLIB_API", "getXuidByUuid", [](std::string const& uuid) -> std::string {
|
||||||
return UserCache::getInstance()->from(mce::UUID::fromString(uuid))->mXuid;
|
if (auto uce = UserCache::getInstance()->from(mce::UUID::fromString(uuid))) {
|
||||||
|
return uce->mXuid;
|
||||||
|
}
|
||||||
|
return "";
|
||||||
});
|
});
|
||||||
RemoteCall::exportAs("GMLIB_API", "getXuidByName", [](std::string const& name) -> std::string {
|
RemoteCall::exportAs("GMLIB_API", "getXuidByName", [](std::string const& name) -> std::string {
|
||||||
return UserCache::getInstance()->from(name)->mXuid;
|
if (auto uce = UserCache::getInstance()->from(name, UserCache::QueryType::Name)) {
|
||||||
|
return uce->mXuid;
|
||||||
|
}
|
||||||
|
return "";
|
||||||
});
|
});
|
||||||
RemoteCall::exportAs("GMLIB_API", "getNameByUuid", [](std::string const& uuid) -> std::string {
|
RemoteCall::exportAs("GMLIB_API", "getNameByUuid", [](std::string const& uuid) -> std::string {
|
||||||
return UserCache::getInstance()->from(mce::UUID::fromString(uuid))->mName;
|
if (auto uce = UserCache::getInstance()->from(mce::UUID::fromString(uuid))) {
|
||||||
|
return uce->mName;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
RemoteCall::exportAs("GMLIB_API", "getNameByXuid", [](std::string const& xuid) -> std::string {
|
RemoteCall::exportAs("GMLIB_API", "getNameByXuid", [](std::string const& xuid) -> std::string {
|
||||||
return UserCache::getInstance()->from(xuid, UserCache::QueryType::Xuid)->mName;
|
if (auto uce = UserCache::getInstance()->from(xuid, UserCache::QueryType::Xuid)) {
|
||||||
|
return uce->mName;
|
||||||
|
}
|
||||||
|
return "";
|
||||||
});
|
});
|
||||||
RemoteCall::exportAs("GMLIB_API", "getUuidByXuid", [](std::string const& xuid) -> std::string {
|
RemoteCall::exportAs("GMLIB_API", "getUuidByXuid", [](std::string const& xuid) -> std::string {
|
||||||
return UserCache::getInstance()->from(xuid, UserCache::QueryType::Xuid)->mUuid.asString();
|
if (auto uce = UserCache::getInstance()->from(xuid, UserCache::QueryType::Xuid)) {
|
||||||
|
return uce->mUuid.asString();
|
||||||
|
}
|
||||||
|
return "";
|
||||||
});
|
});
|
||||||
RemoteCall::exportAs("GMLIB_API", "getUuidByName", [](std::string const& name) -> std::string {
|
RemoteCall::exportAs("GMLIB_API", "getUuidByName", [](std::string const& name) -> std::string {
|
||||||
return UserCache::getInstance()->from(name)->mUuid.asString();
|
if (auto uce = UserCache::getInstance()->from(name, UserCache::QueryType::Name)) {
|
||||||
|
return uce->mUuid.asString();
|
||||||
|
}
|
||||||
|
return "";
|
||||||
});
|
});
|
||||||
RemoteCall::exportAs(
|
RemoteCall::exportAs(
|
||||||
"GMLIB_API",
|
"GMLIB_API",
|
||||||
|
|||||||
+2
-2
@@ -2,7 +2,7 @@
|
|||||||
"format_version": 3,
|
"format_version": 3,
|
||||||
"format_uuid": "289f771f-2c9a-4d73-9f3f-8492495a924d",
|
"format_uuid": "289f771f-2c9a-4d73-9f3f-8492495a924d",
|
||||||
"tooth": "github.com/GroupMountain/GMLIB-LegacyRemoteCallApi",
|
"tooth": "github.com/GroupMountain/GMLIB-LegacyRemoteCallApi",
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"info": {
|
"info": {
|
||||||
"name": "GMLIB-LegacyRemoteCallApi",
|
"name": "GMLIB-LegacyRemoteCallApi",
|
||||||
"description": "Legacy RemoteCall API for GMLIB",
|
"description": "Legacy RemoteCall API for GMLIB",
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
{
|
{
|
||||||
"platform": "win-x64",
|
"platform": "win-x64",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"github.com/LiteLDev/LeviLamina": ">=1.1.1",
|
"github.com/LiteLDev/LeviLamina": ">=1.2.0",
|
||||||
"github.com/GroupMountain/GMLIB-Release": ">=1.2.0-rc.1",
|
"github.com/GroupMountain/GMLIB-Release": ">=1.2.0-rc.1",
|
||||||
"github.com/MiracleForest/iListenAttentively-Release": ">=0.5.0-rc.1"
|
"github.com/MiracleForest/iListenAttentively-Release": ">=0.5.0-rc.1"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user