Skip to content

Instantly share code, notes, and snippets.

@hrywlms
Created February 23, 2016 02:52
Show Gist options
  • Save hrywlms/b8c320d47f03c5d56588 to your computer and use it in GitHub Desktop.
Save hrywlms/b8c320d47f03c5d56588 to your computer and use it in GitHub Desktop.
C:\Program Files (x86)\Steam\steamapps\common\Cities_Skylines\Files\Mods\mod_name\Source
using ICities;
using ColossalFramework;
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