From 2b2a318ba7357cf7840e5136ce2a7a923e6d3434 Mon Sep 17 00:00:00 2001 From: Michal78900 Date: Mon, 19 Jul 2021 12:28:04 +0200 Subject: [PATCH] Removed unused extension --- MapEditorReborn/API/Extenstions.cs | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/MapEditorReborn/API/Extenstions.cs b/MapEditorReborn/API/Extenstions.cs index f00e9f67..3d672fff 100644 --- a/MapEditorReborn/API/Extenstions.cs +++ b/MapEditorReborn/API/Extenstions.cs @@ -123,31 +123,6 @@ public static DoorType GetDoorTypeByName(this DoorVariant doorVariant) } } - /// - /// Converts a into a . - /// - /// The which should be converted. - /// which can be used to spawn a door or saving it to a file. - public static DoorObject ConvertToDoorObject(this DoorVariant door) - { - Room room = Map.FindParentRoom(door.gameObject); - BreakableDoor breakableDoor = door as BreakableDoor; - DoorObjectComponent doorObjectComponent = door.GetComponent(); - - return new DoorObject( - door.GetDoorTypeByName(), - door.transform.position, - door.transform.eulerAngles, - door.transform.localScale, - room.Type, - door.NetworkTargetState, - door.NetworkActiveLocks == 64, - door.RequiredPermissions.RequiredPermissions, - breakableDoor._ignoredDamageSources, - breakableDoor._maxHealth, - doorObjectComponent.OpenOnWarheadActivation); - } - public static string ConvertToSpawnPointTag(this RoleType roleType) { switch (roleType)