mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-20 15:41:01 +00:00
cleanup
This commit is contained in:
parent
67a2f3688d
commit
5e21d7f8ed
@ -1,6 +1,5 @@
|
||||
using QSB.Patches;
|
||||
using QSB.Player;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
@ -32,15 +31,11 @@ namespace QSB.QuantumSync.Patches
|
||||
QSBCore.Helper.HarmonyHelper.Unpatch<Shape>("OnDisable");
|
||||
}
|
||||
|
||||
public static void Shape_OnEnable(Shape __instance)
|
||||
{
|
||||
QSBWorldSync.RaiseEvent(__instance, "OnShapeActivated", __instance);
|
||||
}
|
||||
public static void Shape_OnEnable(Shape __instance)
|
||||
=> QSBWorldSync.RaiseEvent(__instance, "OnShapeActivated", __instance);
|
||||
|
||||
public static void Shape_OnDisable(Shape __instance)
|
||||
{
|
||||
QSBWorldSync.RaiseEvent(__instance, "OnShapeDeactivated", __instance);
|
||||
}
|
||||
public static void Shape_OnDisable(Shape __instance)
|
||||
=> QSBWorldSync.RaiseEvent(__instance, "OnShapeDeactivated", __instance);
|
||||
|
||||
// ShapeVisibilityTracker patches
|
||||
|
||||
|
@ -5,7 +5,6 @@ using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.QuantumSync.WorldObjects
|
||||
{
|
||||
|
@ -87,8 +87,8 @@ namespace QSB.SectorSync
|
||||
return null;
|
||||
}
|
||||
|
||||
var listToCheck = SectorList.Count == 0
|
||||
? QSBWorldSync.GetWorldObjects<QSBSector>()
|
||||
var listToCheck = SectorList.Count == 0
|
||||
? QSBWorldSync.GetWorldObjects<QSBSector>()
|
||||
: SectorList;
|
||||
return listToCheck
|
||||
.Where(sector => sector.AttachedObject != null
|
||||
|
@ -19,10 +19,10 @@ namespace QSB.WorldSync
|
||||
public static List<FactReveal> ShipLogFacts { get; } = new List<FactReveal>();
|
||||
|
||||
private static readonly List<IWorldObject> WorldObjects = new List<IWorldObject>();
|
||||
private const BindingFlags Flags = BindingFlags.Instance
|
||||
| BindingFlags.Static
|
||||
| BindingFlags.Public
|
||||
| BindingFlags.NonPublic
|
||||
private const BindingFlags Flags = BindingFlags.Instance
|
||||
| BindingFlags.Static
|
||||
| BindingFlags.Public
|
||||
| BindingFlags.NonPublic
|
||||
| BindingFlags.DeclaredOnly;
|
||||
|
||||
public static IEnumerable<TWorldObject> GetWorldObjects<TWorldObject>()
|
||||
|
Loading…
x
Reference in New Issue
Block a user