Skip to content

Instantly share code, notes, and snippets.

@hldh214
Created November 9, 2018 13:40
Show Gist options
  • Save hldh214/6eae945d6a146c154f66e4ac67e09075 to your computer and use it in GitHub Desktop.
Save hldh214/6eae945d6a146c154f66e4ac67e09075 to your computer and use it in GitHub Desktop.
namespace SkylinesMod
{
public class EnableAchievements : IUserMod
{
public string Name
{
get { return "Enable Achievements"; }
}
public string Description
{
get { return "Enables achievements when mods are loaded."; }
}
}
public class EnableAchievementsLoad : LoadingExtensionBase
{
public override void OnLevelLoaded(LoadMode mode)
{
Singleton<SimulationManager>.instance.m_metaData.m_disableAchievements = SimulationMetaData.MetaBool.False;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment