mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
22 lines
671 B
C#
22 lines
671 B
C#
using NewHorizons.Components.Volumes;
|
|
using NewHorizons.External.Modules;
|
|
using OWML.Utils;
|
|
using UnityEngine;
|
|
|
|
namespace NewHorizons.Builder.Volumes
|
|
{
|
|
internal static class CreditsVolumeBuilder
|
|
{
|
|
public static LoadCreditsVolume Make(GameObject planetGO, Sector sector, VolumesModule.LoadCreditsVolumeInfo info)
|
|
{
|
|
var volume = VolumeBuilder.Make<LoadCreditsVolume>(planetGO, sector, info);
|
|
|
|
volume.creditsType = info.creditsType;
|
|
volume.gameOverText = info.gameOverText;
|
|
volume.deathType = EnumUtils.Parse(info.deathType.ToString(), DeathType.Default);
|
|
|
|
return volume;
|
|
}
|
|
}
|
|
}
|