Skip to content

Commit

Permalink
Add some logging for loading/initializing loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Craxy committed Jul 27, 2017
1 parent 54000e9 commit 7aa13e2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ToggleTrafficLights/Game/Simulation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,20 @@ public sealed class Loading : LoadingExtensionBase

public override void OnCreated(ILoading loading)
{
Log.Info("created");

base.OnCreated(loading);

Simulation.OnCreated(loading);
}

public override void OnReleased()
{
{
base.OnReleased();

Simulation.OnReleased();

Log.Info("released");
}

public override void OnLevelLoaded(LoadMode mode)
Expand Down
6 changes: 6 additions & 0 deletions src/ToggleTrafficLights/Mod.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
using System.Reflection;
using Craxy.CitiesSkylines.ToggleTrafficLights.Game;
using Craxy.CitiesSkylines.ToggleTrafficLights.Game.UI;
using Craxy.CitiesSkylines.ToggleTrafficLights.Utils;
using ICities;

namespace Craxy.CitiesSkylines.ToggleTrafficLights
{
public sealed class Mod : IUserMod
{
static Mod()
{
Log.Info($"Loaded: {Assembly.GetExecutingAssembly().GetName()})");
}

public string Name => "Toggle Traffic Lights";

public string Description
Expand Down

0 comments on commit 7aa13e2

Please sign in to comment.