VR4Medical/ICI/Library/PackageCache/com.unity.learn.iet-framework@4bd5247958fc/Editor/Models/EmptyModel.cs
2025-07-29 13:45:50 +03:00

35 lines
693 B
C#

#region
using System;
using JetBrains.Annotations;
#endregion
namespace Unity.Tutorials.Core.Editor
{
/// <summary>
/// This is a template class for new Models
/// </summary>
[Serializable]
internal class EmptyModel : IModel
{
/// <inheritdoc />
public event Action StateChanged;
/// <inheritdoc />
public void OnStart() { }
/// <inheritdoc />
public void OnStop() { }
/// <inheritdoc />
public void RestoreState([NotNull] IWindowCache cache)
{
StateChanged?.Invoke();
}
/// <inheritdoc />
public void SaveState([NotNull] IWindowCache cache) { }
}
}