new-horizons/NewHorizons/Builder/Volumes/DestructionVolumeBuilder.cs
2023-03-25 13:44:31 -04:00

19 lines
543 B
C#

using NewHorizons.External.Modules.Volumes;
using OWML.Utils;
using UnityEngine;
namespace NewHorizons.Builder.Volumes
{
public static class DestructionVolumeBuilder
{
public static DestructionVolume Make(GameObject planetGO, Sector sector, DestructionVolumeInfo info)
{
var volume = VanishVolumeBuilder.Make<DestructionVolume>(planetGO, sector, info);
volume._deathType = EnumUtils.Parse<DeathType>(info.deathType.ToString(), DeathType.Default);
return volume;
}
}
}