mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
17 lines
481 B
C#
17 lines
481 B
C#
using OWML.ModHelper.Events;
|
|
using System.Reflection;
|
|
using UnityEngine;
|
|
|
|
namespace Marshmallow.General
|
|
{
|
|
static class MakeMapMarker
|
|
{
|
|
public static void Make(GameObject body)
|
|
{
|
|
var MM = body.AddComponent<MapMarker>();
|
|
MM.SetValue("_labelID", UITextType.YouAreDeadMessage);
|
|
MM.SetValue("_markerType", MM.GetType().GetNestedType("MarkerType", BindingFlags.NonPublic).GetField("Planet").GetValue(MM));
|
|
}
|
|
}
|
|
}
|