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)