Skip to content

Commit

Permalink
refactor: move network headers to bedrock/network
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed May 27, 2024
1 parent d9a79b2 commit 16f5c46
Show file tree
Hide file tree
Showing 25 changed files with 24 additions and 24 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

enum class MinecraftPacketIds {
Text = 9,
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <memory>

#include "bedrock/bedrock.h"
#include "bedrock/network/protocol/packet.h"
#include "bedrock/network/packet.h"

class MinecraftPackets {
public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
#pragma once

#include "bedrock/forward.h"
#include "bedrock/network/compressibility.h"
#include "bedrock/network/minecraft_packet_ids.h"
#include "bedrock/network/network_peer.h"
#include "bedrock/network/protocol/compressibility.h"
#include "bedrock/network/protocol/minecraft_packet_ids.h"
#include "bedrock/network/protocol/sub_client_id.h"
#include "bedrock/network/raknet/packet_priority.h"
#include "bedrock/network/sub_client_id.h"

class Packet {
public:
Expand Down
2 changes: 1 addition & 1 deletion include/bedrock/network/packet/available_commands_packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <string>
#include <vector>

#include "bedrock/network/protocol/packet.h"
#include "bedrock/network/packet.h"
#include "bedrock/server/commands/command_flag.h"
#include "bedrock/server/commands/command_permission_level.h"

Expand Down
2 changes: 1 addition & 1 deletion include/bedrock/network/packet/start_game_packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "bedrock/forward.h"
#include "bedrock/mce.h"
#include "bedrock/nbt/compound_tag.h"
#include "bedrock/network/protocol/packet.h"
#include "bedrock/network/packet.h"
#include "bedrock/network/syncher/synced_player_movement_settings.h"
#include "bedrock/server/packs/content_identity.h"
#include "bedrock/world/actor/actor_runtime_id.h"
Expand Down
2 changes: 1 addition & 1 deletion include/bedrock/network/packet/text_packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <string>
#include <vector>

#include "bedrock/network/protocol/packet.h"
#include "bedrock/network/packet.h"

enum class TextPacketType : char {
Raw = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#pragma once

#include "bedrock/network/protocol/packet.h"
#include "bedrock/network/packet.h"

class PacketSender {
public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

#include "bedrock/bedrock.h"
#include "bedrock/memory.h"
#include "bedrock/network/protocol/connection.h"
#include "bedrock/network/protocol/net_event_callback.h"
#include "bedrock/network/connection.h"
#include "bedrock/network/net_event_callback.h"
#include "bedrock/server/level/server_player.h"
#include "bedrock/social.h"
#include "bedrock/threading.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <cstdint>
#include <unordered_set>

#include "bedrock/network/syncher/move_actor_absolute_data.h"
#include "bedrock/network/packet/move_actor_absolute_data.h"
#include "bedrock/world/actor/actor_unique_id.h"

class Actor;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion include/bedrock/server/commands/command_origin.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "bedrock/mce.h"
#include "bedrock/memory.h"
#include "bedrock/network/network_identifier.h"
#include "bedrock/network/protocol/sub_client_id.h"
#include "bedrock/network/sub_client_id.h"
#include "bedrock/server/commands/command_origin_data.h"
#include "bedrock/server/commands/command_origin_identity.h"
#include "bedrock/server/commands/command_origin_type.h"
Expand Down
2 changes: 1 addition & 1 deletion include/bedrock/world/actor/actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "bedrock/hashed_string.h"
#include "bedrock/mce.h"
#include "bedrock/memory.h"
#include "bedrock/network/syncher/spatial_actor_network_data.h"
#include "bedrock/network/spatial_actor_network_data.h"
#include "bedrock/network/syncher/synched_actor_data_entity_wrapper.h"
#include "bedrock/server/commands/command_permission_level.h"
#include "bedrock/world/actor/actor_category.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

#include <entt/entt.hpp>

#include "bedrock/certificates/certificate.h"
#include "bedrock/mce.h"
#include "bedrock/network/network_identifier.h"
#include "bedrock/network/protocol/certificate.h"
#include "bedrock/network/protocol/sub_client_id.h"
#include "bedrock/network/sub_client_id.h"

class UserEntityIdentifierComponent {
public:
Expand Down
2 changes: 1 addition & 1 deletion include/bedrock/world/actor/player/player.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <memory>

#include "bedrock/bedrock.h"
#include "bedrock/network/protocol/packet_sender.h"
#include "bedrock/network/packet_sender.h"
#include "bedrock/server/commands/command_permission_level.h"
#include "bedrock/world/actor/mob/mob.h"
#include "bedrock/world/level/event/event_coordinator.h"
Expand Down
2 changes: 1 addition & 1 deletion include/bedrock/world/item/item_stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#pragma once

#include "bedrock/bedrock.h"
#include "bedrock/network/item/item_stack_net_id_variant.h"
#include "bedrock/world/inventory/network/item_stack_net_id_variant.h"
#include "bedrock/world/item/item_stack_base.h"

class ItemStack : public ItemStackBase {
Expand Down
4 changes: 2 additions & 2 deletions include/bedrock/world/level/level_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#include "bedrock/forward.h"
#include "bedrock/mce.h"
#include "bedrock/memory.h"
#include "bedrock/network/protocol/net_event_callback.h"
#include "bedrock/network/protocol/packet_sender.h"
#include "bedrock/network/net_event_callback.h"
#include "bedrock/network/packet_sender.h"
#include "bedrock/server/commands/command_origin.h"
#include "bedrock/server/commands/command_registry.h"
#include "bedrock/server/player_list_entry.h"
Expand Down
4 changes: 2 additions & 2 deletions src/endstone_core/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

#include "endstone/detail/player.h"

#include "bedrock/network/minecraft_packets.h"
#include "bedrock/network/packet/text_packet.h"
#include "bedrock/network/protocol/minecraft_packets.h"
#include "bedrock/network/raknet/rak_peer_interface.h"
#include "bedrock/network/server_network_handler.h"
#include "bedrock/server/commands/command_origin_data.h"
#include "bedrock/server/commands/command_origin_loader.h"
#include "bedrock/server/commands/command_position.h"
#include "bedrock/server/network/server_network_handler.h"
#include "bedrock/world/actor/components/user_entity_identifier_component.h"
#include "bedrock/world/actor/player/player.h"
#include "bedrock/world/level/game_type.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "bedrock/network/protocol/minecraft_packets.h"
#include "bedrock/network/minecraft_packets.h"

#include "endstone/detail/hook.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "bedrock/server/network/server_network_handler.h"
#include "bedrock/network/server_network_handler.h"

#include <entt/entt.hpp>

Expand Down

0 comments on commit 16f5c46

Please sign in to comment.