Skip to content

Commit b015a2b

Browse files
committed
Add HitboxesRebuilt to subscribe to
1 parent c260655 commit b015a2b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

engine/Sandbox.Engine/Scene/Components/Game/ModelHitboxes.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,16 @@ protected override void OnDestroy()
6969
Clear();
7070
}
7171

72+
/// <summary>
73+
/// Invoked when the hitboxes have been rebuilt.
74+
/// </summary>
75+
public Action HitboxesRebuilt;
76+
7277
public void Rebuild()
7378
{
7479
Clear();
7580
AddFrom( Renderer );
81+
HitboxesRebuilt?.Invoke();
7682
}
7783

7884
void Clear()

0 commit comments

Comments
 (0)