mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
make the game build
This commit is contained in:
parent
451682693e
commit
d570e28c16
|
|
@ -6,17 +6,11 @@
|
||||||
// using namespace std;
|
// using namespace std;
|
||||||
|
|
||||||
#include "Source Files/Audio/Consoles_SoundEngine.h"
|
#include "Source Files/Audio/Consoles_SoundEngine.h"
|
||||||
#if !defined(__linux__)
|
|
||||||
#include <xuiapp.h>
|
|
||||||
#endif
|
|
||||||
#include "Source Files/Tutorial/TutorialEnum.h"
|
#include "Source Files/Tutorial/TutorialEnum.h"
|
||||||
|
|
||||||
#include "Source Files/UI/All Platforms/UIStructs.h"
|
#include "Source Files/UI/All Platforms/UIStructs.h"
|
||||||
|
|
||||||
#include "../../Minecraft.World/net/minecraft/network/packet/DisconnectPacket.h"
|
#include "../../Minecraft.World/net/minecraft/network/packet/DisconnectPacket.h"
|
||||||
#if !defined(__linux__)
|
|
||||||
#include <xsocialpost.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "Source Files/Localisation/StringTable.h"
|
#include "Source Files/Localisation/StringTable.h"
|
||||||
#include "Source Files/DLC/DLCManager.h"
|
#include "Source Files/DLC/DLCManager.h"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,108 @@
|
||||||
|
#include "NetworkPlayerQNet.h"
|
||||||
|
|
||||||
|
NetworkPlayerQNet::NetworkPlayerQNet(IQNetPlayer* qnetPlayer) {
|
||||||
|
m_qnetPlayer = qnetPlayer;
|
||||||
|
m_pSocket = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned char NetworkPlayerQNet::GetSmallId() {
|
||||||
|
return m_qnetPlayer->GetSmallId();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NetworkPlayerQNet::SendData(INetworkPlayer* player, const void* pvData,
|
||||||
|
int dataSize, bool lowPriority, bool ack) {
|
||||||
|
uint32_t flags;
|
||||||
|
flags = QNET_SENDDATA_RELIABLE | QNET_SENDDATA_SEQUENTIAL;
|
||||||
|
if (lowPriority)
|
||||||
|
flags |= QNET_SENDDATA_LOW_PRIORITY | QNET_SENDDATA_SECONDARY;
|
||||||
|
m_qnetPlayer->SendData(
|
||||||
|
static_cast<NetworkPlayerQNet*>(player)->m_qnetPlayer, pvData, dataSize,
|
||||||
|
flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
int NetworkPlayerQNet::GetOutstandingAckCount() { return 0; }
|
||||||
|
|
||||||
|
bool NetworkPlayerQNet::IsSameSystem(INetworkPlayer* player) {
|
||||||
|
return (m_qnetPlayer->IsSameSystem(
|
||||||
|
static_cast<NetworkPlayerQNet*>(player)->m_qnetPlayer) == true);
|
||||||
|
}
|
||||||
|
|
||||||
|
int NetworkPlayerQNet::GetSendQueueSizeBytes(INetworkPlayer* player,
|
||||||
|
bool lowPriority) {
|
||||||
|
uint32_t flags = QNET_GETSENDQUEUESIZE_BYTES;
|
||||||
|
if (lowPriority) flags |= QNET_GETSENDQUEUESIZE_SECONDARY_TYPE;
|
||||||
|
return m_qnetPlayer->GetSendQueueSize(
|
||||||
|
player ? static_cast<NetworkPlayerQNet*>(player)->m_qnetPlayer
|
||||||
|
: nullptr,
|
||||||
|
flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
int NetworkPlayerQNet::GetSendQueueSizeMessages(INetworkPlayer* player,
|
||||||
|
bool lowPriority) {
|
||||||
|
uint32_t flags = QNET_GETSENDQUEUESIZE_MESSAGES;
|
||||||
|
if (lowPriority) flags |= QNET_GETSENDQUEUESIZE_SECONDARY_TYPE;
|
||||||
|
return m_qnetPlayer->GetSendQueueSize(
|
||||||
|
player ? static_cast<NetworkPlayerQNet*>(player)->m_qnetPlayer
|
||||||
|
: nullptr,
|
||||||
|
flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
int NetworkPlayerQNet::GetCurrentRtt() { return m_qnetPlayer->GetCurrentRtt(); }
|
||||||
|
|
||||||
|
bool NetworkPlayerQNet::IsHost() { return (m_qnetPlayer->IsHost() == true); }
|
||||||
|
|
||||||
|
bool NetworkPlayerQNet::IsGuest() { return (m_qnetPlayer->IsGuest() == true); }
|
||||||
|
|
||||||
|
bool NetworkPlayerQNet::IsLocal() { return (m_qnetPlayer->IsLocal() == true); }
|
||||||
|
|
||||||
|
int NetworkPlayerQNet::GetSessionIndex() {
|
||||||
|
return m_qnetPlayer->GetSessionIndex();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool NetworkPlayerQNet::IsTalking() {
|
||||||
|
return (m_qnetPlayer->IsTalking() == true);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool NetworkPlayerQNet::IsMutedByLocalUser(int userIndex) {
|
||||||
|
return (m_qnetPlayer->IsMutedByLocalUser(userIndex) == true);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool NetworkPlayerQNet::HasVoice() {
|
||||||
|
return (m_qnetPlayer->HasVoice() == true);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool NetworkPlayerQNet::HasCamera() {
|
||||||
|
return (m_qnetPlayer->HasCamera() == true);
|
||||||
|
}
|
||||||
|
|
||||||
|
int NetworkPlayerQNet::GetUserIndex() { return m_qnetPlayer->GetUserIndex(); }
|
||||||
|
|
||||||
|
void NetworkPlayerQNet::SetSocket(Socket* pSocket) { m_pSocket = pSocket; }
|
||||||
|
|
||||||
|
Socket* NetworkPlayerQNet::GetSocket() { return m_pSocket; }
|
||||||
|
|
||||||
|
PlayerUID NetworkPlayerQNet::GetUID() { return m_qnetPlayer->GetXuid(); }
|
||||||
|
|
||||||
|
const wchar_t* NetworkPlayerQNet::GetOnlineName() {
|
||||||
|
return m_qnetPlayer->GetGamertag();
|
||||||
|
}
|
||||||
|
|
||||||
|
std::wstring NetworkPlayerQNet::GetDisplayName() {
|
||||||
|
return m_qnetPlayer->GetGamertag();
|
||||||
|
}
|
||||||
|
|
||||||
|
IQNetPlayer* NetworkPlayerQNet::GetQNetPlayer() { return m_qnetPlayer; }
|
||||||
|
|
||||||
|
void NetworkPlayerQNet::SentChunkPacket() {
|
||||||
|
m_lastChunkPacketTime = System::currentTimeMillis();
|
||||||
|
}
|
||||||
|
|
||||||
|
int NetworkPlayerQNet::GetTimeSinceLastChunkPacket_ms() {
|
||||||
|
// If we haven't ever sent a packet, return maximum
|
||||||
|
if (m_lastChunkPacketTime == 0) {
|
||||||
|
return INT_MAX;
|
||||||
|
}
|
||||||
|
|
||||||
|
const int64_t currentTime = System::currentTimeMillis();
|
||||||
|
return static_cast<int>(currentTime - m_lastChunkPacketTime);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,46 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "NetworkPlayerInterface.h"
|
||||||
|
|
||||||
|
// This is an implementation of the INetworkPlayer interface for the supported
|
||||||
|
// QNet-backed path. It
|
||||||
|
// effectively wraps the IQNetPlayer class in a non-platform-specific way. It is
|
||||||
|
// managed by PlatformNetworkManagerStub.
|
||||||
|
|
||||||
|
class NetworkPlayerQNet : public INetworkPlayer {
|
||||||
|
public:
|
||||||
|
// Common player interface
|
||||||
|
NetworkPlayerQNet(IQNetPlayer* qnetPlayer);
|
||||||
|
virtual unsigned char GetSmallId();
|
||||||
|
virtual void SendData(INetworkPlayer* player, const void* pvData,
|
||||||
|
int dataSize, bool lowPriority, bool ack);
|
||||||
|
virtual bool IsSameSystem(INetworkPlayer* player);
|
||||||
|
virtual int GetOutstandingAckCount();
|
||||||
|
virtual int GetSendQueueSizeBytes(INetworkPlayer* player, bool lowPriority);
|
||||||
|
virtual int GetSendQueueSizeMessages(INetworkPlayer* player,
|
||||||
|
bool lowPriority);
|
||||||
|
virtual int GetCurrentRtt();
|
||||||
|
virtual bool IsHost();
|
||||||
|
virtual bool IsGuest();
|
||||||
|
virtual bool IsLocal();
|
||||||
|
virtual int GetSessionIndex();
|
||||||
|
virtual bool IsTalking();
|
||||||
|
virtual bool IsMutedByLocalUser(int userIndex);
|
||||||
|
virtual bool HasVoice();
|
||||||
|
virtual bool HasCamera();
|
||||||
|
virtual int GetUserIndex();
|
||||||
|
virtual void SetSocket(Socket* pSocket);
|
||||||
|
virtual Socket* GetSocket();
|
||||||
|
virtual const wchar_t* GetOnlineName();
|
||||||
|
virtual std::wstring GetDisplayName();
|
||||||
|
virtual PlayerUID GetUID();
|
||||||
|
virtual void SentChunkPacket();
|
||||||
|
virtual int GetTimeSinceLastChunkPacket_ms();
|
||||||
|
|
||||||
|
IQNetPlayer* GetQNetPlayer();
|
||||||
|
|
||||||
|
private:
|
||||||
|
IQNetPlayer* m_qnetPlayer;
|
||||||
|
Socket* m_pSocket;
|
||||||
|
int64_t m_lastChunkPacketTime;
|
||||||
|
};
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
// SentientManager.h -> MinecraftTelemetry.h. Using the Windows64 path would
|
// SentientManager.h -> MinecraftTelemetry.h. Using the Windows64 path would
|
||||||
// cause duplicate enum definitions.
|
// cause duplicate enum definitions.
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
#include "../../../Windows64/Source Files/Sentient/TelemetryEnum.h"
|
#include "../../../Linux/Sentient/TelemetryEnum.h"
|
||||||
#else
|
#else
|
||||||
#include "../../../Windows64/Source Files/Sentient/TelemetryEnum.h"
|
#include "../../../Windows64/Source Files/Sentient/TelemetryEnum.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -112,16 +112,14 @@ using namespace DirectX;
|
||||||
#include "../Windows64/Iggy/gdraw/gdraw_d3d11.h"
|
#include "../Windows64/Iggy/gdraw/gdraw_d3d11.h"
|
||||||
#include "../Windows64/Windows64_UIController.h"
|
#include "../Windows64/Windows64_UIController.h"
|
||||||
#else
|
#else
|
||||||
// Linux build: keep the Linux runtime/controller path and use the supported
|
|
||||||
// Linux/Windows64 metadata headers only.
|
|
||||||
#include "../Linux/Linux_App.h"
|
#include "../Linux/Linux_App.h"
|
||||||
#include "../Windows64/Iggy/include/iggy.h"
|
#include "../Linux/Iggy/include/iggy.h"
|
||||||
#include "../Windows64/Source Files/Sentient/SentientTelemetryCommon.h"
|
#include "../Linux/Sentient/SentientTelemetryCommon.h"
|
||||||
#include "../Windows64/Source Files/Sentient/DynamicConfigurations.h"
|
#include "../Linux/Sentient/DynamicConfigurations.h"
|
||||||
#include "Minecraft.spa.h"
|
#include "Minecraft.spa.h"
|
||||||
#include "../Common/Source Files/Audio/SoundEngine.h"
|
#include "../Common/Source Files/Audio/SoundEngine.h"
|
||||||
#include "../Linux/Linux_UIController.h"
|
#include "../Linux/Linux_UIController.h"
|
||||||
#include "../Windows64/Source Files/Social/SocialManager.h"
|
#include "../Linux/Social/SocialManager.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../Common/Source Files/ConsoleGameMode.h"
|
#include "../Common/Source Files/ConsoleGameMode.h"
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#define GDRAW_ASSERTS
|
#define GDRAW_ASSERTS
|
||||||
|
|
||||||
#include "../../../../Windows64/Iggy/include/iggy.h"
|
#include "gdraw.h"
|
||||||
#include "../../../../Windows64/Iggy/include/gdraw.h"
|
#include "../../../Windows64/Iggy/include/gdraw.h"
|
||||||
#include "../../../../Windows64/Iggy/include/gdraw.h"
|
#include "../../../Windows64/Iggy/include/gdraw.h"
|
||||||
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#include <GL/glext.h>
|
#include <GL/glext.h>
|
||||||
|
|
@ -684,7 +684,7 @@ static void gdraw_FramebufferRenderbufferSafe(GLenum target, GLenum attachment,
|
||||||
#define glFramebufferRenderbuffer_SAFE gdraw_FramebufferRenderbufferSafe
|
#define glFramebufferRenderbuffer_SAFE gdraw_FramebufferRenderbufferSafe
|
||||||
#define glFramebufferRenderbuffer glFramebufferRenderbuffer_SAFE
|
#define glFramebufferRenderbuffer glFramebufferRenderbuffer_SAFE
|
||||||
|
|
||||||
#include "../../../../Windows64/Iggy/gdraw/gdraw_gl_shared.inl"
|
#include "../../../Windows64/Iggy/gdraw/gdraw_gl_shared.inl"
|
||||||
#undef glVertexAttribPointer
|
#undef glVertexAttribPointer
|
||||||
#define glVertexAttribPointer gdraw_real_vtxattrib
|
#define glVertexAttribPointer gdraw_real_vtxattrib
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#ifndef __LINUX_IGGY_GDRAW_H__
|
#ifndef __LINUX_IGGY_GDRAW_H__
|
||||||
#define __LINUX_IGGY_GDRAW_H__
|
#define __LINUX_IGGY_GDRAW_H__
|
||||||
|
|
||||||
#include "../../../../Windows64/Iggy/include/gdraw.h"
|
#include "../../../Windows64/Iggy/include/gdraw.h"
|
||||||
#include "../../../../Windows64/Iggy/include/iggy.h"
|
#include "../../../Windows64/Iggy/include/iggy.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
#ifndef __RAD_INCLUDE_GDRAW_H__
|
#ifndef __RAD_INCLUDE_GDRAW_H__
|
||||||
#define __RAD_INCLUDE_GDRAW_H__
|
#define __RAD_INCLUDE_GDRAW_H__
|
||||||
|
|
||||||
#include "../../../../Windows64/Miles Sound System/Include/rrcore.h"
|
#include "rrCore.h"
|
||||||
|
|
||||||
#define IDOC
|
#define IDOC
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
#define IggyVersion "1.2.30"
|
#define IggyVersion "1.2.30"
|
||||||
#define IggyFlashVersion "9,1,2,30"
|
#define IggyFlashVersion "9,1,2,30"
|
||||||
|
|
||||||
#include "../../../../Windows64/Miles Sound System/Include/rrcore.h" // base data types, macros
|
#include "rrCore.h" // base data types, macros
|
||||||
|
|
||||||
RADDEFSTART
|
RADDEFSTART
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#include "../../../../Minecraft.World/Header Files/stdafx.h"
|
#include "../../../Minecraft.World/Header Files/stdafx.h"
|
||||||
|
|
||||||
#include "LinuxLeaderboardManager.h"
|
#include "LinuxLeaderboardManager.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../../../Common/Source Files/Leaderboards/LeaderboardManager.h"
|
#include "../../Common/Source Files/Leaderboards/LeaderboardManager.h"
|
||||||
|
|
||||||
class LinuxLeaderboardManager : public LeaderboardManager {
|
class LinuxLeaderboardManager : public LeaderboardManager {
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
#include "../../../Minecraft.World/Header Files/stdafx.h"
|
#include "../../Minecraft.World/Header Files/stdafx.h"
|
||||||
#include "../../Common/Consoles_App.h"
|
#include "../Common/Consoles_App.h"
|
||||||
#include "../../net/minecraft/client/User.h"
|
#include "../net/minecraft/client/User.h"
|
||||||
#include "../../net/minecraft/client/Minecraft.h"
|
#include "../net/minecraft/client/Minecraft.h"
|
||||||
#include "../../net/minecraft/server/MinecraftServer.h"
|
#include "../net/minecraft/server/MinecraftServer.h"
|
||||||
#include "../../net/minecraft/server/PlayerList.h"
|
#include "../net/minecraft/server/PlayerList.h"
|
||||||
#include "../../net/minecraft/server/level/ServerPlayer.h"
|
#include "../net/minecraft/server/level/ServerPlayer.h"
|
||||||
#include "../../../Minecraft.World/net/minecraft/world/level/Level.h"
|
#include "../../Minecraft.World/net/minecraft/world/level/Level.h"
|
||||||
#include "../../../Minecraft.World/net/minecraft/world/level/LevelSettings.h"
|
#include "../../Minecraft.World/net/minecraft/world/level/LevelSettings.h"
|
||||||
#include "../../../Minecraft.World/net/minecraft/world/level/biome/BiomeSource.h"
|
#include "../../Minecraft.World/net/minecraft/world/level/biome/BiomeSource.h"
|
||||||
#include "../../../Minecraft.World/net/minecraft/world/level/LevelType.h"
|
#include "../../Minecraft.World/net/minecraft/world/level/LevelType.h"
|
||||||
#include "Linux_App.h"
|
#include "Linux_App.h"
|
||||||
|
|
||||||
CConsoleMinecraftApp app;
|
CConsoleMinecraftApp app;
|
||||||
|
|
|
||||||
|
|
@ -38,36 +38,36 @@ static void sigsegv_handler(int sig) {
|
||||||
_exit(139);
|
_exit(139);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#include "../../Header Files/Minecraft.spa.h"
|
#include "../Header Files/Minecraft.spa.h"
|
||||||
#include "../../net/minecraft/server/MinecraftServer.h"
|
#include "../net/minecraft/server/MinecraftServer.h"
|
||||||
#include "../../net/minecraft/client/player/LocalPlayer.h"
|
#include "../net/minecraft/client/player/LocalPlayer.h"
|
||||||
#include "../../../Minecraft.World/net/minecraft/world/item/ItemInstance.h"
|
#include "../../Minecraft.World/net/minecraft/world/item/ItemInstance.h"
|
||||||
#include "../../../Minecraft.World/net/minecraft/world/item/MapItem.h"
|
#include "../../Minecraft.World/net/minecraft/world/item/MapItem.h"
|
||||||
#include "../../../Minecraft.World/net/minecraft/world/item/crafting/Recipes.h"
|
#include "../../Minecraft.World/net/minecraft/world/item/crafting/Recipes.h"
|
||||||
#include "../../../Minecraft.World/net/minecraft/world/item/crafting/Recipy.h"
|
#include "../../Minecraft.World/net/minecraft/world/item/crafting/Recipy.h"
|
||||||
#include "../../../Minecraft.World/net/minecraft/locale/Language.h"
|
#include "../../Minecraft.World/net/minecraft/locale/Language.h"
|
||||||
#include "../../../Minecraft.World/ConsoleHelpers/StringHelpers.h"
|
#include "../../Minecraft.World/ConsoleHelpers/StringHelpers.h"
|
||||||
#include "../../../Minecraft.World/net/minecraft/world/phys/AABB.h"
|
#include "../../Minecraft.World/net/minecraft/world/phys/AABB.h"
|
||||||
#include "../../../Minecraft.World/net/minecraft/world/phys/Vec3.h"
|
#include "../../Minecraft.World/net/minecraft/world/phys/Vec3.h"
|
||||||
#include "../../../Minecraft.World/net/minecraft/world/level/Level.h"
|
#include "../../Minecraft.World/net/minecraft/world/level/Level.h"
|
||||||
#include "../../../Minecraft.World/net/minecraft/world/level/tile/net.minecraft.world.level.tile.h"
|
#include "../../Minecraft.World/net/minecraft/world/level/tile/net.minecraft.world.level.tile.h"
|
||||||
|
|
||||||
#include "../../net/minecraft/client/multiplayer/ClientConnection.h"
|
#include "../net/minecraft/client/multiplayer/ClientConnection.h"
|
||||||
#include "../../net/minecraft/client/User.h"
|
#include "../net/minecraft/client/User.h"
|
||||||
#include "../../../Minecraft.World/ConsoleJavaLibs/Socket.h"
|
#include "../../Minecraft.World/ConsoleJavaLibs/Socket.h"
|
||||||
#include "../../../Minecraft.World/ConsoleHelpers/ThreadName.h"
|
#include "../../Minecraft.World/ConsoleHelpers/ThreadName.h"
|
||||||
#include "../../net/minecraft/stats/StatsCounter.h"
|
#include "../net/minecraft/stats/StatsCounter.h"
|
||||||
#include "../../net/minecraft/client/multiplayer/ConnectScreen.h"
|
#include "../net/minecraft/client/multiplayer/ConnectScreen.h"
|
||||||
// #include "../../Windows64/Source Files/Social/SocialManager.h"
|
// #include "../../Windows64/Source Files/Social/SocialManager.h"
|
||||||
// #include "../../Common/Source Files/Leaderboards/LeaderboardManager.h"
|
// #include "../../Common/Source Files/Leaderboards/LeaderboardManager.h"
|
||||||
// #include "../Common/XUI/XUI_Scene_Container.h"
|
// #include "../Common/XUI/XUI_Scene_Container.h"
|
||||||
// #include "NetworkManager.h"
|
// #include "NetworkManager.h"
|
||||||
#include "../../net/minecraft/client/renderer/Tesselator.h"
|
#include "../net/minecraft/client/renderer/Tesselator.h"
|
||||||
#include "../../net/minecraft/client/Options.h"
|
#include "../net/minecraft/client/Options.h"
|
||||||
#include "../../Windows64/Source Files/Sentient/SentientManager.h"
|
#include "Sentient/SentientManager.h"
|
||||||
#include "../../net/minecraft/client/renderer/Textures.h"
|
#include "../net/minecraft/client/renderer/Textures.h"
|
||||||
#include "../../../Minecraft.World/Header Files/compression.h"
|
#include "../../Minecraft.World/Header Files/compression.h"
|
||||||
#include "../../../Minecraft.World/net/minecraft/world/level/chunk/storage/OldChunkStorage.h"
|
#include "../../Minecraft.World/net/minecraft/world/level/chunk/storage/OldChunkStorage.h"
|
||||||
// #include "../Orbis/Leaderboards/OrbisLeaderboardManager.h"
|
// #include "../Orbis/Leaderboards/OrbisLeaderboardManager.h"
|
||||||
|
|
||||||
// #include "../Orbis/Network/Orbis_NPToolkit.h"
|
// #include "../Orbis/Network/Orbis_NPToolkit.h"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
// Linux stub implementations for ShutdownManager
|
// Linux stub implementations for ShutdownManager
|
||||||
// The PS3/PSVita versions have full implementations; on Linux these are no-ops.
|
// The PS3/PSVita versions have full implementations; on Linux these are no-ops.
|
||||||
#include "../../../Minecraft.World/Header Files/stdafx.h"
|
#include "../../../Minecraft.World/Header Files/stdafx.h"
|
||||||
#include "../../Common/ShutdownManager.h"
|
#include "../Common/ShutdownManager.h"
|
||||||
|
|
||||||
void ShutdownManager::Initialise() {}
|
void ShutdownManager::Initialise() {}
|
||||||
void ShutdownManager::StartShutdown() {}
|
void ShutdownManager::StartShutdown() {}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#include "../../../Minecraft.World/Header Files/stdafx.h"
|
#include "../../../Minecraft.World/Header Files/stdafx.h"
|
||||||
|
// GDraw GL backend for Linux
|
||||||
|
#include "Iggy/gdraw/gdraw.h"
|
||||||
#include "Linux_UIController.h"
|
#include "Linux_UIController.h"
|
||||||
|
|
||||||
// GDraw GL backend for Linux
|
|
||||||
#include "../../Windows64/Iggy/include/gdraw.h"
|
|
||||||
|
|
||||||
ConsoleUIController ui;
|
ConsoleUIController ui;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../../Common/Source Files/UI/UIController.h"
|
#include "../Common/Source Files/UI/UIController.h"
|
||||||
|
|
||||||
class ConsoleUIController : public UIController {
|
class ConsoleUIController : public UIController {
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "../../../Windows64/Source Files/Sentient/SentientTelemetryCommon.h"
|
#include "SentientTelemetryCommon.h"
|
||||||
#include "../../../Windows64/Source Files/Sentient/TelemetryEnum.h"
|
#include "TelemetryEnum.h"
|
||||||
#include "../../../Windows64/Source Files/Sentient/SentientStats.h"
|
#include "SentientStats.h"
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "../../../Windows64/Source Files/Sentient/MinecraftTelemetry.h"
|
#include "MinecraftTelemetry.h"
|
||||||
|
|
||||||
class CSentientManager {
|
class CSentientManager {
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../../../Windows64/Iggy/include/iggy.h"
|
#include "../Iggy/include/iggy.h"
|
||||||
|
|
||||||
#define STUBBED \
|
#define STUBBED \
|
||||||
{ \
|
{ \
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
#include "Stubs/LinuxStubs.h"
|
#include "Stubs/LinuxStubs.h"
|
||||||
#include "../../Common/Consoles_App.h"
|
#include "../Common/Consoles_App.h"
|
||||||
|
|
||||||
void Display::update() {}
|
void Display::update() {}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
// via #pragma once. Pull in SentientManager for CSentientManager class
|
// via #pragma once. Pull in SentientManager for CSentientManager class
|
||||||
// declaration and StatsCounter; CSocialManager is provided as inline stubs via
|
// declaration and StatsCounter; CSocialManager is provided as inline stubs via
|
||||||
// Linux/Social/SocialManager.h.
|
// Linux/Social/SocialManager.h.
|
||||||
#include "../Windows64/Source Files/Sentient/SentientManager.h"
|
#include "../Linux/Sentient/SentientManager.h"
|
||||||
#include "../net/minecraft/stats/StatsCounter.h"
|
#include "../net/minecraft/stats/StatsCounter.h"
|
||||||
#else
|
#else
|
||||||
#include "../net/minecraft/stats/StatsCounter.h"
|
#include "../net/minecraft/stats/StatsCounter.h"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
exclude_sources = [
|
exclude_sources = [
|
||||||
' ! -path "*/Platform/*"', # added by platform_sources
|
' ! -path "*/Common/*"', # added by platform_sources
|
||||||
|
' ! -path "*/Linux/*"', # added by platform_sources
|
||||||
|
' ! -path "*/Windows64/*"', # added by platform_sources
|
||||||
' ! -name "SurvivalMode.cpp"',
|
' ! -name "SurvivalMode.cpp"',
|
||||||
' ! -name "CreativeMode.cpp"',
|
' ! -name "CreativeMode.cpp"',
|
||||||
' ! -name "GameMode.cpp"',
|
' ! -name "GameMode.cpp"',
|
||||||
|
|
@ -16,28 +18,17 @@ client_sources = run_command(
|
||||||
check: true,
|
check: true,
|
||||||
).stdout().strip().split('\n')
|
).stdout().strip().split('\n')
|
||||||
|
|
||||||
# all sources in ./Platform (top-level files only)
|
|
||||||
platform_sources = run_command(
|
|
||||||
'sh',
|
|
||||||
'-c', 'find "'
|
|
||||||
+ meson.current_source_dir() / 'Platform'
|
|
||||||
+ '" -maxdepth 1 \\( -name "*.cpp" -o -name "*.c" \\)',
|
|
||||||
check: true,
|
|
||||||
).stdout().strip().split('\n')
|
|
||||||
|
|
||||||
# some platform-specific sources that are for some stupid reason in Common
|
# some platform-specific sources that are for some stupid reason in Common
|
||||||
exclude_platform_common_sources = [
|
exclude_platform_common_sources = [
|
||||||
' ! -path "*/Network/Sony/*"',
|
|
||||||
' ! -path "*/XUI/*"',
|
|
||||||
' ! -name "SonyLeaderboardManager.cpp"',
|
' ! -name "SonyLeaderboardManager.cpp"',
|
||||||
' ! -name "UIScene_InGameSaveManagementMenu.cpp"',
|
' ! -name "UIScene_InGameSaveManagementMenu.cpp"',
|
||||||
]
|
]
|
||||||
|
|
||||||
# all sources in in ./Platform/Common
|
# all sources in in ./Platform/Common
|
||||||
platform_sources += run_command(
|
platform_sources = run_command(
|
||||||
'sh',
|
'sh',
|
||||||
'-c', 'find "'
|
'-c', 'find "'
|
||||||
+ meson.current_source_dir() / 'Platform/Common'
|
+ meson.current_source_dir() / 'Common'
|
||||||
+ '" \\( -name "*.cpp" -o -name "*.c" \\)'
|
+ '" \\( -name "*.cpp" -o -name "*.c" \\)'
|
||||||
+ ' '.join(exclude_platform_common_sources),
|
+ ' '.join(exclude_platform_common_sources),
|
||||||
check: true,
|
check: true,
|
||||||
|
|
@ -48,7 +39,7 @@ if host_machine.system() == 'linux'
|
||||||
platform_sources += run_command(
|
platform_sources += run_command(
|
||||||
'sh',
|
'sh',
|
||||||
'-c', 'find "'
|
'-c', 'find "'
|
||||||
+ meson.current_source_dir() / 'Platform/Linux'
|
+ meson.current_source_dir() / 'Linux'
|
||||||
+ '" \\( -name "*.cpp" -o -name "*.c" \\) ',
|
+ '" \\( -name "*.cpp" -o -name "*.c" \\) ',
|
||||||
check: true,
|
check: true,
|
||||||
).stdout().strip().split('\n')
|
).stdout().strip().split('\n')
|
||||||
|
|
@ -106,17 +97,18 @@ elif occlusion_mode == 'bfs'
|
||||||
elif occlusion_mode == 'hardware'
|
elif occlusion_mode == 'hardware'
|
||||||
global_cpp_defs += ['-DOCCLUSION_MODE_HARDWARE', '-DUSE_OCCLUSION_CULLING']
|
global_cpp_defs += ['-DOCCLUSION_MODE_HARDWARE', '-DUSE_OCCLUSION_CULLING']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
client = executable(
|
client = executable(
|
||||||
'Minecraft.Client',
|
'Minecraft.Client',
|
||||||
client_sources + platform_sources + localisation[1],
|
client_sources + platform_sources + localisation[1],
|
||||||
include_directories: include_directories('Platform', 'Platform/Linux/Iggy/include'),
|
include_directories: include_directories('Header Files'),
|
||||||
dependencies: client_dependencies,
|
dependencies: client_dependencies,
|
||||||
cpp_args: global_cpp_args
|
cpp_args: global_cpp_args
|
||||||
+ global_cpp_defs
|
+ global_cpp_defs
|
||||||
+ [
|
+ [
|
||||||
'-DUNICODE',
|
'-DUNICODE',
|
||||||
'-D_UNICODE',
|
'-D_UNICODE',
|
||||||
'-include', meson.current_source_dir() / 'Platform/stdafx.h',
|
'-include', meson.current_source_dir() / 'Header Files/stdafx.h',
|
||||||
],
|
],
|
||||||
c_args: global_cpp_defs + ['-DUNICODE', '-D_UNICODE'],
|
c_args: global_cpp_defs + ['-DUNICODE', '-D_UNICODE'],
|
||||||
install: true,
|
install: true,
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@
|
||||||
#include "../../ConsoleJavaLibs/File.h"
|
#include "../../ConsoleJavaLibs/File.h"
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <xuiapp.h>
|
|
||||||
#include "../../Header Files/compression.h"
|
#include "../../Header Files/compression.h"
|
||||||
#include "../../../Minecraft.Client/net/minecraft/client/Minecraft.h"
|
#include "../../../Minecraft.Client/net/minecraft/client/Minecraft.h"
|
||||||
#include "../../../Minecraft.Client/net/minecraft/server/MinecraftServer.h"
|
#include "../../../Minecraft.Client/net/minecraft/server/MinecraftServer.h"
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
#include "ConsoleSaveFileSplit.h"
|
#include "ConsoleSaveFileSplit.h"
|
||||||
#include "ConsoleSaveFileConverter.h"
|
#include "ConsoleSaveFileConverter.h"
|
||||||
#include "../../ConsoleJavaLibs/File.h"
|
#include "../../ConsoleJavaLibs/File.h"
|
||||||
#include <xuiapp.h>
|
|
||||||
#include "../../Header Files/compression.h"
|
#include "../../Header Files/compression.h"
|
||||||
#include "../../../Minecraft.Client/net/minecraft/client/Minecraft.h"
|
#include "../../../Minecraft.Client/net/minecraft/client/Minecraft.h"
|
||||||
#include "../../../Minecraft.Client/net/minecraft/server/MinecraftServer.h"
|
#include "../../../Minecraft.Client/net/minecraft/server/MinecraftServer.h"
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@
|
||||||
#include "../ConsoleJavaLibs/Random.h"
|
#include "../ConsoleJavaLibs/Random.h"
|
||||||
#include "../net/minecraft/world/level/TilePos.h"
|
#include "../net/minecraft/world/level/TilePos.h"
|
||||||
#include "../net/minecraft/world/level/ChunkPos.h"
|
#include "../net/minecraft/world/level/ChunkPos.h"
|
||||||
#include "compression.h"
|
#include "../Header Files/compression.h"
|
||||||
#include "../ConsoleHelpers/PerformanceTimer.h"
|
#include "../ConsoleHelpers/PerformanceTimer.h"
|
||||||
|
|
||||||
#ifdef _FINAL_BUILD
|
#ifdef _FINAL_BUILD
|
||||||
|
|
@ -102,9 +102,8 @@ void MemSect(int sect);
|
||||||
#else
|
#else
|
||||||
// Use the Linux runtime path with supported metadata/config headers only.
|
// Use the Linux runtime path with supported metadata/config headers only.
|
||||||
#include "../../Minecraft.Client/Linux/Linux_App.h"
|
#include "../../Minecraft.Client/Linux/Linux_App.h"
|
||||||
#include "../../Minecraft.Client/Windows64/Source Files/Sentient/SentientTelemetryCommon.h"
|
#include "../../Minecraft.Client/Linux/Sentient/SentientTelemetryCommon.h"
|
||||||
#include "../../Minecraft.Client/Windows64/Source Files/Sentient/DynamicConfigurations.h"
|
#include "../../Minecraft.Client/Linux/Sentient/DynamicConfigurations.h"
|
||||||
#include "../../Minecraft.Client/Header Files/Minecraft.spa.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../Minecraft.Client/Common/Source Files/DLC/DLCSkinFile.h"
|
#include "../../Minecraft.Client/Common/Source Files/DLC/DLCSkinFile.h"
|
||||||
|
|
|
||||||
|
|
@ -1,116 +0,0 @@
|
||||||
// stdafx.h : include file for standard system include files,
|
|
||||||
// or project specific include files that are used frequently, but
|
|
||||||
// are changed infrequently
|
|
||||||
//
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#ifdef _WINDOWS64
|
|
||||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
|
||||||
#include <windows.h>
|
|
||||||
#include <malloc.h>
|
|
||||||
#include <tchar.h>
|
|
||||||
#include <d3d11.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __linux__
|
|
||||||
#include <unordered_map>
|
|
||||||
#include <unordered_set>
|
|
||||||
#include <vector>
|
|
||||||
#include "../../Minecraft.Client/Linux/Stubs/LinuxStubs.h"
|
|
||||||
#else
|
|
||||||
#include <unordered_map>
|
|
||||||
#include <unordered_set>
|
|
||||||
#include <sal.h>
|
|
||||||
#include <vector>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <memory>
|
|
||||||
|
|
||||||
#include "../x64headers/extraX64.h"
|
|
||||||
|
|
||||||
#include <list>
|
|
||||||
#include <map>
|
|
||||||
#include <set>
|
|
||||||
#include <queue>
|
|
||||||
#include <deque>
|
|
||||||
#include <algorithm>
|
|
||||||
#include <math.h>
|
|
||||||
#include <limits>
|
|
||||||
#include <string>
|
|
||||||
#include <sstream>
|
|
||||||
#include <iostream>
|
|
||||||
#include <exception>
|
|
||||||
|
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
#include "../ConsoleHelpers/Definitions.h"
|
|
||||||
#include "../ConsoleJavaLibs/Class.h"
|
|
||||||
#include "../ConsoleJavaLibs/Exceptions.h"
|
|
||||||
#include "../net/minecraft/util/Mth.h"
|
|
||||||
#include "../ConsoleHelpers/StringHelpers.h"
|
|
||||||
#include "../ConsoleHelpers/ArrayWithLength.h"
|
|
||||||
#include "../ConsoleJavaLibs/Random.h"
|
|
||||||
#include "../net/minecraft/world/level/TilePos.h"
|
|
||||||
#include "../net/minecraft/world/level/ChunkPos.h"
|
|
||||||
#include "compression.h"
|
|
||||||
#include "../ConsoleHelpers/PerformanceTimer.h"
|
|
||||||
|
|
||||||
#ifdef _FINAL_BUILD
|
|
||||||
#define printf BREAKTHECOMPILE
|
|
||||||
#define wprintf BREAKTHECOMPILE
|
|
||||||
#undef OutputDebugString
|
|
||||||
#define OutputDebugString BREAKTHECOMPILE
|
|
||||||
#define OutputDebugStringA BREAKTHECOMPILE
|
|
||||||
#define OutputDebugStringW BREAKTHECOMPILE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void MemSect(int sect);
|
|
||||||
|
|
||||||
#ifdef _WINDOWS64
|
|
||||||
#include "../../Minecraft.Client/Platform/Windows64/4JLibs/inc/4J_Profile.h"
|
|
||||||
#include "../../Minecraft.Client/Platform/Windows64/4JLibs/inc/4J_Render.h"
|
|
||||||
#include "../../Minecraft.Client/Platform/Windows64/4JLibs/inc/4J_Storage.h"
|
|
||||||
#include "../../Minecraft.Client/Platform/Windows64/4JLibs/inc/4J_Input.h"
|
|
||||||
#else
|
|
||||||
#include "4J_Profile.h"
|
|
||||||
#include "4J_Render.h"
|
|
||||||
#include "4J_Storage.h"
|
|
||||||
#include "4J_Input.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../../Minecraft.Client/Common/Source Files/Network/GameNetworkManager.h"
|
|
||||||
|
|
||||||
#include "../../Minecraft.Client/Common/Source Files/UI/All Platforms/UIEnums.h"
|
|
||||||
#include "../../Minecraft.Client/Common/App_Defines.h"
|
|
||||||
#include "../../Minecraft.Client/Common/App_enums.h"
|
|
||||||
#include "../../Minecraft.Client/Common/Source Files/Tutorial/TutorialEnum.h"
|
|
||||||
#include "../../Minecraft.Client/Common/App_structs.h"
|
|
||||||
|
|
||||||
#include "../../Minecraft.Client/Common/Consoles_App.h"
|
|
||||||
#include "../../Minecraft.Client/Common/Minecraft_Macros.h"
|
|
||||||
#include "../../Minecraft.Client/Common/Source Files/Colours/ColourTable.h"
|
|
||||||
|
|
||||||
#include "../../Minecraft.Client/Common/Source Files/BuildVer/BuildVer.h"
|
|
||||||
|
|
||||||
// This is generated at build time via scripts/pack_loc.py
|
|
||||||
#include "strings.h"
|
|
||||||
|
|
||||||
#ifdef _WINDOWS64
|
|
||||||
#include "../../Minecraft.Client/Windows64/Windows64_App.h"
|
|
||||||
#include "../../Minecraft.Client/Windows64/Source Files/Sentient/SentientTelemetryCommon.h"
|
|
||||||
#include "../../Minecraft.Client/Windows64/Source Files/Sentient/MinecraftTelemetry.h"
|
|
||||||
#else
|
|
||||||
// Use the Linux runtime path with supported metadata/config headers only.
|
|
||||||
#include "../../Minecraft.Client/Linux/Linux_App.h"
|
|
||||||
#include "../../Minecraft.Client/Windows64/Source Files/Sentient/SentientTelemetryCommon.h"
|
|
||||||
#include "../../Minecraft.Client/Windows64/Source Files/Sentient/DynamicConfigurations.h"
|
|
||||||
#include "../../Minecraft.Client/Header Files/Minecraft.spa.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../../Minecraft.Client/Common/Source Files/DLC/DLCSkinFile.h"
|
|
||||||
#include "../../Minecraft.Client/Common/Source Files/Console_Awards_enum.h"
|
|
||||||
#include "../../Minecraft.Client/Common/Potion_Macros.h"
|
|
||||||
#include "../../Minecraft.Client/Common/Source Files/Console_Debug_enum.h"
|
|
||||||
#include "../../Minecraft.Client/Common/Source Files/GameRules/ConsoleGameRulesConstants.h"
|
|
||||||
#include "../../Minecraft.Client/Common/Source Files/GameRules/ConsoleGameRules.h"
|
|
||||||
#include "../../Minecraft.Client/Common/Source Files/Telemetry/TelemetryManager.h"
|
|
||||||
|
|
@ -10,7 +10,7 @@ exclude_sources = [
|
||||||
'! -name NbtSlotFile.cpp',
|
'! -name NbtSlotFile.cpp',
|
||||||
'! -name ZonedChunkStorage.cpp',
|
'! -name ZonedChunkStorage.cpp',
|
||||||
'! -name ZoneFile.cpp',
|
'! -name ZoneFile.cpp',
|
||||||
'! -name ZoneIO.cpp',
|
'! -name ZoneIo.cpp',
|
||||||
'! -name LevelConflictException.cpp',
|
'! -name LevelConflictException.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -32,7 +32,6 @@ simdutf_dep = dependency('simdutf',
|
||||||
|
|
||||||
lib_world = static_library('Minecraft.World',
|
lib_world = static_library('Minecraft.World',
|
||||||
world_sources,
|
world_sources,
|
||||||
include_directories : include_directories('Platform', 'Platform/x64headers'),
|
|
||||||
dependencies : [
|
dependencies : [
|
||||||
assets_localisation_dep,
|
assets_localisation_dep,
|
||||||
render_dep,
|
render_dep,
|
||||||
|
|
@ -41,8 +40,9 @@ lib_world = static_library('Minecraft.World',
|
||||||
storage_dep,
|
storage_dep,
|
||||||
simdutf_dep,
|
simdutf_dep,
|
||||||
],
|
],
|
||||||
|
include_directories : include_directories('Header Files'),
|
||||||
cpp_args : global_cpp_args + global_cpp_defs + [
|
cpp_args : global_cpp_args + global_cpp_defs + [
|
||||||
'-include', 'Platform/stdafx.h',
|
'-include', 'Header Files/stdafx.h',
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -52,5 +52,5 @@ crypto_dep = dependency('libcrypto') # for MD5 in Hasher.cpp on Linux
|
||||||
world_dep = declare_dependency(
|
world_dep = declare_dependency(
|
||||||
link_with : lib_world,
|
link_with : lib_world,
|
||||||
dependencies : [crypto_dep, zlib_dep],
|
dependencies : [crypto_dep, zlib_dep],
|
||||||
include_directories : include_directories('Platform/x64headers'),
|
include_directories : include_directories('x64headers'),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -6,16 +6,13 @@
|
||||||
#include "../../net.minecraft.h"
|
#include "../../net.minecraft.h"
|
||||||
#include "PlanterTileItem.h"
|
#include "PlanterTileItem.h"
|
||||||
#include "../../stats/GenericStats.h"
|
#include "../../stats/GenericStats.h"
|
||||||
// 4J-PB - for the debug option of not removing items
|
|
||||||
#include <xuiresource.h>
|
|
||||||
#include <xuiapp.h>
|
|
||||||
|
|
||||||
TilePlanterItem::TilePlanterItem(int id, Tile* tile) : Item(id) {
|
TilePlanterItem::TilePlanterItem(int id, Tile* tile) : Item(id) {
|
||||||
this->tileId = tile->id;
|
this->tileId = tile->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TilePlanterItem::useOn(std::shared_ptr<ItemInstance> instance,
|
bool TilePlanterItem::useOn(std::shared_ptr<ItemInstance> instance,
|
||||||
std::shared_ptr<Player> player, Level* level, int x,
|
std::shared_ptr<Player> player, Level* level, int x,
|
||||||
int y, int z, int face, float clickX, float clickY,
|
int y, int z, int face, float clickX, float clickY,
|
||||||
float clickZ, bool bTestUseOnOnly) {
|
float clickZ, bool bTestUseOnOnly) {
|
||||||
// 4J-PB - Adding a test only version to allow tooltips to be displayed
|
// 4J-PB - Adding a test only version to allow tooltips to be displayed
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,6 @@
|
||||||
#include "TileItem.h"
|
#include "TileItem.h"
|
||||||
#include "../../Facing.h"
|
#include "../../Facing.h"
|
||||||
|
|
||||||
// 4J-PB - for the debug option of not removing items
|
|
||||||
#include <xuiresource.h>
|
|
||||||
#include <xuiapp.h>
|
|
||||||
|
|
||||||
TileItem::TileItem(int id) : Item(id) {
|
TileItem::TileItem(int id) : Item(id) {
|
||||||
this->tileId = id + 256;
|
this->tileId = id + 256;
|
||||||
itemIcon = nullptr;
|
itemIcon = nullptr;
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@
|
||||||
|
|
||||||
#include "../../../../ConsoleHelpers/ConsoleSaveFileIO/ConsoleSaveFile.h"
|
#include "../../../../ConsoleHelpers/ConsoleSaveFileIO/ConsoleSaveFile.h"
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <xuiapp.h>
|
|
||||||
#include "../../Minecraft.Client/net/minecraft/client/Minecraft.h"
|
#include "../../Minecraft.Client/net/minecraft/client/Minecraft.h"
|
||||||
#include "../../Minecraft.Client/net/minecraft/client/renderer/LevelRenderer.h"
|
#include "../../Minecraft.Client/net/minecraft/client/renderer/LevelRenderer.h"
|
||||||
#include "../../../../Header Files/SoundTypes.h"
|
#include "../../../../Header Files/SoundTypes.h"
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@
|
||||||
#include "../../../phys/net.minecraft.world.phys.h"
|
#include "../../../phys/net.minecraft.world.phys.h"
|
||||||
#include "../../../../network/packet/net.minecraft.network.packet.h"
|
#include "../../../../network/packet/net.minecraft.network.packet.h"
|
||||||
#include "SignTileEntity.h"
|
#include "SignTileEntity.h"
|
||||||
#include <xuiapp.h>
|
|
||||||
#include "../../../Minecraft.Client/net/minecraft/client/multiplayer/ClientConnection.h"
|
#include "../../../Minecraft.Client/net/minecraft/client/multiplayer/ClientConnection.h"
|
||||||
#include "../../../Minecraft.Client/net/minecraft/client/Minecraft.h"
|
#include "../../../Minecraft.Client/net/minecraft/client/Minecraft.h"
|
||||||
#include "../../../Minecraft.Client/net/minecraft/server/level/ServerLevel.h"
|
#include "../../../Minecraft.Client/net/minecraft/server/level/ServerLevel.h"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue