Skip to content

Commit

Permalink
make DestroyRoom public
Browse files Browse the repository at this point in the history
Signed-off-by: FakeMan2332 <[email protected]>
  • Loading branch information
fakeman2332 committed Jan 16, 2024
1 parent 2983bc9 commit 7bd1987
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion MERRoomReplacement/Api/RoomReplacer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,14 @@ public static SchematicObject ReplaceRoom(RoomType roomType, RoomSchematic roomS
return schematic;
}

private static void DestroyRoom(Room room)
/// <summary>
/// Destroys the specified room
/// </summary>
/// <remarks>
/// This method will not destroy the 079 components (cameras, speakers) in room
/// </remarks>
/// <param name="room">Room that should be destroyed</param>
public static void DestroyRoom(Room room)
{
foreach (var component in room.gameObject.GetComponentsInChildren<Component>())
{
Expand Down

0 comments on commit 7bd1987

Please sign in to comment.