Last active
April 12, 2017 22:04
-
-
Save ronyx69/18508ba6b15fea89f9f310fd2f8848ce to your computer and use it in GitHub Desktop.
An empty mod which waits for all mods to be loaded.
This file contains hidden or 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 ColossalFramework.Plugins; | |
using ColossalFramework.UI; | |
using ICities; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Reflection; | |
using System.Xml.Serialization; | |
using UnityEngine; | |
namespace ThemeDecals | |
{ | |
public class ThemeDecalsMod : IUserMod | |
{ | |
public string Name => "Theme Decals"; | |
public string Description => "Adds decals which match the current map theme."; | |
} | |
public class ThemeDecalsLoading : LoadingExtensionBase | |
{ | |
public override void OnLevelUnloading() | |
{ | |
base.OnLevelUnloading(); | |
ThemeDecals.Loaded = false; | |
} | |
} | |
public class ThemeDecalsThreading : ThreadingExtensionBase | |
{ | |
public override void OnUpdate(float realTimeDelta, float simulationTimeDelta) | |
{ | |
base.OnUpdate(realTimeDelta, simulationTimeDelta); | |
if (!ThemeDecals.Loaded && LoadingManager.instance.m_loadingComplete) | |
{ | |
ThemeDecals.DoThing(); | |
ThemeDecals.Loaded = true; | |
} | |
} | |
} | |
public class ThemeDecals | |
{ | |
public static bool Loaded; | |
internal static void DoThing() | |
{ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment