Skip to content

Commit 125332f

Browse files
committed
Refactor patches into category folders
1 parent e317405 commit 125332f

File tree

9 files changed

+10
-11
lines changed

9 files changed

+10
-11
lines changed

TABGVR/Patches/CameraMovementPatch.cs renamed to TABGVR/Patches/CameraPatches/CameraMovementPatch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.Reflection.Emit;
44
using HarmonyLib;
55

6-
namespace TABGVR.Patches;
6+
namespace TABGVR.Patches.CameraPatches;
77

88
[HarmonyPatch(typeof(CameraMovement))]
99
public class CameraMovementPatch

TABGVR/Patches/CameraPatch.cs renamed to TABGVR/Patches/CameraPatches/CameraPatch.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using UnityEngine.Rendering.PostProcessing;
88
using UnityEngine.SpatialTracking;
99

10-
namespace TABGVR.Patches;
10+
namespace TABGVR.Patches.CameraPatches;
1111

1212
[HarmonyPatch(typeof(PlayerCamera))]
1313
public class CameraPatch
@@ -39,7 +39,7 @@ public static void Start(PlayerCamera __instance)
3939

4040
__instance.enabled = false;
4141

42-
var camera = gameObject.AddComponent<Camera>();
42+
var camera = gameObject.AddComponent<UnityEngine.Camera>();
4343
camera.stereoTargetEye = StereoTargetEyeMask.Both;
4444
camera.enabled = true;
4545
camera.nearClipPlane = 0.01f;

TABGVR/Patches/KinematicsPatch.cs renamed to TABGVR/Patches/Interactions/KinematicsPatch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using UnityEngine;
99
using UnityEngine.XR;
1010

11-
namespace TABGVR.Patches;
11+
namespace TABGVR.Patches.Interactions;
1212

1313
[HarmonyPatch(typeof(Holding))]
1414
internal class KinematicsPatch

TABGVR/Patches/SwapWeaponPatch.cs renamed to TABGVR/Patches/Interactions/SwapWeaponPatch.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
using System.Collections.Generic;
2-
using System.Linq;
32
using System.Reflection.Emit;
43
using HarmonyLib;
54
using TABGInput;
65
using TABGVR.Player;
76

8-
namespace TABGVR.Patches;
7+
namespace TABGVR.Patches.Interactions;
98

109
[HarmonyPatch(typeof(InteractionHandler), nameof(InteractionHandler.StartPickup), MethodType.Enumerator)]
1110
public static class SwapWeaponPatch

TABGVR/Patches/ThrowingPatch.cs renamed to TABGVR/Patches/Interactions/ThrowingPatch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
using HarmonyLib;
1313
using TABGVR.Player;
1414

15-
namespace TABGVR.Patches;
15+
namespace TABGVR.Patches.Interactions;
1616

1717
// [HarmonyPatch(typeof(InteractionHandler), nameof(InteractionHandler.Throwing), MethodType.Enumerator)]
1818
// [HarmonyDebug]

TABGVR/Patches/AntiCheatBypass.cs renamed to TABGVR/Patches/Misc/AntiCheatBypass.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using HarmonyLib;
33
using Landfall;
44

5-
namespace TABGVR.Patches;
5+
namespace TABGVR.Patches.Misc;
66

77
public class AntiCheatBypass
88
{

TABGVR/Patches/NetworkEventPatch.cs renamed to TABGVR/Patches/Networking/NetworkEventPatch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using TABGVR.Network;
55
using UnityEngine;
66

7-
namespace TABGVR.Patches;
7+
namespace TABGVR.Patches.Networking;
88

99
[HarmonyPatch(typeof(ServerConnector), nameof(ServerConnector.OnEvent))]
1010
public class NetworkEventPatch

TABGVR/Patches/MainMenuCameraPatch.cs renamed to TABGVR/Patches/UI/MainMenuCameraPatch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using UnityEngine.Rendering.PostProcessing;
66
using UnityEngine.SpatialTracking;
77

8-
namespace TABGVR.Patches;
8+
namespace TABGVR.Patches.UI;
99

1010
[HarmonyPatch(typeof(CameraIdleMovement), nameof(CameraIdleMovement.Start))]
1111
public static class MainMenuCameraPatch

TABGVR/Plugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using BepInEx;
22
using BepInEx.Logging;
33
using HarmonyLib;
4-
using TABGVR.Patches;
4+
using TABGVR.Patches.Misc;
55
using TABGVR.Player;
66
using TABGVR.Util;
77
using UnityEngine.SceneManagement;

0 commit comments

Comments
 (0)