static void Postfix(CommuterChainController __result, StationController sourceStation) { if (NetworkManager.IsHost()) { NetworkJobsSync jobSync = sourceStation.GetComponent <NetworkJobsSync>(); if (jobSync != null) { jobSync.OnSingleChainGeneratedWithExistingCars(__result); } } }
static void Postfix(CommuterChainController __result, PassengerJobGenerator __instance, TrainCarsPerLogicTrack consistInfo = null) { if (NetworkManager.IsHost()) { if (__instance.Controller && __instance.Controller.GetComponent <NetworkJobsSync>()) { NetworkJobsSync jobSync = __instance.Controller.GetComponent <NetworkJobsSync>(); if (consistInfo != null) { jobSync.OnSingleChainGeneratedWithExistingCars(__result); } else { jobSync.OnSingleChainGenerated(__result); } } } }