Skip to content

Commit

Permalink
Forgot to add a way to delete associations
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVB committed Aug 25, 2024
1 parent 7812aaf commit 485ed85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/Lunacy/GameObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class GameObject

void SetPointer(std::string Name, void*);
void* GetPointer(std::string Name);
void DestroyFields();

protected:
void ConstructGameObject();
Expand Down
5 changes: 5 additions & 0 deletions src/Lunacy/GameObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,9 @@ void* GameObject::GetPointer(std::string N)
{
return GetManager()->Get(N).Pointer;
}

void GameObject::DestroyFields()
{
DeleteAssociation(_cave);
}
#pragma endregion

0 comments on commit 485ed85

Please sign in to comment.