forked from Unity-Technologies/EditorXR
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move IDelayedInitializationModule back into EditorXR
- Loading branch information
1 parent
a45cd8d
commit 3fa4ce3
Showing
3 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
Runtime/Scripts/Core/Interfaces/IDelayedInitializationModule.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Unity.Labs.ModuleLoader; | ||
|
||
namespace Unity.Labs.EditorXR | ||
{ | ||
/// <summary> | ||
/// Adds Initialize and Shutdown methods to modules for when editing starts and stops | ||
/// </summary> | ||
public interface IDelayedInitializationModule : IModule | ||
{ | ||
/// <summary> | ||
/// Called when editing starts | ||
/// </summary> | ||
void Initialize(); | ||
|
||
/// <summary> | ||
/// Called when editing stops | ||
/// </summary> | ||
void Shutdown(); | ||
|
||
/// <summary> | ||
/// Used to sort delayed initialization modules before calling Initialize | ||
/// </summary> | ||
int initializationOrder { get; } | ||
|
||
/// <summary> | ||
/// Used to sort delayed initialization modules before calling Shutdown | ||
/// </summary> | ||
int shutdownOrder { get; } | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Runtime/Scripts/Core/Interfaces/IDelayedInitializationModule.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters