mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Renamed to new horizons, updated to current versions of OWML and Outer Wilds, added BlackHoleBuilder, LavaBuilder, RingBuilder. Added support to modify existing planets with configs.
19 lines
457 B
C#
19 lines
457 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace NewHorizons.Utility
|
|
{
|
|
public static class NewHorizonsExtensions
|
|
{
|
|
public static MVector3 ToMVector3(this Vector3 vector3)
|
|
{
|
|
return new MVector3(vector3.x, vector3.y, vector3.z);
|
|
}
|
|
|
|
public static T GetSetting<T>(this Dictionary<string, object> dict, string settingName)
|
|
{
|
|
return (T)dict[settingName];
|
|
}
|
|
}
|
|
}
|