public RezolveFile(Assembly assm, String name, Action <Exception> __exceptf) { exceptf = __exceptf; try { rez = assm.CreateInstance(name) as Rezolve; rezf = new RezFactory(); rez.rezFactory = rezf; valid = true; } catch (Exception exc) { destroy(); __exceptf(exc); } }
public void update() { if (!valid) { if (todestroy) { rezf.DestroyEverything(); rezf = null; todestroy = false; } return; } if (glitched) { return; } if (!started) { started = true; safetyrun(rez.start); } safetyrun(rez.update); }