* Mark window data of all windows of a given class as invalid (in need of re-computing) * Note that by default the invalidation is not considered to be called from GUI scope. * See InvalidateWindowData() for details on GUI-scope vs. command-scope. * @param cls Window class * @param data The data to invalidate with * @param gui_scope Whether the call is done from GUI scope */
| 3312 | * @param gui_scope Whether the call is done from GUI scope |
| 3313 | */ |
| 3314 | void InvalidateWindowClassesData(WindowClass cls, int data, bool gui_scope) |
| 3315 | { |
| 3316 | for (Window *w : Window::Iterate()) { |
| 3317 | if (w->window_class == cls) { |
| 3318 | w->InvalidateData(data, gui_scope); |
| 3319 | } |
| 3320 | } |
| 3321 | } |
| 3322 | |
| 3323 | /** |
| 3324 | * Dispatch OnGameTick event over all windows |
no test coverage detected