mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
25 lines
666 B
C#
25 lines
666 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace NewHorizons.AchievementsPlus.NH
|
|
{
|
|
public static class VesselWarpAchievement
|
|
{
|
|
public static readonly string UNIQUE_ID = "NH_VESSEL_WARP";
|
|
|
|
public static void Init()
|
|
{
|
|
AchievementHandler.Register(UNIQUE_ID, false, Main.Instance);
|
|
Main.Instance.OnChangeStarSystem.AddListener(OnChangeStarSystem);
|
|
}
|
|
|
|
private static void OnChangeStarSystem(string system)
|
|
{
|
|
if (Main.Instance.IsWarpingFromVessel) AchievementHandler.Earn(UNIQUE_ID);
|
|
}
|
|
}
|
|
}
|