mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-11 01:47:42 +00:00
CModelBoo: Remove usages of const_cast
Many functions are modifying internals of CBooModel and const-casting is performed in order to work around functions being const when they really shouldn't be. This amends the function signatures in order to allow these functions to exist without const_cast, making code much nicer to read.
This commit is contained in:
@@ -117,9 +117,9 @@ void CGuiWidget::Update(float dt) {
|
||||
sib->Update(dt);
|
||||
}
|
||||
|
||||
void CGuiWidget::Draw(const CGuiWidgetDrawParms&) const {}
|
||||
void CGuiWidget::Draw(const CGuiWidgetDrawParms&) {}
|
||||
void CGuiWidget::ProcessUserInput(const CFinalInput& input) {}
|
||||
void CGuiWidget::Touch() const {}
|
||||
void CGuiWidget::Touch() {}
|
||||
|
||||
bool CGuiWidget::GetIsVisible() const { return xb6_25_isVisible; }
|
||||
|
||||
@@ -136,7 +136,7 @@ void CGuiWidget::InitializeRGBAFactor() {
|
||||
nextSib->InitializeRGBAFactor();
|
||||
}
|
||||
|
||||
bool CGuiWidget::GetIsFinishedLoadingWidgetSpecific() const { return true; }
|
||||
bool CGuiWidget::GetIsFinishedLoadingWidgetSpecific() { return true; }
|
||||
|
||||
void CGuiWidget::SetTransform(const zeus::CTransform& xf) {
|
||||
x74_transform = xf;
|
||||
|
||||
Reference in New Issue
Block a user