public static Int32 hook_Render(String message) { try { Process process = Process.ThisProcess(); InputHooked.Update(process); _state.Init(); _state.update(); long time = DateTime.Now.Ticks; Now = time; timer.Timer[] arr = TimerList.ToArray(); foreach (timer.Timer timer in arr) { timer.iUpdate(time); } if (OnRender != null) { OnRender(process, time); } if (OnRenderTimedSecond != null && s_OnRenderCalledLastSecond < time) { OnRenderTimedSecond(process, time); s_OnRenderCalledLastSecond = time + 10000000; } } catch (Exception ex) { zERROR.GetZErr(Process.ThisProcess()).Report(4, 'G', ex.ToString(), 0, "Program.cs", 0); } return(0); }
private void Start() { _game.Init(this); AbstractState.Init(this, DefaultState.instance); }