Skip to content

Commit

Permalink
Use native vector operators
Browse files Browse the repository at this point in the history
  • Loading branch information
timoschwarzer committed Aug 8, 2024
1 parent 9ae31e9 commit 3ff995a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion projects/Core/input/simulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

using namespace app::classes;
using namespace app::classes::SmartInput;
using namespace UnityEngine::Vector3::operators;

namespace core::input {
struct SimulatedButtonEntry {
Expand Down
1 change: 1 addition & 0 deletions projects/Core/property/property_non_uber_state.inl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <Modloader/app/structs/Vector2.h>
#include <Modloader/app/structs/Vector3.h>
#include <Modloader/il2cpp_math.h>

#include <Core/property/reactivity.h>

Expand Down
5 changes: 2 additions & 3 deletions projects/Randomizer/game/camera_shake.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#include <Modloader/interception_macros.h>
#include <Modloader/app/methods/Moon/Timeline/CameraShakeAnimator.h>
#include <Modloader/app/methods/CameraShake.h>
#include <Modloader/app/methods/UnityEngine/Vector3.h>
#include <Core/settings.h>
#include <Modloader/il2cpp_math.h>

using namespace app::classes;
using namespace UnityEngine::Vector3::operators;

namespace {
IL2CPP_INTERCEPT(Moon::Timeline::CameraShakeAnimator, float, get_ModifiedStrength, (app::CameraShakeAnimator* this_ptr)) {
Expand All @@ -27,4 +26,4 @@ namespace {
IL2CPP_INTERCEPT(CameraShake, float, get_Duration, (app::CameraShake* this_ptr)) {
return next::CameraShake::get_Duration(this_ptr) * core::settings::camera_shake_intensity();
}
}
}

0 comments on commit 3ff995a

Please sign in to comment.