Skip to content

Instantly share code, notes, and snippets.

@ronyx69
Last active April 12, 2017 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronyx69/18508ba6b15fea89f9f310fd2f8848ce to your computer and use it in GitHub Desktop.
Save ronyx69/18508ba6b15fea89f9f310fd2f8848ce to your computer and use it in GitHub Desktop.
An empty mod which waits for all mods to be loaded.
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