Class TrainDeliverySystem
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
public class TrainDeliverySystem : ITrainLaunchIntoHubRuleProvider, IShapeCollectorSystem
- Inheritance
-
objectTrainDeliverySystem
- Implements
- Extension Methods
Constructors
TrainDeliverySystem(IIslandModelAccessor, ResearchUnlockProgressManager, TrainsSimulation, int, int, int, ResearchMechanicId, IslandDefinitionId, IslandDefinitionId, ITrainNavigationSimulationConfig, ILogger)
public TrainDeliverySystem(IIslandModelAccessor islandAccessor, ResearchUnlockProgressManager researchProgress, TrainsSimulation trainsSimulator, int minLauncherRange, int maxLauncherRange, int maxIslandLayer, ResearchMechanicId launchIntoHubMechanicId, IslandDefinitionId hubIslandDefinitionId, IslandDefinitionId trainLauncherDefinitionId, ITrainNavigationSimulationConfig trainNavigationConfig, ILogger logger)
Parameters
islandAccessorIIslandModelAccessorresearchProgressResearchUnlockProgressManagertrainsSimulatorTrainsSimulationminLauncherRangeintmaxLauncherRangeintmaxIslandLayerintlaunchIntoHubMechanicIdResearchMechanicIdhubIslandDefinitionIdIslandDefinitionIdtrainLauncherDefinitionIdIslandDefinitionIdtrainNavigationConfigITrainNavigationSimulationConfigloggerILogger
Methods
CanLaunchIntoHub(GlobalChunkCoordinate, ChunkDirection, out int)
public bool CanLaunchIntoHub(GlobalChunkCoordinate launcherPosition, ChunkDirection launcherDirection, out int distance)
Parameters
launcherPositionGlobalChunkCoordinatelauncherDirectionChunkDirectiondistanceint
Returns
- bool
Dispose()
public void Dispose()