Class RailPlatformDrawer
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
[Obsolete("Replace this drawer with the more generic ModularIslandMeshDrawer")]
public class RailPlatformDrawer : IIslandPlatformDrawer
- Inheritance
-
objectRailPlatformDrawer
- Implements
- Extension Methods
Constructors
RailPlatformDrawer(IIslandModelAccessor, IReadOnlyList<EntityIO<LocalChunkPivot, IRailIslandInputConnector>>, IReadOnlyList<EntityIO<LocalChunkPivot, IRailIslandOutputConnector>>, TrainsVisualResources, IReadOnlyRailColorRegistry)
public RailPlatformDrawer(IIslandModelAccessor map, IReadOnlyList<EntityIO<LocalChunkPivot, IRailIslandInputConnector>> inputs, IReadOnlyList<EntityIO<LocalChunkPivot, IRailIslandOutputConnector>> outputs, TrainsVisualResources resources, IReadOnlyRailColorRegistry railColorRegistry)
Parameters
mapIIslandModelAccessorinputsIReadOnlyList<EntityIO<LocalChunkPivot, IRailIslandInputConnector>>outputsIReadOnlyList<EntityIO<LocalChunkPivot, IRailIslandOutputConnector>>resourcesTrainsVisualResourcesrailColorRegistryIReadOnlyRailColorRegistry
Methods
Draw(FrameDrawOptions, in GlobalChunkTransform, IIslandConfiguration, LODMaterialAsset, float3)
public void Draw(FrameDrawOptions drawOptions, in GlobalChunkTransform transform, IIslandConfiguration islandConfiguration, LODMaterialAsset materialProvider, float3 scale)
Parameters
drawOptionsFrameDrawOptionstransformGlobalChunkTransformislandConfigurationIIslandConfigurationmaterialProviderLODMaterialAssetscalefloat3
DrawBlueprint(FrameDrawOptions, in GlobalChunkTransform, IIslandConfiguration, MaterialPropertyBlock, PropertyBlockHash, float3)
public void DrawBlueprint(FrameDrawOptions drawOptions, in GlobalChunkTransform transform, IIslandConfiguration islandConfiguration, MaterialPropertyBlock propertyBlock, PropertyBlockHash propertyBlockHash, float3 scale)
Parameters
drawOptionsFrameDrawOptionstransformGlobalChunkTransformislandConfigurationIIslandConfigurationpropertyBlockMaterialPropertyBlockpropertyBlockHashPropertyBlockHashscalefloat3
DrawBlueprintNonInstanced(FrameDrawOptions, in GlobalChunkTransform, IIslandConfiguration, MaterialPropertyBlock, float3)
public void DrawBlueprintNonInstanced(FrameDrawOptions drawOptions, in GlobalChunkTransform transform, IIslandConfiguration islandConfiguration, MaterialPropertyBlock propertyBlock, float3 scale)
Parameters
drawOptionsFrameDrawOptionstransformGlobalChunkTransformislandConfigurationIIslandConfigurationpropertyBlockMaterialPropertyBlockscalefloat3
DrawOverview(MeshBuilder, in GlobalChunkTransform)
public void DrawOverview(MeshBuilder builder, in GlobalChunkTransform transform)
Parameters
builderMeshBuildertransformGlobalChunkTransform