mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-01 11:43:41 +00:00
23 lines
808 B
C++
23 lines
808 B
C++
#pragma once
|
|
|
|
#include <cstdlib>
|
|
#include "../Global.h"
|
|
#include "../FormUI.h"
|
|
#include <MC/Player.hpp>
|
|
|
|
LIAPI unsigned NewFormId();
|
|
|
|
LIAPI void SetSimpleFormPacketCallback(unsigned formId, std::function<void(Player*, int)> callback);
|
|
|
|
LIAPI void SetModalFormPacketCallback(unsigned formId, std::function<void(Player*, bool)> callback);
|
|
|
|
LIAPI void SetCustomFormPacketCallback(unsigned formId, std::function<void(Player*, string)> callback);
|
|
|
|
LIAPI void SetSimpleFormBuilderData(unsigned formId, std::shared_ptr<Form::SimpleForm> data);
|
|
|
|
LIAPI void SetModalFormBuilderData(unsigned formId, std::shared_ptr<Form::ModalForm> data);
|
|
|
|
LIAPI void SetCustomFormBuilderData(unsigned formId, std::shared_ptr<Form::CustomForm> data);
|
|
|
|
LIAPI void HandleFormPacket(Player* player, unsigned formId, const string& data);
|