Terrain Generation/ru: Difference between revisions

From Vintage Story Wiki
Created page with "# Все активы в <code>worldgen/deposits/</code> загружены и проанализированы. ## Генератор перебирает все депози..."
(Created page with "=== Депозиты === Депозиты обрабатываются в [https://github.com/anegostudios/vssurvivalmod/blob/master/Systems/WorldGen/Standard/ChunkGen/5.GenDe...")
(Created page with "# Все активы в <code>worldgen/deposits/</code> загружены и проанализированы. ## Генератор перебирает все депози...")
Line 64: Line 64:
Депозиты обрабатываются в [https://github.com/anegostudios/vssurvivalmod/blob/master/Systems/WorldGen/Standard/ChunkGen/5.GenDeposits/GenDeposits.cs <code>GenDeposits.cs</code>] в режиме выживания. Код месторождений касается не только руды в горных породах. Процесс добычи руды состоит из многих этапов.
Депозиты обрабатываются в [https://github.com/anegostudios/vssurvivalmod/blob/master/Systems/WorldGen/Standard/ChunkGen/5.GenDeposits/GenDeposits.cs <code>GenDeposits.cs</code>] в режиме выживания. Код месторождений касается не только руды в горных породах. Процесс добычи руды состоит из многих этапов.


# All assets in <code>worldgen/deposits/</code> are loaded and parsed.
# Все активы в <code>worldgen/deposits/</code> загружены и проанализированы.
## The generator goes over all deposits and adds them to a list.
## Генератор перебирает все депозиты и добавляет их в список.
## If there are any child deposits, they are registered.
## Если есть дочерние депозиты, они регистрируются.
# A deposit shape distortion map is created. This is used when initializing deposits.
# Создается карта искажения формы залежи. Это используется при инициализации депозитов.
# The generator goes over all registered deposits.
# Генератор перебирает все зарегистрированные депозиты.
## Each deposit variant is initialized with a random seed and the deposit shape distortion map. This init process is the same for all deposits and is used only to simplify the code.
## Каждый вариант месторождения инициализируется случайным начальным числом и картой искажения формы месторождения. Этот процесс инициализации одинаков для всех депозитов и используется только для упрощения кода.
## If the deposit variant uses an ore map, one is created for it. Each kind of deposit gets its own ore map.
## Если вариант месторождения использует карту руды, она создается для него. Каждому виду месторождения соответствует своя рудная карта.
## If there are any child deposits that also use an ore map, one is created for the child deposit.
## Если есть какие-либо дочерние месторождения, которые также используют карту руды, она создается для дочернего месторождения.


This is the end of what is done in <code>GenDeposits</code>. When a new world region is generated, <code>GenDeposits</code> calls <code>.OnMapRegionGen</code> on each deposit variant.
This is the end of what is done in <code>GenDeposits</code>. When a new world region is generated, <code>GenDeposits</code> calls <code>.OnMapRegionGen</code> on each deposit variant.
Confirmedusers
13,514

edits