public static void RunChecks() { Logger.Buffer( TypeList <ModuleType, ModuleTypeList> .find <ModuleTypeStorage>() .Representation()); Logger.Write( TypeList <ModuleType, ModuleTypeList> .find <ModuleTypeWindTurbine>() .Representation()); }
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; }