Skip to content

Commit

Permalink
refactor: move some headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Aug 5, 2024
1 parent 779ebce commit 0833b7e
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/legacy/api/BlockEntityAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include "api/BlockAPI.h"
#include "api/NativeAPI.h"
#include "api/NbtAPI.h"
#include "legacy/api/MoreGlobal.h"
#include "ll/api/service/Bedrock.h"
#include "lse/api/MoreGlobal.h"
#include "main/Global.h"
#include "mc/dataloadhelper/DefaultDataLoadHelper.h"
#include "mc/nbt/CompoundTag.h"
Expand All @@ -15,6 +15,7 @@
#include "mc/world/level/block/actor/BlockActor.h"
#include "mc/world/level/dimension/Dimension.h"


//////////////////// Class Definition ////////////////////

ClassDefine<BlockEntityClass> BlockEntityClassBuilder = defineClass<BlockEntityClass>("LLSE_BlockEntity")
Expand Down
3 changes: 2 additions & 1 deletion src/legacy/api/EntityAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#include "api/NativeAPI.h"
#include "api/NbtAPI.h"
#include "api/PlayerAPI.h"
#include "legacy/api/MoreGlobal.h"
#include "ll/api/memory/Memory.h"
#include "ll/api/service/Bedrock.h"
#include "lse/api/MoreGlobal.h"
#include "mc/common/HitDetection.h"
#include "mc/dataloadhelper/DefaultDataLoadHelper.h"
#include "mc/deps/core/string/HashedString.h"
Expand Down Expand Up @@ -46,6 +46,7 @@
#include <mc/world/level/material/Material.h>
#include <mc/world/phys/AABB.h>


using magic_enum::enum_integer;

//////////////////// Class Definition ////////////////////
Expand Down
5 changes: 1 addition & 4 deletions src/legacy/api/EventAPI.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "api/EventAPI.h"

#include "../engine/LocalShareData.h"
#include "../engine/TimeTaskSystem.h"
#include "../main/BuiltinCommands.h"
#include "BaseAPI.h"
#include "BlockAPI.h"
Expand All @@ -13,7 +12,6 @@
#include "api/PlayerAPI.h"
#include "engine/EngineOwnData.h"
#include "engine/GlobalShareData.h"
#include "legacy/events/EventHooks.h"
#include "legacy/main/NodeJsHelper.h"
#include "legacy/main/PythonHelper.h"
#include "ll/api/chrono/GameChrono.h"
Expand Down Expand Up @@ -45,7 +43,7 @@
#include "ll/api/schedule/Scheduler.h"
#include "ll/api/schedule/Task.h"
#include "ll/api/service/Bedrock.h"
#include "ll/api/utils/StringUtils.h"
#include "lse/events/EventHooks.h"
#include "main/Global.h"
#include "mc/entity/utilities/ActorType.h"
#include "mc/server/commands/CommandOriginType.h"
Expand All @@ -55,7 +53,6 @@
#include "mc/world/level./BlockSource.h"
#include "mc/world/level/dimension/Dimension.h"

#include <exception>
#include <list>
#include <shared_mutex>
#include <string>
Expand Down
3 changes: 2 additions & 1 deletion src/legacy/api/PlayerAPI.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "api/PlayerAPI.h"

#include "EventAPI.h"
#include "MoreGlobal.h"
#include "ScriptX/ScriptX.h"
#include "api/APIHelp.h"
#include "api/BaseAPI.h"
Expand All @@ -25,6 +24,7 @@
#include "ll/api/service/Bedrock.h"
#include "ll/api/service/PlayerInfo.h"
#include "ll/api/service/ServerInfo.h"
#include "lse/api/MoreGlobal.h"
#include "lse/api/NetworkPacket.h"
#include "main/EconomicSystem.h"
#include "main/SafeGuardRecord.h"
Expand Down Expand Up @@ -99,6 +99,7 @@
#include <unordered_map>
#include <vector>


//////////////////// Class Definition ////////////////////

ClassDefine<PlayerClass> PlayerClassBuilder =
Expand Down
3 changes: 2 additions & 1 deletion src/lse/Entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#include "Config.h"
#include "PluginManager.h"
#include "PluginMigration.h"
#include "legacy/api/MoreGlobal.h"
#include "legacy/engine/EngineManager.h"
#include "legacy/main/EconomicSystem.h"
#include "lse/api/MoreGlobal.h"

#include <ScriptX/ScriptX.h>
#include <exception>
Expand All @@ -23,6 +23,7 @@
#include <processenv.h>
#include <stdexcept>


#ifdef LEGACY_SCRIPT_ENGINE_BACKEND_LUA

constexpr auto BaseLibFileName = "BaseLib.lua";
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0833b7e

Please sign in to comment.