#pragma once // Metin2Pack — GDScript access to the 40250 packs (platform/PackBackend.h). // // Metin2Pack.initialize(AssetRoot.client_path()) # registers /pack/Index once // var b := Metin2Pack.get_bytes("locale/en/item_proto") // // Every native reader that takes a path accepts "pack://<40250 path>" through asset_io. #include #include #include namespace mtgodot { class Metin2Pack : public godot::Object { GDCLASS(Metin2Pack, godot::Object) public: static bool initialize(const godot::String &client_dir); static bool is_ready(); static bool exists(const godot::String &name); static godot::PackedByteArray get_bytes(const godot::String &name); protected: static void _bind_methods(); }; } // namespace mtgodot