refactor: unglob std::enable_shared_from_this

This commit is contained in:
Tropical 2026-03-06 12:04:16 -06:00 committed by JuiceyDev
parent 6260238f5e
commit 4516cf2e30
87 changed files with 87 additions and 87 deletions

View file

@ -10,7 +10,7 @@ class CompoundTag;
typedef TileEntity *(*tileEntityCreateFn)();
class TileEntity : public enable_shared_from_this<TileEntity>
class TileEntity : public std::enable_shared_from_this<TileEntity>
{
public:
static void staticCtor();

View file

@ -6,7 +6,7 @@ class MerchantContainer;
class MerchantRecipeList;
class MerchantRecipe;
class ClientSideMerchant : public Merchant, public enable_shared_from_this<ClientSideMerchant>
class ClientSideMerchant : public Merchant, public std::enable_shared_from_this<ClientSideMerchant>
{
private:
MerchantContainer *container;

View file

@ -4,7 +4,7 @@
class RepairMenu;
class RepairContainer : public SimpleContainer, public enable_shared_from_this<RepairContainer>
class RepairContainer : public SimpleContainer, public std::enable_shared_from_this<RepairContainer>
{
private:
RepairMenu *m_menu;

View file

@ -32,7 +32,7 @@ enum EEntityDamageType
eEntityDamageType_Cactus,
};
class Entity : public enable_shared_from_this<Entity>
class Entity : public std::enable_shared_from_this<Entity>
{
friend class Gui; // 4J Stu - Added to be able to access the shared flag functions and constants, without making them publicly available to everything
public:

View file

@ -24,7 +24,7 @@ class EnchantedBookItem;
#define ITEM_ICON_COLUMNS 16
class Item : public enable_shared_from_this<Item>
class Item : public std::enable_shared_from_this<Item>
{
public:
static const int ITEM_NUM_COUNT = 32000;

View file

@ -18,7 +18,7 @@ class Icon;
// 4J Stu - While this is not really an abstract class, we don't want to make new instances of it,
// mainly because there are too many ctors and that doesn't fit well into out macroisation setup
class ItemInstance: public enable_shared_from_this<ItemInstance>
class ItemInstance: public std::enable_shared_from_this<ItemInstance>
{
public:
static const wchar_t *TAG_ENCH_ID;

View file

@ -5,7 +5,7 @@ using namespace std;
class CompoundTag;
class SavedData : public enable_shared_from_this<SavedData>
class SavedData : public std::enable_shared_from_this<SavedData>
{
public:
const std::wstring id;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class AddEntityPacket : public Packet, public enable_shared_from_this<AddEntityPacket>
class AddEntityPacket : public Packet, public std::enable_shared_from_this<AddEntityPacket>
{
public:
static const int BOAT = 1;

View file

@ -4,7 +4,7 @@
class ExperienceOrb;
class AddExperienceOrbPacket : public Packet, public enable_shared_from_this<AddExperienceOrbPacket>
class AddExperienceOrbPacket : public Packet, public std::enable_shared_from_this<AddExperienceOrbPacket>
{
public:
int id;

View file

@ -2,7 +2,7 @@
#include "Packet.h"
class AddGlobalEntityPacket : public Packet, public enable_shared_from_this<AddGlobalEntityPacket>
class AddGlobalEntityPacket : public Packet, public std::enable_shared_from_this<AddGlobalEntityPacket>
{
public:
static const int LIGHTNING;

View file

@ -6,7 +6,7 @@ using namespace std;
class Mob;
class AddMobPacket : public Packet, public enable_shared_from_this<AddMobPacket>
class AddMobPacket : public Packet, public std::enable_shared_from_this<AddMobPacket>
{
public:
int id;

View file

@ -5,7 +5,7 @@ using namespace std;
class Painting;
class AddPaintingPacket : public Packet, public enable_shared_from_this<AddPaintingPacket>
class AddPaintingPacket : public Packet, public std::enable_shared_from_this<AddPaintingPacket>
{
public:
int id;

View file

@ -6,7 +6,7 @@ using namespace std;
class Player;
class AddPlayerPacket : public Packet, public enable_shared_from_this<AddPlayerPacket>
class AddPlayerPacket : public Packet, public std::enable_shared_from_this<AddPlayerPacket>
{
private:

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class AnimatePacket : public Packet, public enable_shared_from_this<AnimatePacket>
class AnimatePacket : public Packet, public std::enable_shared_from_this<AnimatePacket>
{
public:
static const int SWING = 1;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class AwardStatPacket : public Packet, public enable_shared_from_this<AwardStatPacket>
class AwardStatPacket : public Packet, public std::enable_shared_from_this<AwardStatPacket>
{
public:
int statId;

View file

@ -5,7 +5,7 @@ using namespace std;
class Level;
class BlockRegionUpdatePacket : public Packet, public enable_shared_from_this<BlockRegionUpdatePacket>
class BlockRegionUpdatePacket : public Packet, public std::enable_shared_from_this<BlockRegionUpdatePacket>
{
public:
int x, y, z;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class ChatPacket : public Packet, public enable_shared_from_this<ChatPacket>
class ChatPacket : public Packet, public std::enable_shared_from_this<ChatPacket>
{
// longest allowed string is "<" + name + "> " + message
private:

View file

@ -5,7 +5,7 @@ using namespace std;
class Level;
class ChunkTilesUpdatePacket : public Packet, public enable_shared_from_this<ChunkTilesUpdatePacket>
class ChunkTilesUpdatePacket : public Packet, public std::enable_shared_from_this<ChunkTilesUpdatePacket>
{
public:
int xc, zc;

View file

@ -7,7 +7,7 @@ class Level;
// 4J Added this packet so that when a player initially joins the game we just need to send them the area of chunks
// around them rather than one packet for each chunk
class ChunkVisibilityAreaPacket : public Packet, public enable_shared_from_this<ChunkVisibilityAreaPacket>
class ChunkVisibilityAreaPacket : public Packet, public std::enable_shared_from_this<ChunkVisibilityAreaPacket>
{
public:
int m_minX, m_maxX, m_minZ, m_maxZ;

View file

@ -7,7 +7,7 @@ using namespace std;
#include <iostream>
#include "PacketListener.h"
class ChunkVisibilityPacket : public Packet, public enable_shared_from_this<ChunkVisibilityPacket>
class ChunkVisibilityPacket : public Packet, public std::enable_shared_from_this<ChunkVisibilityPacket>
{
public:
int x, z;

View file

@ -2,7 +2,7 @@
#include "Packet.h"
class ClientCommandPacket : public Packet, public enable_shared_from_this<ClientCommandPacket>
class ClientCommandPacket : public Packet, public std::enable_shared_from_this<ClientCommandPacket>
{
public:
static const int LOGIN_COMPLETE = 0;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class ComplexItemDataPacket : public Packet, public enable_shared_from_this<ComplexItemDataPacket>
class ComplexItemDataPacket : public Packet, public std::enable_shared_from_this<ComplexItemDataPacket>
{
public:
short itemType;

View file

@ -7,7 +7,7 @@ using namespace std;
#include <iostream>
#include "PacketListener.h"
class ContainerAckPacket : public Packet, public enable_shared_from_this<ContainerAckPacket>
class ContainerAckPacket : public Packet, public std::enable_shared_from_this<ContainerAckPacket>
{
public:
int containerId;

View file

@ -2,7 +2,7 @@
#include "Packet.h"
class ContainerButtonClickPacket : public Packet, public enable_shared_from_this<ContainerButtonClickPacket>
class ContainerButtonClickPacket : public Packet, public std::enable_shared_from_this<ContainerButtonClickPacket>
{
public:
int containerId;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class ContainerClickPacket : public Packet, public enable_shared_from_this<ContainerClickPacket>
class ContainerClickPacket : public Packet, public std::enable_shared_from_this<ContainerClickPacket>
{
public:
int containerId;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class ContainerClosePacket : public Packet, public enable_shared_from_this<ContainerClosePacket>
class ContainerClosePacket : public Packet, public std::enable_shared_from_this<ContainerClosePacket>
{
public:
int containerId;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class ContainerOpenPacket : public Packet, public enable_shared_from_this<ContainerOpenPacket>
class ContainerOpenPacket : public Packet, public std::enable_shared_from_this<ContainerOpenPacket>
{
public:
static const int CONTAINER = 0;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class ContainerSetContentPacket : public Packet, public enable_shared_from_this<ContainerSetContentPacket>
class ContainerSetContentPacket : public Packet, public std::enable_shared_from_this<ContainerSetContentPacket>
{
public:
int containerId;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class ContainerSetDataPacket : public Packet, public enable_shared_from_this<ContainerSetDataPacket>
class ContainerSetDataPacket : public Packet, public std::enable_shared_from_this<ContainerSetDataPacket>
{
public:
int containerId;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class ContainerSetSlotPacket : public Packet, public enable_shared_from_this<ContainerSetSlotPacket>
class ContainerSetSlotPacket : public Packet, public std::enable_shared_from_this<ContainerSetSlotPacket>
{
public:
static const int CONTAINER;

View file

@ -6,7 +6,7 @@ using namespace std;
#include "Packet.h"
class CraftItemPacket : public Packet, public enable_shared_from_this<CraftItemPacket>
class CraftItemPacket : public Packet, public std::enable_shared_from_this<CraftItemPacket>
{
public:
int recipe;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class CustomPayloadPacket : public Packet, public enable_shared_from_this<CustomPayloadPacket>
class CustomPayloadPacket : public Packet, public std::enable_shared_from_this<CustomPayloadPacket>
{
public:

View file

@ -6,7 +6,7 @@ using namespace std;
#include "Packet.h"
class DebugOptionsPacket : public Packet, public enable_shared_from_this<DebugOptionsPacket>
class DebugOptionsPacket : public Packet, public std::enable_shared_from_this<DebugOptionsPacket>
{
public:
unsigned int m_uiVal;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class DisconnectPacket : public Packet, public enable_shared_from_this<DisconnectPacket>
class DisconnectPacket : public Packet, public std::enable_shared_from_this<DisconnectPacket>
{
public:

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class EntityActionAtPositionPacket : public Packet, public enable_shared_from_this<EntityActionAtPositionPacket>
class EntityActionAtPositionPacket : public Packet, public std::enable_shared_from_this<EntityActionAtPositionPacket>
{
public:
static const int START_SLEEP;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class EntityEventPacket : public Packet, public enable_shared_from_this<EntityEventPacket>
class EntityEventPacket : public Packet, public std::enable_shared_from_this<EntityEventPacket>
{
public:
int entityId;

View file

@ -4,7 +4,7 @@ using namespace std;
#include "../../Level/TilePos.h"
#include "Packet.h"
class ExplodePacket : public Packet, public enable_shared_from_this<ExplodePacket>
class ExplodePacket : public Packet, public std::enable_shared_from_this<ExplodePacket>
{
public:
double x, y, z;

View file

@ -4,7 +4,7 @@ using namespace std;
#include "../../Commands/CommandsEnum.h"
#include "Packet.h"
class GameCommandPacket : public Packet, public enable_shared_from_this<GameCommandPacket>
class GameCommandPacket : public Packet, public std::enable_shared_from_this<GameCommandPacket>
{
public:
EGameCommand command;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class GameEventPacket : public Packet, public enable_shared_from_this<GameEventPacket>
class GameEventPacket : public Packet, public std::enable_shared_from_this<GameEventPacket>
{
public:

View file

@ -2,7 +2,7 @@
#include "Packet.h"
class GetInfoPacket : public Packet, public enable_shared_from_this<GetInfoPacket>
class GetInfoPacket : public Packet, public std::enable_shared_from_this<GetInfoPacket>
{
public:
virtual void read(DataInputStream *dis);

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class InteractPacket : public Packet, public enable_shared_from_this<InteractPacket>
class InteractPacket : public Packet, public std::enable_shared_from_this<InteractPacket>
{
public:
static const int INTERACT;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class KeepAlivePacket : public Packet, public enable_shared_from_this<KeepAlivePacket>
class KeepAlivePacket : public Packet, public std::enable_shared_from_this<KeepAlivePacket>
{
public:
int id;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class KickPlayerPacket : public Packet, public enable_shared_from_this<KickPlayerPacket>
class KickPlayerPacket : public Packet, public std::enable_shared_from_this<KickPlayerPacket>
{
public:
BYTE m_networkSmallId;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class LevelEventPacket : public Packet, public enable_shared_from_this<LevelEventPacket>
class LevelEventPacket : public Packet, public std::enable_shared_from_this<LevelEventPacket>
{
public:
int type;

View file

@ -2,7 +2,7 @@
#include "Packet.h"
class LevelSoundPacket : public Packet, public enable_shared_from_this<LevelSoundPacket>
class LevelSoundPacket : public Packet, public std::enable_shared_from_this<LevelSoundPacket>
{
public:
static const float PITCH_ACCURACY;

View file

@ -4,7 +4,7 @@ using namespace std;
#include "Packet.h"
class LevelType;
class LoginPacket : public Packet, public enable_shared_from_this<LoginPacket>
class LoginPacket : public Packet, public std::enable_shared_from_this<LoginPacket>
{
public:
int clientVersion;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class MoveEntityPacket : public Packet, public enable_shared_from_this<MoveEntityPacket>
class MoveEntityPacket : public Packet, public std::enable_shared_from_this<MoveEntityPacket>
{
// 4J JEV, static inner/sub classes

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class MoveEntityPacketSmall : public Packet, public enable_shared_from_this<MoveEntityPacketSmall>
class MoveEntityPacketSmall : public Packet, public std::enable_shared_from_this<MoveEntityPacketSmall>
{
// 4J JEV, static inner/sub classes

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class MovePlayerPacket : public Packet, public enable_shared_from_this<MovePlayerPacket>
class MovePlayerPacket : public Packet, public std::enable_shared_from_this<MovePlayerPacket>
{
public:
class PosRot;

View file

@ -4,7 +4,7 @@
class Abilities;
class PlayerAbilitiesPacket : public Packet, public enable_shared_from_this<PlayerAbilitiesPacket>
class PlayerAbilitiesPacket : public Packet, public std::enable_shared_from_this<PlayerAbilitiesPacket>
{
private:
static const int FLAG_INVULNERABLE = 1 << 0;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class PlayerActionPacket : public Packet, public enable_shared_from_this<PlayerActionPacket>
class PlayerActionPacket : public Packet, public std::enable_shared_from_this<PlayerActionPacket>
{
public:
static const int START_DESTROY_BLOCK;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class PlayerCommandPacket : public Packet, public enable_shared_from_this<PlayerCommandPacket>
class PlayerCommandPacket : public Packet, public std::enable_shared_from_this<PlayerCommandPacket>
{
public:
static const int START_SNEAKING;

View file

@ -4,7 +4,7 @@ using namespace std;
class ServerPlayer;
class PlayerInfoPacket : public Packet, public enable_shared_from_this<PlayerInfoPacket>
class PlayerInfoPacket : public Packet, public std::enable_shared_from_this<PlayerInfoPacket>
{
public:
// 4J Stu - I have re-purposed this packet for our uses

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class PlayerInputPacket : public Packet, public enable_shared_from_this<PlayerInputPacket>
class PlayerInputPacket : public Packet, public std::enable_shared_from_this<PlayerInputPacket>
{
private:

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class PreLoginPacket : public Packet, public enable_shared_from_this<PreLoginPacket>
class PreLoginPacket : public Packet, public std::enable_shared_from_this<PreLoginPacket>
{
// the login key is username client->server and sessionid server->client
public:

View file

@ -4,7 +4,7 @@ using namespace std;
#include "../../Util/BasicTypeContainers.h"
#include "Packet.h"
class RemoveEntitiesPacket : public Packet, public enable_shared_from_this<RemoveEntitiesPacket>
class RemoveEntitiesPacket : public Packet, public std::enable_shared_from_this<RemoveEntitiesPacket>
{
public:
static const int MAX_PER_PACKET = Byte::MAX_VALUE;

View file

@ -4,7 +4,7 @@ class MobEffectInstance;
#include "Packet.h"
class RemoveMobEffectPacket : public Packet, public enable_shared_from_this<RemoveMobEffectPacket>
class RemoveMobEffectPacket : public Packet, public std::enable_shared_from_this<RemoveMobEffectPacket>
{
public:
int entityId;

View file

@ -6,7 +6,7 @@ using namespace std;
class LevelType;
class GameType;
class RespawnPacket : public Packet, public enable_shared_from_this<RespawnPacket>
class RespawnPacket : public Packet, public std::enable_shared_from_this<RespawnPacket>
{
public:
char dimension;

View file

@ -4,7 +4,7 @@
#include "PacketListener.h"
#include "Packet.h"
class RotateHeadPacket : public Packet, public enable_shared_from_this<RotateHeadPacket>
class RotateHeadPacket : public Packet, public std::enable_shared_from_this<RotateHeadPacket>
{
public:
int id;

View file

@ -6,7 +6,7 @@ using namespace std;
#include "Packet.h"
class ServerSettingsChangedPacket : public Packet, public enable_shared_from_this<ServerSettingsChangedPacket>
class ServerSettingsChangedPacket : public Packet, public std::enable_shared_from_this<ServerSettingsChangedPacket>
{
public:
static const int HOST_DIFFICULTY;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class SetCarriedItemPacket : public Packet, public enable_shared_from_this<SetCarriedItemPacket>
class SetCarriedItemPacket : public Packet, public std::enable_shared_from_this<SetCarriedItemPacket>
{
public:
int slot;

View file

@ -2,7 +2,7 @@
#include "Packet.h"
class SetCreativeModeSlotPacket : public Packet, public enable_shared_from_this<SetCreativeModeSlotPacket>
class SetCreativeModeSlotPacket : public Packet, public std::enable_shared_from_this<SetCreativeModeSlotPacket>
{
public:
int slotNum;

View file

@ -4,7 +4,7 @@ using namespace std;
#include "Packet.h"
#include "../../Entities/SyncedEntityData.h"
class SetEntityDataPacket : public Packet, public enable_shared_from_this<SetEntityDataPacket>
class SetEntityDataPacket : public Packet, public std::enable_shared_from_this<SetEntityDataPacket>
{
public:
int id;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class SetEntityMotionPacket : public Packet, public enable_shared_from_this<SetEntityMotionPacket>
class SetEntityMotionPacket : public Packet, public std::enable_shared_from_this<SetEntityMotionPacket>
{
public:
int id;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class SetEquippedItemPacket : public Packet, public enable_shared_from_this<SetEquippedItemPacket>
class SetEquippedItemPacket : public Packet, public std::enable_shared_from_this<SetEquippedItemPacket>
{
public:
int entity;

View file

@ -2,7 +2,7 @@
#include "Packet.h"
class SetExperiencePacket : public Packet, public enable_shared_from_this<SetExperiencePacket>
class SetExperiencePacket : public Packet, public std::enable_shared_from_this<SetExperiencePacket>
{
public:
float experienceProgress;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class SetHealthPacket : public Packet, public enable_shared_from_this<SetHealthPacket>
class SetHealthPacket : public Packet, public std::enable_shared_from_this<SetHealthPacket>
{
public:
int health;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class SetRidingPacket : public Packet, public enable_shared_from_this<SetRidingPacket>
class SetRidingPacket : public Packet, public std::enable_shared_from_this<SetRidingPacket>
{
public:
int riderId, riddenId;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class SetSpawnPositionPacket : public Packet, public enable_shared_from_this<SetSpawnPositionPacket>
class SetSpawnPositionPacket : public Packet, public std::enable_shared_from_this<SetSpawnPositionPacket>
{
public:
int x, y, z;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class SetTimePacket : public Packet, public enable_shared_from_this<SetTimePacket>
class SetTimePacket : public Packet, public std::enable_shared_from_this<SetTimePacket>
{
public:
__int64 time;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class SignUpdatePacket : public Packet, public enable_shared_from_this<SignUpdatePacket>
class SignUpdatePacket : public Packet, public std::enable_shared_from_this<SignUpdatePacket>
{
public:
int x, y, z;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class TakeItemEntityPacket : public Packet, public enable_shared_from_this<TakeItemEntityPacket>
class TakeItemEntityPacket : public Packet, public std::enable_shared_from_this<TakeItemEntityPacket>
{
public:
int itemId, playerId;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class TeleportEntityPacket : public Packet, public enable_shared_from_this<TeleportEntityPacket>
class TeleportEntityPacket : public Packet, public std::enable_shared_from_this<TeleportEntityPacket>
{
public:
int id;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class TextureAndGeometryChangePacket : public Packet, public enable_shared_from_this<TextureAndGeometryChangePacket>
class TextureAndGeometryChangePacket : public Packet, public std::enable_shared_from_this<TextureAndGeometryChangePacket>
{
public:

View file

@ -7,7 +7,7 @@ using namespace std;
class DLCSkinFile;
class TextureAndGeometryPacket : public Packet, public enable_shared_from_this<TextureAndGeometryPacket>
class TextureAndGeometryPacket : public Packet, public std::enable_shared_from_this<TextureAndGeometryPacket>
{
public:
std::wstring textureName;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class TextureChangePacket : public Packet, public enable_shared_from_this<TextureChangePacket>
class TextureChangePacket : public Packet, public std::enable_shared_from_this<TextureChangePacket>
{
public:
enum ETextureChangeType

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class TexturePacket : public Packet, public enable_shared_from_this<TexturePacket>
class TexturePacket : public Packet, public std::enable_shared_from_this<TexturePacket>
{
public:
std::wstring textureName;

View file

@ -2,7 +2,7 @@
#include "Packet.h"
class TileDestructionPacket : public Packet, public enable_shared_from_this<TileDestructionPacket>
class TileDestructionPacket : public Packet, public std::enable_shared_from_this<TileDestructionPacket>
{
private:
int id;

View file

@ -5,7 +5,7 @@ using namespace std;
class CompoundTag;
class TileEntityDataPacket : public Packet, public enable_shared_from_this<TileEntityDataPacket>
class TileEntityDataPacket : public Packet, public std::enable_shared_from_this<TileEntityDataPacket>
{
public:
static const int TYPE_MOB_SPAWNER = 1;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class TileEventPacket : public Packet, public enable_shared_from_this<TileEventPacket>
class TileEventPacket : public Packet, public std::enable_shared_from_this<TileEventPacket>
{
public:
int x, y, z, b0, b1, tile;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class TileUpdatePacket : public Packet, public enable_shared_from_this<TileUpdatePacket>
class TileUpdatePacket : public Packet, public std::enable_shared_from_this<TileUpdatePacket>
{
public:
int x, y, z;

View file

@ -10,7 +10,7 @@ using namespace std;
#include <iostream>
#include "PacketListener.h"
class TradeItemPacket : public Packet, public enable_shared_from_this<TradeItemPacket>
class TradeItemPacket : public Packet, public std::enable_shared_from_this<TradeItemPacket>
{
public:
int containerId;

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class UpdateGameRuleProgressPacket : public Packet, public enable_shared_from_this<UpdateGameRuleProgressPacket>
class UpdateGameRuleProgressPacket : public Packet, public std::enable_shared_from_this<UpdateGameRuleProgressPacket>
{
public:
ConsoleGameRules::EGameRuleType m_definitionType;

View file

@ -4,7 +4,7 @@
class MobEffectInstance;
class UpdateMobEffectPacket : public Packet, public enable_shared_from_this<UpdateMobEffectPacket>
class UpdateMobEffectPacket : public Packet, public std::enable_shared_from_this<UpdateMobEffectPacket>
{
public:
int entityId;

View file

@ -5,7 +5,7 @@ using namespace std;
// 4J Added packet to update clients on the time for the host to finish doing something
class UpdateProgressPacket : public Packet, public enable_shared_from_this<UpdateProgressPacket>
class UpdateProgressPacket : public Packet, public std::enable_shared_from_this<UpdateProgressPacket>
{
public:

View file

@ -3,7 +3,7 @@ using namespace std;
#include "Packet.h"
class UseItemPacket : public Packet, public enable_shared_from_this<UseItemPacket>
class UseItemPacket : public Packet, public std::enable_shared_from_this<UseItemPacket>
{
private:
static const float CLICK_ACCURACY;

View file

@ -6,7 +6,7 @@ using namespace std;
#include "Packet.h"
class XZPacket : public Packet, public enable_shared_from_this<XZPacket>
class XZPacket : public Packet, public std::enable_shared_from_this<XZPacket>
{
public:
static const int STRONGHOLD;