-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf1bd92
commit 5a96923
Showing
10 changed files
with
196 additions
and
73 deletions.
There are no files selected for viewing
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
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
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
32 changes: 1 addition & 31 deletions
32
DuplicateAssemblyScanner/DuplicateAssemblyScanner/Properties/AssemblyInfo.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,6 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Reflection; | ||
using System.Runtime.InteropServices; | ||
|
||
// General Information about an assembly is controlled through the following | ||
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
[assembly: AssemblyTitle("DuplicateAssemblyScanner")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("DuplicateAssemblyScanner")] | ||
[assembly: AssemblyCopyright("Copyright © 2020")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// Setting ComVisible to false makes the types in this assembly not visible | ||
// to COM components. If you need to access a type in this assembly from | ||
// COM, set the ComVisible attribute to true on that type. | ||
[assembly: ComVisible(false)] | ||
|
||
// The following GUID is for the ID of the typelib if this project is exposed to COM | ||
[assembly: Guid("efba373b-88b2-427a-8396-6f9d56c89f74")] | ||
|
||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Build and Revision Numbers | ||
// by using the '*' as shown below: | ||
// [assembly: AssemblyVersion("1.0.*")] | ||
[assembly: AssemblyVersion("1.0.0.0")] | ||
[assembly: AssemblyFileVersion("1.0.0.0")] |
27 changes: 23 additions & 4 deletions
27
DuplicateAssemblyScanner/DuplicateAssemblyScanner/UserMod.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,51 @@ | ||
namespace DuplicateAssemblyScanner { | ||
using ColossalFramework.UI; | ||
using DuplicateAssemblyScanner.Util; | ||
using ICities; | ||
using JetBrains.Annotations; | ||
using UnityEngine.SceneManagement; | ||
|
||
/// <summary> | ||
/// The main mod class which the game instantiates when the mod is enabled. | ||
/// </summary> | ||
public class UserMod : IUserMod { | ||
|
||
/// <summary> | ||
/// Gets mod name shown in content manager and options screens. | ||
/// Version defined in Solution Items > VersionInfo.cs file. | ||
/// </summary> | ||
[UsedImplicitly] | ||
public string Name => "DAS"; | ||
public string Name => $"DAS v{typeof(UserMod).Assembly.GetName().Version.ToString(3)}"; | ||
|
||
/// <summary> | ||
/// Gets mod description shown in content manager. | ||
/// </summary> | ||
[UsedImplicitly] | ||
public string Description => "Scans for duplicate assemblies in the app domain, which can cause bugs."; | ||
|
||
/// <summary> | ||
/// Called when mod is enabled. | ||
/// </summary> | ||
[UsedImplicitly] | ||
public void OnEnabled() { | ||
Log.Info("Enabled"); | ||
} | ||
|
||
/// <summary> | ||
/// Called when settings UI is required. | ||
/// </summary> | ||
/// | ||
/// <param name="helper">Helper for creating UI.</param> | ||
[UsedImplicitly] | ||
public void OnSettingsUI(UIHelperBase helper) { | ||
Log.Info("SettingsUI"); | ||
Settings.CreateUI(helper); | ||
} | ||
|
||
/// <summary> | ||
/// Called when mod is disabled. | ||
/// </summary> | ||
[UsedImplicitly] | ||
public void OnDisabled() { | ||
Log.Info("Disabled"); | ||
} | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.