You're breathtaking!

This commit is contained in:
Wojtek Figat
2020-12-07 23:40:54 +01:00
commit 6fb9eee74c
5143 changed files with 1153594 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
using FlaxEngine;
using FlaxEngine.Utilities;
namespace FlaxEditor.States
{
/// <summary>
/// In this state editor is performing closing actions and will shutdown. This is last state and cannot leave it.
/// </summary>
/// <seealso cref="FlaxEditor.States.EditorState" />
[HideInEditor]
public sealed class ClosingState : EditorState
{
/// <inheritdoc />
public override bool CanEditContent => false;
/// <inheritdoc />
public override bool IsEditorReady => false;
/// <inheritdoc />
public override string Status => "Closing...";
internal ClosingState(Editor editor)
: base(editor)
{
}
/// <inheritdoc />
public override bool CanExit(State nextState)
{
// Disable exit from Closing state
return false;
}
/// <inheritdoc />
public override void OnEnter()
{
Editor.CloseSplashScreen();
// Cleanup selection
Editor.Instance.SceneEditing.Deselect();
base.OnEnter();
}
}
}