migrate ALMOST everything from source tree into client

This commit is contained in:
riall
2023-08-05 05:00:55 -04:00
committed by GitHub
parent 458a857569
commit ebe5f127e6
189 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
/********************************************************************
Minecraft: Pocket Edition - Decompilation Project
Copyright (C) 2023 iProgramInCpp
The following code is licensed under the BSD 1 clause license.
SPDX-License-Identifier: BSD-1-Clause
********************************************************************/
#pragma once
#include "RakNetTypes.h"
#include "Packet.hpp"
class Packet;
class LoginPacket;
class MessagePacket;
class StartGamePacket;
class AddPlayerPacket;
class RemoveEntityPacket;
class MovePlayerPacket;
class PlaceBlockPacket;
class RemoveBlockPacket;
class UpdateBlockPacket;
class RequestChunkPacket;
class ChunkDataPacket;
class PlayerEquipmentPacket;
#include "Level.hpp"
class Level;
class NetEventCallback
{
public:
virtual ~NetEventCallback() {}
virtual void levelGenerated(Level*);
virtual void onConnect(const RakNet::RakNetGUID&);
virtual void onUnableToConnect();
virtual void onNewClient(const RakNet::RakNetGUID&);
virtual void onDisconnect(const RakNet::RakNetGUID&);
virtual void handle(const RakNet::RakNetGUID&, LoginPacket*);
virtual void handle(const RakNet::RakNetGUID&, MessagePacket*);
virtual void handle(const RakNet::RakNetGUID&, StartGamePacket*);
virtual void handle(const RakNet::RakNetGUID&, AddPlayerPacket*);
virtual void handle(const RakNet::RakNetGUID&, RemoveEntityPacket*);
virtual void handle(const RakNet::RakNetGUID&, MovePlayerPacket*);
virtual void handle(const RakNet::RakNetGUID&, PlaceBlockPacket*);
virtual void handle(const RakNet::RakNetGUID&, RemoveBlockPacket*);
virtual void handle(const RakNet::RakNetGUID&, UpdateBlockPacket*);
virtual void handle(const RakNet::RakNetGUID&, RequestChunkPacket*);
virtual void handle(const RakNet::RakNetGUID&, ChunkDataPacket*);
virtual void handle(const RakNet::RakNetGUID&, PlayerEquipmentPacket*);
};