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