public static void RunChecks()
 {
     Logger.Buffer(
         TypeList <ModuleType, ModuleTypeList>
         .find <ModuleTypeStorage>()
         .Representation());
     Logger.Write(
         TypeList <ModuleType, ModuleTypeList>
         .find <ModuleTypeWindTurbine>()
         .Representation());
 }
Esempio n. 2
0
        private static void FirstFixedUpdate(ModData data, float tDelta)
        {
            try {
                Logger.Write("Running all single-fire events.");
                OnFirstUpdate();
            } catch (Exception e) {
                Logger.Buffer("Complete failure loading OnFirstUpdate.");
                Logger.Buffer(e.Message);
                Logger.Buffer(e.StackTrace);
                Logger.Flush();
            }

            // Swap off of this method.
            data.OnFixedUpdate = SubsequentFixedUpdates;
        }