Skip to content

Commit

Permalink
chore: update version
Browse files Browse the repository at this point in the history
  • Loading branch information
KobeBryant114514 committed Oct 20, 2024
1 parent c51e9c7 commit 027328f
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 80 deletions.
12 changes: 0 additions & 12 deletions bin/SDK/include/gmlib/form/ChestForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ struct ChangingSlot {
using ChestUICallback = std::function<void(Player&, ChangingSlot const& src, ChangingSlot const& dst, int amount)>;

class ChestUI {
public:
std::unordered_map<int, ItemStack> mChestItems;
std::unordered_map<int, ItemStack> mInventoryItems;
ItemStack mCurorItem;
std::string mName;
ChestType mFormType = ChestType::BigChest;
ChestUICallback mCallback = {};

public:
GMLIB_NDAPI explicit ChestUI(std::string const& name, ChestType formType = ChestType::BigChest);

Expand Down Expand Up @@ -62,10 +54,6 @@ class ChestUI {
};

class ChestForm {
protected:
std::unique_ptr<ChestUI> mChestUI;
std::unordered_map<int, std::function<void(Player&)>> mCallback;

public:
GMLIB_API explicit ChestForm(std::string const& name, ChestType formType = ChestType::BigChest);

Expand Down
3 changes: 0 additions & 3 deletions bin/SDK/include/gmlib/form/CustomForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ using CustomFormElementResult = std::variant<int64, double, std::string, bool>;
using CustomFormResult = std::unordered_map<uint, CustomFormElementResult>;

class CustomForm {
class CustomFormImpl;
std::unique_ptr<CustomFormImpl> mImpl;

public:
GMLIB_NDAPI explicit CustomForm(std::string const& title);

Expand Down
8 changes: 0 additions & 8 deletions bin/SDK/include/gmlib/form/NpcDialogueForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ class NpcDialogueForm {
Open = 2 // Close Command
};

public:
std::string mNpcName;
std::string mSceneName;
std::string mDialogue;
std::unordered_map<int, std::function<void(Player& pl)>> mCallback;
uint64 mFormRuntimeId;
nlohmann::ordered_json mActionJSON;

public:
GMLIB_NDAPI explicit NpcDialogueForm(
std::string const& npcName,
Expand Down
10 changes: 0 additions & 10 deletions bin/SDK/include/gmlib/i18n/JsonI18n.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
namespace gmlib::i18n {

class JsonI18n {
private:
std::filesystem::path mLanguageDirectory;
std::unordered_map<std::string, std::shared_ptr<JsonLanguage>> mAllLanguages;
std::string mLanguageCode;
std::shared_ptr<JsonLanguage> mLocalization = nullptr;
std::string mDefaultLanguage = "en_US";

public:
GMLIB_NDAPI JsonI18n(std::filesystem::path const& languageDirectory, std::string const& languageCode = "en_US");

Expand Down Expand Up @@ -51,9 +44,6 @@ class JsonI18n {
std::string const& localLanguage,
std::vector<std::string> const& params = {},
std::string const& data = "%0$s");

private:
bool loadOrCreateLanguage(std::string const& languageCode, std::shared_ptr<JsonLanguage> language);
};

} // namespace gmlib::i18n
10 changes: 0 additions & 10 deletions bin/SDK/include/gmlib/i18n/LangI18n.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
namespace gmlib::i18n {

class LangI18n {
private:
std::filesystem::path mLanguageDirectory;
std::unordered_map<std::string, std::shared_ptr<LangLanguage>> mAllLanguages;
std::string mLanguageCode;
std::shared_ptr<LangLanguage> mLocalization = nullptr;
std::string mDefaultLanguage = "en_US";

public:
GMLIB_NDAPI LangI18n(std::filesystem::path const& languageDirectory, std::string const& languageCode = "en_US");

Expand Down Expand Up @@ -50,9 +43,6 @@ class LangI18n {
std::string const& localLanguage,
std::vector<std::string> const& params = {},
std::string const& data = "%0$s");

private:
bool loadOrCreateLanguage(std::string const& languageCode, std::shared_ptr<LangLanguage> language);
};


Expand Down
6 changes: 0 additions & 6 deletions bin/SDK/include/gmlib/i18n/ResourceI18n.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
namespace gmlib::i18n {

class ResourceI18n {
private:
std::unordered_map<std::string, McLang> mLanguages;
std::filesystem::path mPath;
Version mVersion;
std::string mPluginName;

public:
GMLIB_NDAPI
ResourceI18n(
Expand Down
3 changes: 0 additions & 3 deletions bin/SDK/include/gmlib/i18n/base/JsonLanguage.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
namespace gmlib::i18n {

class JsonLanguage : public McLang {
private:
std::filesystem::path mFilePath;

public:
GMLIB_NDAPI JsonLanguage(std::filesystem::path const& filePath, std::string const& defaultJson);

Expand Down
3 changes: 0 additions & 3 deletions bin/SDK/include/gmlib/i18n/base/LangLanguage.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
namespace gmlib::i18n {

class LangLanguage : public McLang {
private:
std::filesystem::path mFilePath;

public:
GMLIB_NDAPI LangLanguage(std::filesystem::path const& filePath, std::string const& defaultLanguage);

Expand Down
3 changes: 0 additions & 3 deletions bin/SDK/include/gmlib/i18n/base/McLang.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
namespace gmlib::i18n {

class McLang {
private:
std::unordered_map<std::string, std::string> mData;

public:
GMLIB_NDAPI McLang(std::unordered_map<std::string, std::string> const& data);

Expand Down
11 changes: 0 additions & 11 deletions bin/SDK/include/gmlib/tools/FloatingTextAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
namespace gmlib::tools {

class FloatingTextBase {
protected:
std::string mText;
int mRuntimeId;
Vec3 mPosition;
DimensionType mDimensionId;
bool mTranslatePlaceholderApi;

public:
GMLIB_NDAPI
FloatingTextBase(
Expand Down Expand Up @@ -79,10 +72,6 @@ class StaticFloatingText : public FloatingTextBase {
};

class DynamicFloatingText : public StaticFloatingText {
private:
uint mUpdateInterval;
std::shared_ptr<ll::schedule::task::Task<ll::chrono::ServerClock>> mTask;

public:
GMLIB_API
DynamicFloatingText(
Expand Down
11 changes: 0 additions & 11 deletions bin/SDK/include/gmlib/tools/PlaceholderAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,6 @@
namespace gmlib::tools {

class PlaceholderAPI {
private:
std::string mValue;
std::string mPlaceholder;
std::string mPluginName;
int mUpdateInterval;
bool mAutoUpdate;
bool mProcessPlayer;
bool mProcessParameters;
std::function<std::string(Player*)> mCallback;
std::function<std::string(Player*, std::unordered_map<std::string, std::string>)> mCallbackWithParameters;

public:
PlaceholderAPI() = default;

Expand Down

0 comments on commit 027328f

Please sign in to comment.