public static void Postfix(FCSConnectableDevice __instance)
 {
     if (onSeaBreezeAdded != null && __instance.GetTechType() == Mod.SeabeezeTechType())
     {
         onSeaBreezeAdded.Invoke(__instance);
     }
 }
示例#2
0
 private void OnFCSDeviceAwake(FCSConnectableDevice obj)
 {
     QuickLogger.Debug($"New Connectable Device: TechType to check {Mod.ExStorageTechType()} || Object TechType == {obj.GetTechType()}", true);
     if (_storagesList.Contains(obj) || obj.GetTechType() != Mod.ExStorageTechType())
     {
         return;
     }
     if (!CheckIfInRange(obj))
     {
         return;
     }
     QuickLogger.Debug("New Connectable Device in range", true);
     _storagesList.Add(obj);
 }