Skip to content

Commit 90f8e10

Browse files
committed
renamed AppendChild to AddChild
1 parent 1d678a9 commit 90f8e10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/Util/GameObject.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class GameObject {
4242

4343
void SetVisible(bool visible) { m_Visible = visible; }
4444

45-
void AppendChild(std::shared_ptr<GameObject> child) {
45+
void AddChild(std::shared_ptr<GameObject> child) {
4646
m_Children.push_back(std::move(child));
4747
}
4848

src/App.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void App::Start() {
1717
"Giraffe");
1818
gf->SetZIndex(m_Giraffe->GetZIndex() - 1);
1919
gf->Start();
20-
m_Giraffe->AppendChild(gf);
20+
m_Giraffe->AddChild(gf);
2121

2222
m_CurrentState = State::UPDATE;
2323
}

0 commit comments

Comments
 (0)