Exemplo n.º 1
0
        public IAsyncGRingNodeListener CreateNewListener(Ring1Node node, FlatLod flatLod)
        {
            var inGamePosition = _coordsCalculator.CalculateGlobalObjectPosition(node.Ring1Position);

            GRingTerrainMeshProvider terrainMeshProvider = new GRingTerrainMeshProvider(
                _meshGenerator,
                flatLod,
                _terrainMeshProviderConfiguration
                );
            GRingGroundShapeProvider groundShapeProvider = new GRingGroundShapeProvider(
                _terrainShapeDb,
                flatLod,
                inGamePosition,
                _spotUpdater,
                _groundShapeProviderConfiguration);

            GRing1SurfaceProvider surfaceProvider = new GRing1SurfaceProvider(
                _stainTerrainServiceProxy,
                inGamePosition);

            GRingTripletProvider tripletProvider = new GRingTripletProvider(
                inGamePosition, Repositioner.Default, HeightDenormalizer.Default);

            return(new GRingNodeTerrain(
                       _orderGrabber,
                       _parentObject,
                       terrainMeshProvider,
                       groundShapeProvider,
                       surfaceProvider,
                       tripletProvider,
                       flatLod,
                       new GRingWeldingUpdater(_weldingPack)
                       ));
        }
Exemplo n.º 2
0
        public IAsyncGRingNodeListener CreateNewListener(Ring1Node node, FlatLod flatLod)
        {
            var inGamePosition = _coordsCalculator.CalculateGlobalObjectPosition(node.Ring1Position);

            GRingTripletProvider tripletProvider = new GRingTripletProvider(
                inGamePosition, Repositioner.Default, HeightDenormalizer.Default);

            return(new GDebugLodNodeTerrain(_orderGrabber, _parentObject, tripletProvider, flatLod,
                                            _meshGeneratorUtProxy));
        }
Exemplo n.º 3
0
 public GDebugLodNodeTerrain(
     Ring1PaintingOrderGrabber orderGrabber,
     GameObject parentObject,
     GRingTripletProvider tripletProvider,
     FlatLod flatLod,
     MeshGeneratorUTProxy meshGeneratorUtProxy)
 {
     _orderGrabber         = orderGrabber;
     _parentObject         = parentObject;
     _tripletProvider      = tripletProvider;
     _flatLod              = flatLod;
     _meshGeneratorUtProxy = meshGeneratorUtProxy;
 }
Exemplo n.º 4
0
        public IAsyncGRingNodeListener CreateNewListener(Ring1Node node, FlatLod flatLod)
        {
            var inGamePosition = _coordsCalculator.CalculateGlobalObjectPosition(node.Ring1Position);

            GRingTripletProvider tripletProvider = new GRingTripletProvider(
                inGamePosition, Repositioner.Default, HeightDenormalizer.Default);

            GRingGroundShapeProvider groundShapeProvider = new GRingGroundShapeProvider(
                _terrainShapeDb,
                flatLod,
                inGamePosition,
                _gRingSpotUpdater,
                _groundShapeProviderConfiguration);

            return(new GDebugTerrainedLodNodeTerrain(
                       _orderGrabber, _parentObject, tripletProvider, flatLod, _meshGeneratorUtProxy, groundShapeProvider));
        }
Exemplo n.º 5
0
 public GRingNodeTerrain(
     Ring1PaintingOrderGrabber orderGrabber,
     GameObject parentObject,
     GRingTerrainMeshProvider terrainMeshProvider,
     GRingGroundShapeProvider groundShapeProvider,
     IGRingSurfaceProvider surfaceProvider,
     GRingTripletProvider tripletProvider,
     FlatLod flatLod, GRingWeldingUpdater weldingUpdater)
 {
     _orderGrabber        = orderGrabber;
     _parentObject        = parentObject;
     _terrainMeshProvider = terrainMeshProvider;
     _groundShapeProvider = groundShapeProvider;
     _surfaceProvider     = surfaceProvider;
     _tripletProvider     = tripletProvider;
     _flatLod             = flatLod;
     _weldingUpdater      = weldingUpdater;
 }