Skip to content

Commit

Permalink
feat: update header to 1.21.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lovelylavender4 committed Jul 18, 2024
1 parent aaa57b5 commit 3ca124d
Show file tree
Hide file tree
Showing 11 changed files with 364 additions and 339 deletions.
12 changes: 6 additions & 6 deletions src/mc/network/AutomationClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@ class AutomationClient {
// symbol: ?playerListChanged@AutomationClient@Automation@@UEAAXXZ
MCVAPI void playerListChanged();

// symbol: ?send@AutomationClient@Automation@@UEAAXAEBUChatMessage@CodeBuilder@@@Z
MCVAPI void send(struct CodeBuilder::ChatMessage const& message);

// symbol: ?send@AutomationClient@Automation@@UEAAXAEBUErrorMessage@CodeBuilder@@@Z
MCVAPI void send(struct CodeBuilder::ErrorMessage const& message);

// symbol: ?send@AutomationClient@Automation@@UEAAXAEBUCommandMessage@CodeBuilder@@@Z
MCVAPI void send(struct CodeBuilder::CommandMessage const& message);

// symbol: ?send@AutomationClient@Automation@@UEAAXAEBUEventMessage@CodeBuilder@@@Z
MCVAPI void send(struct CodeBuilder::EventMessage const& message);

// symbol: ?send@AutomationClient@Automation@@UEAAXAEBUAgentMessage@CodeBuilder@@@Z
MCVAPI void send(struct CodeBuilder::AgentMessage const& message);

// symbol: ?send@AutomationClient@Automation@@UEAAXAEBUChatMessage@CodeBuilder@@@Z
MCVAPI void send(struct CodeBuilder::ChatMessage const& message);

// symbol: ?send@AutomationClient@Automation@@UEAAXAEBUEventMessage@CodeBuilder@@@Z
MCVAPI void send(struct CodeBuilder::EventMessage const& message);

// symbol: ?tick@AutomationClient@Automation@@UEAAXXZ
MCVAPI void tick();

Expand Down
235 changes: 119 additions & 116 deletions src/mc/network/NetEventCallback.h

Large diffs are not rendered by default.

176 changes: 88 additions & 88 deletions src/mc/network/ServerNetworkHandler.h

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions src/mc/network/packet/ClientboundCloseFormPacket.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"

// auto generated inclusion list
#include "mc/deps/core/common/bedrock/Result.h"
#include "mc/enums/MinecraftPacketIds.h"
#include "mc/network/packet/Packet.h"

class ClientboundCloseFormPacket : public ::Packet {
public:
// prevent constructor by default
ClientboundCloseFormPacket& operator=(ClientboundCloseFormPacket const&);
ClientboundCloseFormPacket(ClientboundCloseFormPacket const&);
ClientboundCloseFormPacket();

public:
// NOLINTBEGIN
// vIndex: 0, symbol: ??1ClientboundCloseFormPacket@@UEAA@XZ
virtual ~ClientboundCloseFormPacket();

// vIndex: 1, symbol: ?getId@ClientboundCloseFormPacket@@UEBA?AW4MinecraftPacketIds@@XZ
virtual ::MinecraftPacketIds getId() const;

// vIndex: 2, symbol:
// ?getName@ClientboundCloseFormPacket@@UEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ
virtual std::string getName() const;

// vIndex: 4, symbol: ?write@ClientboundCloseFormPacket@@UEBAXAEAVBinaryStream@@@Z
virtual void write(class BinaryStream&) const;

// vIndex: 8, symbol:
// ?_read@ClientboundCloseFormPacket@@EEAA?AV?$Result@XVerror_code@std@@@Bedrock@@AEAVReadOnlyBinaryStream@@@Z
virtual class Bedrock::Result<void> _read(class ReadOnlyBinaryStream&);

// NOLINTEND
};
6 changes: 3 additions & 3 deletions src/mc/scripting/ScriptFormPromiseTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ class ScriptFormPromiseTracker {

public:
// NOLINTBEGIN
// symbol: ?onEvent@ScriptFormPromiseTracker@@UEAA?AW4EventResult@@AEBUPlayerFormResponseEvent@@@Z
MCVAPI ::EventResult onEvent(struct PlayerFormResponseEvent const& formResponseEvent);

// symbol: ?onEvent@ScriptFormPromiseTracker@@UEAA?AW4EventResult@@AEBUPlayerFormCloseEvent@@@Z
MCVAPI ::EventResult onEvent(struct PlayerFormCloseEvent const& formCloseEvent);

// symbol: ?onEvent@ScriptFormPromiseTracker@@UEAA?AW4EventResult@@AEBUPlayerFormResponseEvent@@@Z
MCVAPI ::EventResult onEvent(struct PlayerFormResponseEvent const& formResponseEvent);

// symbol: ??0ScriptFormPromiseTracker@@QEAA@XZ
MCAPI ScriptFormPromiseTracker();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ namespace ScriptModuleMinecraftServerUI { class ScriptMessageFormData; }
namespace ScriptModuleMinecraftServerUI { class ScriptMessageFormResponse; }
namespace ScriptModuleMinecraftServerUI { class ScriptModalFormData; }
namespace ScriptModuleMinecraftServerUI { class ScriptModalFormResponse; }
namespace ScriptModuleMinecraftServerUI { class ScriptUIManager; }
namespace Scripting { class DependencyLocator; }
namespace Scripting { class ScriptObjectFactory; }
namespace Scripting { struct ContextConfig; }
Expand Down
45 changes: 45 additions & 0 deletions src/mc/scripting/modules/minecraft_ui/ScriptUIManager.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"

// auto generated inclusion list
#include "mc/external/scripting/ClassBindingBuilder.h"
#include "mc/external/scripting/Result.h"

// auto generated forward declare list
// clang-format off
namespace ScriptModuleMinecraft { class ScriptPlayer; }
// clang-format on

namespace ScriptModuleMinecraftServerUI {

class ScriptUIManager {
public:
// prevent constructor by default
ScriptUIManager& operator=(ScriptUIManager const&);
ScriptUIManager(ScriptUIManager const&);

public:
// NOLINTBEGIN
// symbol: ??0ScriptUIManager@ScriptModuleMinecraftServerUI@@QEAA@XZ
MCAPI ScriptUIManager();

// symbol:
// ?closeAllForms@ScriptUIManager@ScriptModuleMinecraftServerUI@@QEAA?AV?$Result@X$$V@Scripting@@AEAVScriptPlayer@ScriptModuleMinecraft@@@Z
MCAPI class Scripting::Result<void> closeAllForms(class ScriptModuleMinecraft::ScriptPlayer&);

// symbol: ??4ScriptUIManager@ScriptModuleMinecraftServerUI@@QEAAAEAV01@$$QEAV01@@Z
MCAPI class ScriptModuleMinecraftServerUI::ScriptUIManager&
operator=(class ScriptModuleMinecraftServerUI::ScriptUIManager&&);

// symbol: ??1ScriptUIManager@ScriptModuleMinecraftServerUI@@QEAA@XZ
MCAPI ~ScriptUIManager();

// symbol:
// ?bind@ScriptUIManager@ScriptModuleMinecraftServerUI@@SA?AV?$ClassBindingBuilder@VScriptUIManager@ScriptModuleMinecraftServerUI@@@Scripting@@XZ
MCAPI static class Scripting::ClassBindingBuilder<class ScriptModuleMinecraftServerUI::ScriptUIManager> bind();

// NOLINTEND
};

}; // namespace ScriptModuleMinecraftServerUI
6 changes: 3 additions & 3 deletions src/mc/server/ServerLevel.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ class ServerLevel : public ::Level {
// symbol: ?getLevelChunkMetaDataManager@ServerLevel@@UEAAPEAVLevelChunkMetaDataManager@@XZ
MCVAPI class LevelChunkMetaDataManager* getLevelChunkMetaDataManager();

// symbol: ?getPlayerSleepManager@ServerLevel@@UEAAAEAVPlayerSleepManager@@XZ
MCVAPI class PlayerSleepManager& getPlayerSleepManager();

// symbol: ?getPlayerSleepManager@ServerLevel@@UEBAAEBVPlayerSleepManager@@XZ
MCVAPI class PlayerSleepManager const& getPlayerSleepManager() const;

// symbol: ?getPlayerSleepManager@ServerLevel@@UEAAAEAVPlayerSleepManager@@XZ
MCVAPI class PlayerSleepManager& getPlayerSleepManager();

// symbol: ?getPositionTrackerDBServer@ServerLevel@@UEBAPEAVPositionTrackingDBServer@PositionTrackingDB@@XZ
MCVAPI class PositionTrackingDB::PositionTrackingDBServer* getPositionTrackerDBServer() const;

Expand Down
Loading

0 comments on commit 3ca124d

Please sign in to comment.