Created
February 23, 2016 02:52
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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