1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 07:14:31 +01:00

Rename snake_case Class names (Remaining Bits) (#19237)

* Rename snake_case Class names

* Clang format

* Fix build issues
This commit is contained in:
Duncan
2023-01-21 19:57:17 +00:00
committed by GitHub
parent 09b1074d08
commit e09f27df3c
160 changed files with 2014 additions and 2015 deletions

View File

@@ -1490,25 +1490,25 @@ void ContextSetCursorTrap(bool value)
GetContext()->GetUiContext()->SetCursorTrap(value);
}
rct_window* ContextOpenWindow(WindowClass wc)
WindowBase* ContextOpenWindow(WindowClass wc)
{
auto windowManager = GetContext()->GetUiContext()->GetWindowManager();
return windowManager->OpenWindow(wc);
}
rct_window* ContextOpenWindowView(uint8_t wc)
WindowBase* ContextOpenWindowView(uint8_t wc)
{
auto windowManager = GetContext()->GetUiContext()->GetWindowManager();
return windowManager->OpenView(wc);
}
rct_window* ContextOpenDetailWindow(uint8_t type, int32_t id)
WindowBase* ContextOpenDetailWindow(uint8_t type, int32_t id)
{
auto windowManager = GetContext()->GetUiContext()->GetWindowManager();
return windowManager->OpenDetails(type, id);
}
rct_window* ContextOpenIntent(Intent* intent)
WindowBase* ContextOpenIntent(Intent* intent)
{
auto windowManager = GetContext()->GetUiContext()->GetWindowManager();
return windowManager->OpenIntent(intent);
@@ -1526,7 +1526,7 @@ void ContextForceCloseWindowByClass(WindowClass windowClass)
windowManager->ForceClose(windowClass);
}
rct_window* ContextShowError(StringId title, StringId message, const Formatter& args)
WindowBase* ContextShowError(StringId title, StringId message, const Formatter& args)
{
auto windowManager = GetContext()->GetUiContext()->GetWindowManager();
return windowManager->ShowError(title, message, args);