Compare commits
20 Commits
+1
-1
Submodule SDK-GMLIB updated: 945cea5cae...fa3ec71bdc
@@ -0,0 +1,58 @@
|
|||||||
|
const PAPIgetValueAPI = ll.import("BEPlaceholderAPI", "GetValue")
|
||||||
|
const PAPIgetValueByPlayerAPI = ll.import("BEPlaceholderAPI", "GetValueWithPlayer")
|
||||||
|
const PAPIregisterPlayerPlaceholderAPI = ll.import("BEPlaceholderAPI", "registerPlayerPlaceholder")
|
||||||
|
const PAPIregisterServerPlaceholderAPI = ll.import("BEPlaceholderAPI", "registerServerPlaceholder")
|
||||||
|
const PAPIregisterStaticPlaceholderAPI = ll.import("BEPlaceholderAPI", "registerStaticPlaceholder")
|
||||||
|
const PAPItranslateStringAPI = ll.import("BEPlaceholderAPI", "translateString")
|
||||||
|
const PAPIunRegisterPlaceholderAPI = ll.import("BEPlaceholderAPI", "unRegisterPlaceholder")
|
||||||
|
const PAPIgetAllPAPI = ll.import("BEPlaceholderAPI", "getAllPAPI")
|
||||||
|
|
||||||
|
Function.prototype.getName = function () {
|
||||||
|
return this.name || this.toString().match(/function\s*([^(]*)\(/)[1]
|
||||||
|
}
|
||||||
|
|
||||||
|
class PAPI {
|
||||||
|
constructor() {
|
||||||
|
throw new Error("Static class cannot be instantiated");
|
||||||
|
}
|
||||||
|
|
||||||
|
static registerPlayerPlaceholder(func, PluginName, PAPIName) {
|
||||||
|
ll.export(func, PluginName, func.getName())
|
||||||
|
PAPIregisterPlayerPlaceholderAPI(PluginName, func.getName(), PAPIName)
|
||||||
|
}
|
||||||
|
|
||||||
|
static registerServerPlaceholder(func, PluginName, PAPIName) {
|
||||||
|
ll.export(func, PluginName, func.getName())
|
||||||
|
PAPIregisterServerPlaceholderAPI(PluginName, func.getName(), PAPIName)
|
||||||
|
}
|
||||||
|
|
||||||
|
static registerStaticPlaceholder(func, PluginName, PAPIName, UpdateInterval = 50) {
|
||||||
|
ll.export(func, PluginName, func.getName())
|
||||||
|
PAPIregisterStaticPlaceholderAPI(PluginName, func.getName(), PAPIName, UpdateInterval)
|
||||||
|
}
|
||||||
|
|
||||||
|
static getValue(key) {
|
||||||
|
return PAPIgetValueAPI(key)
|
||||||
|
}
|
||||||
|
|
||||||
|
static getValueByPlayer(key, xuid) {
|
||||||
|
return PAPIgetValueByPlayerAPI(key, xuid)
|
||||||
|
}
|
||||||
|
|
||||||
|
static translateString(str, xuid = "") {
|
||||||
|
return PAPItranslateStringAPI(str, xuid)
|
||||||
|
}
|
||||||
|
|
||||||
|
static unRegisterPlaceholder(str) {
|
||||||
|
return PAPIunRegisterPlaceholderAPI(str)
|
||||||
|
}
|
||||||
|
|
||||||
|
static getAllPAPI() {
|
||||||
|
return PAPIgetAllPAPI();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
PAPI
|
||||||
|
};
|
||||||
@@ -0,0 +1,399 @@
|
|||||||
|
const GMLIB_API = {
|
||||||
|
createFloatingText: ll.import("GMLIB_API", "createFloatingText"),
|
||||||
|
deleteFloatingText: ll.import("GMLIB_API", "deleteFloatingText"),
|
||||||
|
setFloatingTextData: ll.import("GMLIB_API", "setFloatingTextData"),
|
||||||
|
sendFloatingTextToPlayer: ll.import("GMLIB_API", "sendFloatingTextToPlayer"),
|
||||||
|
sendFloatingText: ll.import("GMLIB_API", "sendFloatingText"),
|
||||||
|
removeFloatingTextFromPlayer: ll.import("GMLIB_API", "removeFloatingTextFromPlayer"),
|
||||||
|
removeFloatingText: ll.import("GMLIB_API", "removeFloatingText"),
|
||||||
|
updateClientFloatingTextData: ll.import("GMLIB_API", "updateClientFloatingTextData"),
|
||||||
|
updateAllClientsFloatingTextData: ll.import("GMLIB_API", "updateAllClientsFloatingTextData"),
|
||||||
|
getServerMspt: ll.import("GMLIB_API", "getServerMspt"),
|
||||||
|
getServerCurrentTps: ll.import("GMLIB_API", "getServerCurrentTps"),
|
||||||
|
getServerAverageTps: ll.import("GMLIB_API", "getServerAverageTps"),
|
||||||
|
getAllPlayerUuids: ll.import("GMLIB_API", "getAllPlayerUuids"),
|
||||||
|
getPlayerNbt: ll.import("GMLIB_API", "getPlayerNbt"),
|
||||||
|
setPlayerNbt: ll.import("GMLIB_API", "setPlayerNbt"),
|
||||||
|
setPlayerNbtTags: ll.import("GMLIB_API", "setPlayerNbtTags"),
|
||||||
|
setEducationFeatureEnabled: ll.import("GMLib_ServerAPI", "setEducationFeatureEnabled"),
|
||||||
|
registerAbilityCommand: ll.import("GMLib_ServerAPI", "registerAbilityCommand"),
|
||||||
|
setEnableAchievement: ll.import("GMLib_ServerAPI", "setEnableAchievement"),
|
||||||
|
setForceTrustSkins: ll.import("GMLib_ServerAPI", "setForceTrustSkins"),
|
||||||
|
enableCoResourcePack: ll.import("GMLib_ServerAPI", "enableCoResourcePack"),
|
||||||
|
getLevelName: ll.import("GMLib_ServerAPI", "getLevelName"),
|
||||||
|
setLevelName: ll.import("GMLib_ServerAPI", "setLevelName"),
|
||||||
|
setFakeSeed: ll.import("GMLib_ServerAPI", "setFakeSeed"),
|
||||||
|
spawnEntity: ll.import("GMLib_ServerAPI", "spawnEntity"),
|
||||||
|
shootProjectile: ll.import("GMLib_ServerAPI", "shootProjectile"),
|
||||||
|
throwEntity: ll.import("GMLib_ServerAPI", "throwEntity"),
|
||||||
|
PlayerToEntity: ll.import("GMLib_ServerAPI", "PlayerToEntity"),
|
||||||
|
setUnknownBlockCleaner: ll.import("GMLib_ModAPI", "setUnknownBlockCleaner"),
|
||||||
|
getAllExperiments: ll.import("GMLIB_API", "getAllExperiments"),
|
||||||
|
getExperimentTranslatedName: ll.import("GMLIB_API", "getExperimentTranslatedName"),
|
||||||
|
getExperimentEnabled: ll.import("GMLib_ModAPI", "getExperimentEnabled"),
|
||||||
|
setExperimentEnabled: ll.import("GMLib_ModAPI", "setExperimentEnabled"),
|
||||||
|
registerExperimentsRequire: ll.import("GMLib_ModAPI", "registerExperimentsRequire"),
|
||||||
|
registerStoneCutterRecipe: ll.import("GMLib_ModAPI", "registerStoneCutterRecipe"),
|
||||||
|
registerSmithingTrimRecipe: ll.import("GMLib_ModAPI", "registerSmithingTrimRecipe"),
|
||||||
|
registerSmithingTransformRecipe: ll.import("GMLib_ModAPI", "registerSmithingTransformRecipe"),
|
||||||
|
registerBrewingContainerRecipe: ll.import("GMLib_ModAPI", "registerBrewingContainerRecipe"),
|
||||||
|
registerBrewingMixRecipe: ll.import("GMLib_ModAPI", "registerBrewingMixRecipe"),
|
||||||
|
registerFurnaceRecipe: ll.import("GMLib_ModAPI", "registerFurnaceRecipe"),
|
||||||
|
registerShapedRecipe: ll.import("GMLib_ModAPI", "registerShapedRecipe"),
|
||||||
|
registerShapelessRecipe: ll.import("GMLib_ModAPI", "registerShapelessRecipe"),
|
||||||
|
isVersionMatched: ll.import("GMLIB_API", "isVersionMatched"),
|
||||||
|
getVersion_LRCA: ll.import("GMLIB_API", "getVersion_LRCA"),
|
||||||
|
getVersion_GMLIB: ll.import("GMLIB_API", "getVersion_GMLIB")
|
||||||
|
}
|
||||||
|
|
||||||
|
const FloatingTextList = [];
|
||||||
|
|
||||||
|
class StaticFloatingText {
|
||||||
|
constructor(pos, text, papi = true) {
|
||||||
|
this.mPosition = pos;
|
||||||
|
this.mText = text;
|
||||||
|
this.mPlaceholderAPI = papi;
|
||||||
|
this.mRuntimeId = GMLIB_API.createFloatingText(this.mPosition, this.mText, this.mPlaceholderAPI);
|
||||||
|
FloatingTextList.push(this);
|
||||||
|
this.sendToClients();
|
||||||
|
mc.listen("onJoin", (pl) => {
|
||||||
|
this.sendToClient(pl);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
sendToClient(player) {
|
||||||
|
return GMLIB_API.sendFloatingTextToPlayer(this.mRuntimeId, player);
|
||||||
|
}
|
||||||
|
|
||||||
|
sendToClients() {
|
||||||
|
return GMLIB_API.sendFloatingText(this.mRuntimeId);
|
||||||
|
}
|
||||||
|
|
||||||
|
removeFromClient(player) {
|
||||||
|
return GMLIB_API.removeFloatingTextFromPlayer(this.mRuntimeId, player);
|
||||||
|
}
|
||||||
|
|
||||||
|
removeFromClients() {
|
||||||
|
return GMLIB_API.removeFloatingText(this.mRuntimeId);
|
||||||
|
}
|
||||||
|
|
||||||
|
updateClient(player) {
|
||||||
|
return GMLIB_API.updateClientFloatingTextData(this.mRuntimeId, player);
|
||||||
|
}
|
||||||
|
|
||||||
|
updateClients() {
|
||||||
|
return GMLIB_API.updateAllClientsFloatingTextData(this.mRuntimeId);
|
||||||
|
}
|
||||||
|
|
||||||
|
getRuntimeId() {
|
||||||
|
return this.mRuntimeId;
|
||||||
|
}
|
||||||
|
|
||||||
|
getText() {
|
||||||
|
return this.mText;
|
||||||
|
}
|
||||||
|
|
||||||
|
setText(newText) {
|
||||||
|
this.mText = newText;
|
||||||
|
}
|
||||||
|
|
||||||
|
update() {
|
||||||
|
GMLIB_API.setFloatingTextData(this.mRuntimeId, this.mText);
|
||||||
|
return this.updateClients();
|
||||||
|
}
|
||||||
|
|
||||||
|
updateText(newText) {
|
||||||
|
this.setText(newText);
|
||||||
|
return this.update();
|
||||||
|
}
|
||||||
|
|
||||||
|
getPos() {
|
||||||
|
return this.mPosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
destroy() {
|
||||||
|
let size_t = FloatingTextList.indexOf(this);
|
||||||
|
FloatingTextList.splice(size_t, 1);
|
||||||
|
return GMLIB_API.deleteFloatingText(this.mRuntimeId);
|
||||||
|
}
|
||||||
|
|
||||||
|
isDynamic() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
static getFloatingText(runtimeId) {
|
||||||
|
for (const ft of FloatingTextList) {
|
||||||
|
if (ft.getRuntimeId() == runtimeId) {
|
||||||
|
if (!ft.isDynamic()) {
|
||||||
|
return ft;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
static getAllFloatingTexts() {
|
||||||
|
let result = [];
|
||||||
|
FloatingTextList.forEach((ft) => {
|
||||||
|
if (!ft.isDynamic()) {
|
||||||
|
result.push(ft);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class DynamicFloatingText extends StaticFloatingText {
|
||||||
|
constructor(pos, text, updateRate = 1, papi = true) {
|
||||||
|
super(pos, text, papi);
|
||||||
|
this.mUpdateRate = updateRate;
|
||||||
|
this.mTaskId = null;
|
||||||
|
this.startUpdate();
|
||||||
|
}
|
||||||
|
|
||||||
|
getUpdateRate() {
|
||||||
|
return this.mUpdateRate;
|
||||||
|
}
|
||||||
|
|
||||||
|
setUpdateRate(updateRate = 1) {
|
||||||
|
this.stopUpdate();
|
||||||
|
this.mUpdateRate = updateRate;
|
||||||
|
this.startUpdate();
|
||||||
|
}
|
||||||
|
|
||||||
|
startUpdate() {
|
||||||
|
if (this.mTaskId == null) {
|
||||||
|
this.mTaskId = setInterval(() => {
|
||||||
|
this.update();
|
||||||
|
}, this.mUpdateRate * 1000);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
stopUpdate() {
|
||||||
|
if (this.mTaskId != null) {
|
||||||
|
clearInterval(this.mTaskId);
|
||||||
|
this.mTaskId = null;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
destroy() {
|
||||||
|
let size_t = FloatingTextList.indexOf(this);
|
||||||
|
FloatingTextList.splice(size_t, 1);
|
||||||
|
return GMLIB_API.deleteFloatingText(this.mRuntimeId);
|
||||||
|
}
|
||||||
|
|
||||||
|
isDynamic() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
static getFloatingText(runtimeId) {
|
||||||
|
for (const ft of FloatingTextList) {
|
||||||
|
if (ft.getRuntimeId() == runtimeId) {
|
||||||
|
if (ft.isDynamic()) {
|
||||||
|
return ft;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
static getAllFloatingTexts() {
|
||||||
|
let result = [];
|
||||||
|
FloatingTextList.forEach((ft) => {
|
||||||
|
if (ft.isDynamic()) {
|
||||||
|
result.push(ft);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class Minecraft {
|
||||||
|
constructor() {
|
||||||
|
throw new Error("Static class cannot be instantiated");
|
||||||
|
}
|
||||||
|
|
||||||
|
static getServerAverageTps() {
|
||||||
|
return GMLIB_API.getServerAverageTps();
|
||||||
|
}
|
||||||
|
|
||||||
|
static getServerCurrentTps() {
|
||||||
|
return GMLIB_API.getServerCurrentTps();
|
||||||
|
}
|
||||||
|
|
||||||
|
static getServerMspt() {
|
||||||
|
return GMLIB_API.getServerMspt();
|
||||||
|
}
|
||||||
|
|
||||||
|
static getAllPlayerUuids() {
|
||||||
|
return GMLIB_API.getAllPlayerUuids();
|
||||||
|
}
|
||||||
|
|
||||||
|
static getPlayerNbt(uuid) {
|
||||||
|
let snbt = GMLIB_API.getPlayerNbt(uuid);
|
||||||
|
let nbt = NBT.parseSNBT(snbt);
|
||||||
|
return nbt;
|
||||||
|
}
|
||||||
|
|
||||||
|
static setPlayerNbt(uuid, nbt) {
|
||||||
|
let snbt = nbt.toSNBT();
|
||||||
|
return GMLIB_API.setPlayerNbt(uuid, snbt);
|
||||||
|
}
|
||||||
|
|
||||||
|
static setPlayerNbtTags(uuid, nbt, tags) {
|
||||||
|
let snbt = nbt.toSNBT();
|
||||||
|
return GMLIB_API.setPlayerNbtTags(uuid, snbt, tags);
|
||||||
|
}
|
||||||
|
|
||||||
|
static setEducationFeatureEnabled() {
|
||||||
|
return GMLIB_API.setEducationFeatureEnabled();
|
||||||
|
}
|
||||||
|
|
||||||
|
static registerAbilityCommand() {
|
||||||
|
return GMLIB_API.registerAbilityCommand();
|
||||||
|
}
|
||||||
|
|
||||||
|
static setEnableAchievement() {
|
||||||
|
return GMLIB_API.setEnableAchievement();
|
||||||
|
}
|
||||||
|
|
||||||
|
static setForceTrustSkins() {
|
||||||
|
return GMLIB_API.setForceTrustSkins();
|
||||||
|
}
|
||||||
|
|
||||||
|
static enableCoResourcePack() {
|
||||||
|
return GMLIB_API.enableCoResourcePack();
|
||||||
|
}
|
||||||
|
|
||||||
|
static getWorldName() {
|
||||||
|
return GMLIB_API.getLevelName();
|
||||||
|
}
|
||||||
|
|
||||||
|
static setWorldName(name) {
|
||||||
|
return GMLIB_API.setLevelName(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
static setFakeSeed(seed = 114514) {
|
||||||
|
return GMLIB_API.setFakeSeed(seed);
|
||||||
|
}
|
||||||
|
|
||||||
|
static setUnknownBlockCleaner() {
|
||||||
|
return GMLIB_API.setUnknownBlockCleaner();
|
||||||
|
}
|
||||||
|
|
||||||
|
static playerToEntity(player) {
|
||||||
|
return GMLIB_API.PlayerToEntity(player);
|
||||||
|
}
|
||||||
|
|
||||||
|
static spawnEntity(pos, name) {
|
||||||
|
return GMLIB_API.spawnEntity(pos, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
static shootProjectile(entity, proj, speed = 2, offset = 3) {
|
||||||
|
return GMLIB_API.shootProjectile(entity, proj, speed, offset);
|
||||||
|
}
|
||||||
|
|
||||||
|
static throwEntity(entity, proj, speed = 2, offset = 3) {
|
||||||
|
return GMLIB_API.throwEntity(entity, proj, speed = 2, offset = 3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class Recipes {
|
||||||
|
constructor() {
|
||||||
|
throw new Error("Static class cannot be instantiated");
|
||||||
|
}
|
||||||
|
|
||||||
|
static registerStoneCutterRecipe(recipeId, inputName, inputAux, outputName, outputAux, outputCount) {
|
||||||
|
return GMLIB_API.registerStoneCutterRecipe(recipeId, inputName, inputAux, outputName, outputAux, outputCount);
|
||||||
|
}
|
||||||
|
|
||||||
|
static registerSmithingTrimRecipe(recipeId, template, base, addition) {
|
||||||
|
return GMLIB_API.registerSmithingTrimRecipe(recipeId, template, base, addition);
|
||||||
|
}
|
||||||
|
|
||||||
|
static registerSmithingTransformRecipe(recipeId, template, base, addition, result) {
|
||||||
|
return GMLIB_API.registerSmithingTransformRecipe(recipeId, template, base, addition, result);
|
||||||
|
}
|
||||||
|
|
||||||
|
static registerBrewingContainerRecipe(recipeId, input, output, reagent) {
|
||||||
|
return GMLIB_API.registerBrewingContainerRecipe(recipeId, input, output, reagent);
|
||||||
|
}
|
||||||
|
|
||||||
|
static registerBrewingMixRecipe(recipeId, input, output, reagent) {
|
||||||
|
return GMLIB_API.registerBrewingMixRecipe(recipeId, input, output, reagent);
|
||||||
|
}
|
||||||
|
|
||||||
|
// tags ["furnace", "blast_furnace", "smoker", "campfire", "soul_campfire"]
|
||||||
|
static registerFurnaceRecipe(recipeId, input, output, tags = ["furnace"]) {
|
||||||
|
return GMLIB_API.registerFurnaceRecipe(recipeId, input, output, tags);
|
||||||
|
}
|
||||||
|
|
||||||
|
// unlock : "AlwaysUnlocked", "PlayerHasManyItems", "PlayerInWater", "None", Item ID
|
||||||
|
static registerShapedRecipe(recipeId, shape, ingredients, result, count = 1, unlock = "AlwaysUnlocked") {
|
||||||
|
return GMLIB_API.registerShapedRecipe(recipeId, shape, ingredients, result, count, unlock);
|
||||||
|
}
|
||||||
|
|
||||||
|
static registerShapelessRecipe(recipeId, ingredients, result, count = 1, unlock = "AlwaysUnlocked") {
|
||||||
|
return GMLIB_API.registerShapelessRecipe(recipeId, ingredients, result, count, unlock);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class Experiments {
|
||||||
|
constructor() {
|
||||||
|
throw new Error("Static class cannot be instantiated");
|
||||||
|
}
|
||||||
|
|
||||||
|
static getAllExperimentIds() {
|
||||||
|
return GMLIB_API.getAllExperiments();
|
||||||
|
}
|
||||||
|
|
||||||
|
static getExperimentTranslatedName(id) {
|
||||||
|
return GMLIB_API.getExperimentTranslatedName(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
static getExperimentsMap() {
|
||||||
|
let ids = this.getAllExperimentIds();
|
||||||
|
let result = {};
|
||||||
|
for (let id in ids) {
|
||||||
|
let name = this.getExperimentTranslatedName(id);
|
||||||
|
result[id] = name;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
static getExperimentEnabled(id) {
|
||||||
|
return GMLIB_API.getExperimentEnabled(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
static setExperimentEnabled(id, value = true) {
|
||||||
|
return GMLIB_API.setExperimentEnabled(id, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
static registerExperimentsRequire(id) {
|
||||||
|
return GMLIB_API.registerExperimentsRequire(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class GMLIB {
|
||||||
|
constructor() {
|
||||||
|
throw new Error("Static class cannot be instantiated");
|
||||||
|
}
|
||||||
|
|
||||||
|
static isVersionMatched(major, minor, patch) {
|
||||||
|
return GMLIB_API.isVersionMatched(major, minor, patch);
|
||||||
|
}
|
||||||
|
|
||||||
|
static getVersion_LRCA() {
|
||||||
|
return GMLIB_API.getVersion_LRCA();
|
||||||
|
}
|
||||||
|
|
||||||
|
static getVersion_GMLIB() {
|
||||||
|
return GMLIB_API.getVersion_GMLIB();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = { StaticFloatingText, DynamicFloatingText, Minecraft, Recipes, Experiments, GMLIB };
|
||||||
@@ -92,6 +92,7 @@ function pack_plugin(target,plugin_define)
|
|||||||
local outputdir = path.join(bindir, plugin_define.pluginName)
|
local outputdir = path.join(bindir, plugin_define.pluginName)
|
||||||
local targetfile = path.join(outputdir, plugin_define.pluginFile)
|
local targetfile = path.join(outputdir, plugin_define.pluginFile)
|
||||||
local pdbfile = path.join(outputdir, path.basename(plugin_define.pluginFile) .. ".pdb")
|
local pdbfile = path.join(outputdir, path.basename(plugin_define.pluginFile) .. ".pdb")
|
||||||
|
local libfile = path.join(os.projectdir(), "lib")
|
||||||
local manifestfile = path.join(outputdir, "manifest.json")
|
local manifestfile = path.join(outputdir, "manifest.json")
|
||||||
local oritargetfile = target:targetfile()
|
local oritargetfile = target:targetfile()
|
||||||
local oripdbfile = path.join(path.directory(oritargetfile), path.basename(oritargetfile) .. ".pdb")
|
local oripdbfile = path.join(path.directory(oritargetfile), path.basename(oritargetfile) .. ".pdb")
|
||||||
@@ -101,6 +102,7 @@ function pack_plugin(target,plugin_define)
|
|||||||
if os.isfile(oripdbfile) then
|
if os.isfile(oripdbfile) then
|
||||||
os.cp(oripdbfile, pdbfile)
|
os.cp(oripdbfile, pdbfile)
|
||||||
end
|
end
|
||||||
|
os.cp(libfile, outputdir)
|
||||||
|
|
||||||
formattedmanifest = string_formatter(manifest, plugin_define)
|
formattedmanifest = string_formatter(manifest, plugin_define)
|
||||||
io.writefile(manifestfile,formattedmanifest)
|
io.writefile(manifestfile,formattedmanifest)
|
||||||
|
|||||||
@@ -25,6 +25,24 @@ void Export_Compatibility_API() {
|
|||||||
RemoteCall::exportAs("GMLIB_API", "getAllPlayerUuids", []() -> std::vector<std::string> {
|
RemoteCall::exportAs("GMLIB_API", "getAllPlayerUuids", []() -> std::vector<std::string> {
|
||||||
return GMLIB_Player::getAllUuids();
|
return GMLIB_Player::getAllUuids();
|
||||||
});
|
});
|
||||||
|
RemoteCall::exportAs("GMLIB_API", "getPlayerNbt", [](std::string uuid) -> std::string {
|
||||||
|
auto uid = mce::UUID::fromString(uuid);
|
||||||
|
return GMLIB_Player::getPlayerNbt(uid)->toSnbt();
|
||||||
|
});
|
||||||
|
RemoteCall::exportAs("GMLIB_API", "setPlayerNbt", [](std::string uuid, std::string snbt) -> bool {
|
||||||
|
auto uid = mce::UUID::fromString(uuid);
|
||||||
|
auto nbt = CompoundTag::fromSnbt(snbt);
|
||||||
|
return GMLIB_Player::setPlayerNbt(uid, *nbt);
|
||||||
|
});
|
||||||
|
RemoteCall::exportAs(
|
||||||
|
"GMLIB_API",
|
||||||
|
"setPlayerNbtTags",
|
||||||
|
[](std::string uuid, std::string snbt, std::vector<std::string> tags) -> bool {
|
||||||
|
auto uid = mce::UUID::fromString(uuid);
|
||||||
|
auto nbt = CompoundTag::fromSnbt(snbt);
|
||||||
|
return GMLIB_Player::setPlayerNbtTags(uid, *nbt, tags);
|
||||||
|
}
|
||||||
|
);
|
||||||
RemoteCall::exportAs("GMLIB_API", "getAllExperiments", []() -> std::vector<int> {
|
RemoteCall::exportAs("GMLIB_API", "getAllExperiments", []() -> std::vector<int> {
|
||||||
auto map = GMLIB_Level::getAllExperiments();
|
auto map = GMLIB_Level::getAllExperiments();
|
||||||
std::vector<int> result;
|
std::vector<int> result;
|
||||||
@@ -36,14 +54,18 @@ void Export_Compatibility_API() {
|
|||||||
RemoteCall::exportAs("GMLIB_API", "getExperimentTranslatedName", [](int id) -> std::string {
|
RemoteCall::exportAs("GMLIB_API", "getExperimentTranslatedName", [](int id) -> std::string {
|
||||||
auto map = GMLIB_Level::getAllExperimentsTranslateKeys();
|
auto map = GMLIB_Level::getAllExperimentsTranslateKeys();
|
||||||
if (map.count(id)) {
|
if (map.count(id)) {
|
||||||
return map[id];
|
return std::string(map[id]);
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
});
|
});
|
||||||
RemoteCall::exportAs("GMLIB_API", "createFloatingText", [](std::pair<Vec3, int> pos, std::string text) -> int {
|
RemoteCall::exportAs(
|
||||||
auto ft = new GMLIB::Server::FloatingText(text, pos.first, pos.second);
|
"GMLIB_API",
|
||||||
return ft->getRuntimeID();
|
"createFloatingText",
|
||||||
});
|
[](std::pair<Vec3, int> pos, std::string text, bool papi) -> int {
|
||||||
|
auto ft = new GMLIB::Server::FloatingText(text, pos.first, pos.second, papi);
|
||||||
|
return ft->getRuntimeID();
|
||||||
|
}
|
||||||
|
);
|
||||||
RemoteCall::exportAs("GMLIB_API", "setFloatingTextData", [](int id, std::string text) -> bool {
|
RemoteCall::exportAs("GMLIB_API", "setFloatingTextData", [](int id, std::string text) -> bool {
|
||||||
auto ft = GMLIB::Server::FloatingText::getFloatingText(id);
|
auto ft = GMLIB::Server::FloatingText::getFloatingText(id);
|
||||||
if (ft) {
|
if (ft) {
|
||||||
@@ -87,4 +109,28 @@ void Export_Compatibility_API() {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
RemoteCall::exportAs("GMLIB_API", "updateClientFloatingTextData", [](int id, Player* pl) -> bool {
|
||||||
|
auto ft = GMLIB::Server::FloatingText::getFloatingText(id);
|
||||||
|
if (ft) {
|
||||||
|
ft->updateClient(pl);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
RemoteCall::exportAs("GMLIB_API", "updateAllClientsFloatingTextData", [](int id) -> bool {
|
||||||
|
auto ft = GMLIB::Server::FloatingText::getFloatingText(id);
|
||||||
|
if (ft) {
|
||||||
|
ft->updateAllClients();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
RemoteCall::exportAs("GMLIB_API", "isVersionMatched", [](int a, int b, int c) -> bool {
|
||||||
|
auto version = SemVersion(a, b, c, "", "");
|
||||||
|
return LIB_VERSION.satisfies(version);
|
||||||
|
});
|
||||||
|
RemoteCall::exportAs("GMLIB_API", "getVersion_LRCA", []() -> std::string { return LIB_VERSION.asString(); });
|
||||||
|
RemoteCall::exportAs("GMLIB_API", "getVersion_GMLIB", []() -> std::string {
|
||||||
|
return GMLIB::Version::getLibVersionString();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#include <memory>
|
|
||||||
|
|
||||||
#include <ll/api/plugin/NativePlugin.h>
|
|
||||||
|
|
||||||
#include "Plugin.h"
|
|
||||||
|
|
||||||
namespace plugin {
|
|
||||||
|
|
||||||
// The global plugin instance.
|
|
||||||
std::unique_ptr<Plugin> plugin = nullptr;
|
|
||||||
|
|
||||||
extern "C" {
|
|
||||||
_declspec(dllexport) bool ll_plugin_load(ll::plugin::NativePlugin& self) {
|
|
||||||
plugin = std::make_unique<plugin::Plugin>(self);
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @warning Unloading the plugin may cause a crash if the plugin has not released all of its
|
|
||||||
/// resources. If you are unsure, keep this function commented out.
|
|
||||||
// _declspec(dllexport) bool ll_plugin_unload(ll::plugin::Plugin&) {
|
|
||||||
// plugin.reset();
|
|
||||||
//
|
|
||||||
// return true;
|
|
||||||
// }
|
|
||||||
|
|
||||||
_declspec(dllexport) bool ll_plugin_enable(ll::plugin::NativePlugin&) { return plugin->enable(); }
|
|
||||||
|
|
||||||
_declspec(dllexport) bool ll_plugin_disable(ll::plugin::NativePlugin&) { return plugin->disable(); }
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace plugin
|
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
#include "Entry.h"
|
||||||
|
#include "Global.h"
|
||||||
|
|
||||||
|
ll::Logger logger(PLUGIN_NAME);
|
||||||
|
|
||||||
|
namespace GMLIB_LegacyRemoteCallApi {
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
|
std::unique_ptr<std::reference_wrapper<ll::plugin::NativePlugin>>
|
||||||
|
selfPluginInstance; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
|
||||||
|
|
||||||
|
auto disable(ll::plugin::NativePlugin& /*self*/) -> bool { return false; }
|
||||||
|
|
||||||
|
auto enable(ll::plugin::NativePlugin& /*self*/) -> bool { return true; }
|
||||||
|
|
||||||
|
auto load(ll::plugin::NativePlugin& self) -> bool {
|
||||||
|
selfPluginInstance = std::make_unique<std::reference_wrapper<ll::plugin::NativePlugin>>(self);
|
||||||
|
Export_Legacy_GMLib_ModAPI();
|
||||||
|
Export_Legacy_GMLib_ServerAPI();
|
||||||
|
Export_Compatibility_API();
|
||||||
|
ExportPAPI();
|
||||||
|
logger.info("GMLIB-LegacyRemoteCallApi Loaded!");
|
||||||
|
logger.info("Version: {}", LIB_VERSION.asString());
|
||||||
|
logger.info("Author: GroupMountain");
|
||||||
|
logger.info("Repository: https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto unload(ll::plugin::NativePlugin& self) -> bool { return false; }
|
||||||
|
|
||||||
|
} // namespace
|
||||||
|
|
||||||
|
auto getSelfPluginInstance() -> ll::plugin::NativePlugin& {
|
||||||
|
if (!selfPluginInstance) {
|
||||||
|
throw std::runtime_error("selfPluginInstance is null");
|
||||||
|
}
|
||||||
|
|
||||||
|
return *selfPluginInstance;
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace GMLIB_LegacyRemoteCallApi
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
_declspec(dllexport) auto ll_plugin_disable(ll::plugin::NativePlugin& self) -> bool {
|
||||||
|
return GMLIB_LegacyRemoteCallApi::disable(self);
|
||||||
|
}
|
||||||
|
_declspec(dllexport) auto ll_plugin_enable(ll::plugin::NativePlugin& self) -> bool {
|
||||||
|
return GMLIB_LegacyRemoteCallApi::enable(self);
|
||||||
|
}
|
||||||
|
_declspec(dllexport) auto ll_plugin_load(ll::plugin::NativePlugin& self) -> bool {
|
||||||
|
return GMLIB_LegacyRemoteCallApi::load(self);
|
||||||
|
}
|
||||||
|
_declspec(dllexport) auto ll_plugin_unload(ll::plugin::NativePlugin& self) -> bool {
|
||||||
|
return GMLIB_LegacyRemoteCallApi::unload(self);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <ll/api/plugin/NativePlugin.h>
|
||||||
|
|
||||||
|
namespace GMLIB_LegacyRemoteCallApi {
|
||||||
|
|
||||||
|
[[nodiscard]] auto getSelfPluginInstance() -> ll::plugin::NativePlugin&;
|
||||||
|
|
||||||
|
} // namespace GMLIB_LegacyRemoteCallApi
|
||||||
@@ -3,9 +3,11 @@
|
|||||||
#include <RemoteCallAPI.h>
|
#include <RemoteCallAPI.h>
|
||||||
|
|
||||||
#define PLUGIN_NAME "GMLIB-LRCA"
|
#define PLUGIN_NAME "GMLIB-LRCA"
|
||||||
|
#define LIB_VERSION SemVersion(0, 9, 0, "", "")
|
||||||
|
|
||||||
extern ll::Logger logger;
|
extern ll::Logger logger;
|
||||||
|
|
||||||
extern void Export_Legacy_GMLib_ModAPI();
|
extern void Export_Legacy_GMLib_ModAPI();
|
||||||
extern void Export_Legacy_GMLib_ServerAPI();
|
extern void Export_Legacy_GMLib_ServerAPI();
|
||||||
extern void Export_Compatibility_API();
|
extern void Export_Compatibility_API();
|
||||||
|
extern void ExportPAPI();
|
||||||
@@ -27,11 +27,7 @@ void Export_Legacy_GMLib_ServerAPI() {
|
|||||||
return level->setLevelName(name);
|
return level->setLevelName(name);
|
||||||
});
|
});
|
||||||
RemoteCall::exportAs("GMLib_ServerAPI", "setFakeSeed", [](int64_t seed) -> void {
|
RemoteCall::exportAs("GMLib_ServerAPI", "setFakeSeed", [](int64_t seed) -> void {
|
||||||
auto level = GMLIB_Level::getLevel();
|
return GMLIB_Level::setFakeSeed(seed);
|
||||||
if (!level) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
return level->setFakeSeed(seed);
|
|
||||||
});
|
});
|
||||||
RemoteCall::exportAs("GMLib_ServerAPI", "spawnEntity", [](std::pair<Vec3, int> pos, std::string name) -> Actor* {
|
RemoteCall::exportAs("GMLib_ServerAPI", "spawnEntity", [](std::pair<Vec3, int> pos, std::string name) -> Actor* {
|
||||||
return GMLIB_Spawner::spawnEntity(pos.first, pos.second, name);
|
return GMLIB_Spawner::spawnEntity(pos.first, pos.second, name);
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
// This file will make your plugin use LeviLamina's memory operators by default.
|
||||||
|
// This improves the memory management of your plugin and is recommended to use.
|
||||||
|
// You should not modify anything in this file.
|
||||||
|
|
||||||
|
#define LL_MEMORY_OPERATORS
|
||||||
|
|
||||||
|
#include <ll/api/memory/MemoryOperators.h>
|
||||||
@@ -0,0 +1,132 @@
|
|||||||
|
#include "Global.h"
|
||||||
|
#include <regex>
|
||||||
|
|
||||||
|
namespace PAPIRemoteCall {
|
||||||
|
|
||||||
|
std::string removeBrackets(std::string a1) {
|
||||||
|
a1.erase(a1.find_last_not_of("%") + 1);
|
||||||
|
return a1;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool isParameters(std::string str) {
|
||||||
|
std::regex reg("[<]([^<>]+)[>]");
|
||||||
|
return std::regex_search(removeBrackets(str), reg);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetValue(std::string const& from) { return GMLIB::Server::PlaceholderAPI::getValue(from); }
|
||||||
|
|
||||||
|
std::string GetValueWithPlayer(std::string const& a1, std::string const& a2) {
|
||||||
|
return GMLIB::Server::PlaceholderAPI::getValue(a1, ll::service::bedrock::getLevel()->getPlayer(a2));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string
|
||||||
|
registerPlayerPlaceholder(std::string const& PluginName, std::string const& FuncName, std::string const& PAPIName) {
|
||||||
|
if (RemoteCall::hasFunc(PluginName, FuncName)) {
|
||||||
|
if (isParameters(PAPIName)) {
|
||||||
|
auto Call =
|
||||||
|
RemoteCall::importAs<std::string(std::string const& arg, std::unordered_map<std::string, std::string>)>(
|
||||||
|
PluginName,
|
||||||
|
FuncName
|
||||||
|
);
|
||||||
|
GMLIB::Server::PlaceholderAPI::registerPlayerPlaceholder(
|
||||||
|
PAPIName,
|
||||||
|
[Call](Player* sp, std::unordered_map<std::string, std::string> map) {
|
||||||
|
return Call(sp->getXuid(), map);
|
||||||
|
},
|
||||||
|
PluginName
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
auto Call = RemoteCall::importAs<std::string(std::string const& arg)>(PluginName, FuncName);
|
||||||
|
GMLIB::Server::PlaceholderAPI::registerPlayerPlaceholder(
|
||||||
|
PAPIName,
|
||||||
|
[Call](Player* sp) { return Call(sp->getXuid()); },
|
||||||
|
PluginName
|
||||||
|
);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// logger.error("Function no find({}:{})", PluginName, FuncName);
|
||||||
|
return "Function no find";
|
||||||
|
}
|
||||||
|
return "Register Success";
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string
|
||||||
|
registerServerPlaceholder(std::string const& PluginName, std::string const& FuncName, std::string const& PAPIName) {
|
||||||
|
if (RemoteCall::hasFunc(PluginName, FuncName)) {
|
||||||
|
if (isParameters(PAPIName)) {
|
||||||
|
auto Call =
|
||||||
|
RemoteCall::importAs<std::string(std::unordered_map<std::string, std::string>)>(PluginName, FuncName);
|
||||||
|
GMLIB::Server::PlaceholderAPI::registerServerPlaceholder(
|
||||||
|
PAPIName,
|
||||||
|
[Call](std::unordered_map<std::string, std::string> map) { return Call(map); },
|
||||||
|
PluginName
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
auto Call = RemoteCall::importAs<std::string()>(PluginName, FuncName);
|
||||||
|
GMLIB::Server::PlaceholderAPI::registerServerPlaceholder(
|
||||||
|
PAPIName,
|
||||||
|
[Call]() { return Call(); },
|
||||||
|
PluginName
|
||||||
|
);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// logger.error("Function no find({}:{})", PluginName, FuncName);
|
||||||
|
return "Function no find";
|
||||||
|
}
|
||||||
|
return "Register Success";
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string registerStaticPlaceholder(
|
||||||
|
std::string const& PluginName,
|
||||||
|
std::string const& FuncName,
|
||||||
|
std::string const& PAPIName,
|
||||||
|
int num
|
||||||
|
) {
|
||||||
|
if (RemoteCall::hasFunc(PluginName, FuncName)) {
|
||||||
|
if (isParameters(PAPIName)) {
|
||||||
|
auto Call = RemoteCall::importAs<std::string()>(PluginName, FuncName);
|
||||||
|
if (num == -1) {
|
||||||
|
GMLIB::Server::PlaceholderAPI::registerStaticPlaceholder(
|
||||||
|
PAPIName,
|
||||||
|
[Call] { return Call(); },
|
||||||
|
PluginName
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
GMLIB::Server::PlaceholderAPI::registerStaticPlaceholder(
|
||||||
|
PAPIName,
|
||||||
|
num,
|
||||||
|
[Call] { return Call(); },
|
||||||
|
PluginName
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// logger.error("Function no find({}:{})", PluginName, FuncName);
|
||||||
|
return "Function no find";
|
||||||
|
}
|
||||||
|
return "Register Success";
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string translateString(std::string const& str, std::string const& xuid) {
|
||||||
|
return GMLIB::Server::PlaceholderAPI::translate(str, ll::service::bedrock::getLevel()->getPlayerByXuid(xuid));
|
||||||
|
}
|
||||||
|
|
||||||
|
bool unRegisterPlaceholder(std::string const& str) { return GMLIB::Server::PlaceholderAPI::unRegisterPlaceholder(str); }
|
||||||
|
|
||||||
|
std::vector<std::string> getAllPAPI() { return GMLIB::Server::PlaceholderAPI::getAllPAPI(); }
|
||||||
|
|
||||||
|
} // namespace PAPIRemoteCall
|
||||||
|
|
||||||
|
#define EXPORTAPI(T) \
|
||||||
|
RemoteCall::exportAs("BEPlaceholderAPI", ll::utils::string_utils::replaceAll(#T, "PAPIRemoteCall::", ""), T);
|
||||||
|
|
||||||
|
void ExportPAPI() {
|
||||||
|
EXPORTAPI(PAPIRemoteCall::registerPlayerPlaceholder);
|
||||||
|
EXPORTAPI(PAPIRemoteCall::registerServerPlaceholder);
|
||||||
|
EXPORTAPI(PAPIRemoteCall::registerStaticPlaceholder);
|
||||||
|
EXPORTAPI(PAPIRemoteCall::GetValue);
|
||||||
|
EXPORTAPI(PAPIRemoteCall::GetValueWithPlayer);
|
||||||
|
EXPORTAPI(PAPIRemoteCall::translateString);
|
||||||
|
EXPORTAPI(PAPIRemoteCall::unRegisterPlaceholder);
|
||||||
|
EXPORTAPI(PAPIRemoteCall::getAllPAPI);
|
||||||
|
}
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
#include "Plugin.h"
|
|
||||||
#include "Global.h"
|
|
||||||
|
|
||||||
ll::Logger logger(PLUGIN_NAME);
|
|
||||||
|
|
||||||
namespace plugin {
|
|
||||||
|
|
||||||
Plugin::Plugin(ll::plugin::NativePlugin& self) : mSelf(self) {
|
|
||||||
// Code for loading the plugin goes here.
|
|
||||||
Export_Legacy_GMLib_ModAPI();
|
|
||||||
Export_Legacy_GMLib_ServerAPI();
|
|
||||||
Export_Compatibility_API();
|
|
||||||
logger.info("GMLIB-LegacyRemoteCallApi Loaded!");
|
|
||||||
logger.info("Author: GroupMountain");
|
|
||||||
logger.info("Repository: https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi");
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Plugin::enable() {
|
|
||||||
// Code for enabling the plugin goes here.
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Plugin::disable() {
|
|
||||||
// Code for disabling the plugin goes here.
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace plugin
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
#include <ll/api/plugin/NativePlugin.h>
|
|
||||||
|
|
||||||
namespace plugin {
|
|
||||||
|
|
||||||
class Plugin {
|
|
||||||
public:
|
|
||||||
explicit Plugin(ll::plugin::NativePlugin& self);
|
|
||||||
|
|
||||||
Plugin(Plugin&&) = delete;
|
|
||||||
Plugin(const Plugin&) = delete;
|
|
||||||
Plugin& operator=(Plugin&&) = delete;
|
|
||||||
Plugin& operator=(const Plugin&) = delete;
|
|
||||||
|
|
||||||
~Plugin() = default;
|
|
||||||
|
|
||||||
/// @return True if the plugin is enabled successfully.
|
|
||||||
bool enable();
|
|
||||||
|
|
||||||
/// @return True if the plugin is disabled successfully.
|
|
||||||
bool disable();
|
|
||||||
|
|
||||||
private:
|
|
||||||
ll::plugin::NativePlugin& mSelf;
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace plugin
|
|
||||||
+8
-7
@@ -1,21 +1,22 @@
|
|||||||
{
|
{
|
||||||
"format_version": 2,
|
"format_version": 2,
|
||||||
"tooth": "github.com/GroupMountain/GMLIB-LegacyRemoteCallApi",
|
"tooth": "github.com/GroupMountain/GMLIB-LegacyRemoteCallApi",
|
||||||
"version": "0.8.2",
|
"version": "0.9.0",
|
||||||
"info": {
|
"info": {
|
||||||
"name": "GMLIB-LegacyRemoteCallApi",
|
"name": "GMLIB-LegacyRemoteCallApi",
|
||||||
"description": "Legacy RemoteCall API for GMLIB",
|
"description": "Legacy RemoteCall API for GMLIB",
|
||||||
|
"source": "github.com/GroupMountain/GMLIB-LegacyRemoteCallApi",
|
||||||
"author": "GroupMountain",
|
"author": "GroupMountain",
|
||||||
"tags": [
|
"tags": [
|
||||||
"LeviLamina",
|
"levilamina",
|
||||||
"GMLIB",
|
"gmlib",
|
||||||
"GMLIB-LegacyRemoteCallApi",
|
"lse",
|
||||||
"Library"
|
"library"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"asset_url": "https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi/releases/download/v0.8.2/GMLIB-LegacyRemoteCallApi-windows-x64.zip",
|
"asset_url": "https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi/releases/download/v0.9.0/GMLIB-LegacyRemoteCallApi-windows-x64.zip",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"github.com/GroupMountain/GMLIB": ">=0.8.1"
|
"github.com/GroupMountain/GMLIB": ">=0.9.0"
|
||||||
},
|
},
|
||||||
"files": {
|
"files": {
|
||||||
"place": [
|
"place": [
|
||||||
|
|||||||
Reference in New Issue
Block a user