Exemple #1
0
        public virtual void OnLevelWasLoaded(int level)
        {
            Log("Map Loaded");

            // scan all mod assemblies for mod bootstrappers
            Bootstrappers.DoBootstraps(On.MapLoaded);

            // scan all mod assemblies for mapcomponents that should be injected
            MapComponents.DoMapComponents();
        }
Exemple #2
0
        public virtual void Start()
        {
            Log("Starting");

            // scan all mod assemblies for methods that should be detoured
            Detours.DoDetours();

            // scan all mod assemblies for mod bootstrappers
            Bootstrappers.DoBootstraps(On.GameInit);

            // we don't need this controller to tick.
            enabled = false;
        }