You're breathtaking!
This commit is contained in:
29
Source/Editor/Surface/ISurfaceContext.cs
Normal file
29
Source/Editor/Surface/ISurfaceContext.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
|
||||
using FlaxEngine;
|
||||
|
||||
namespace FlaxEditor.Surface
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the context data and logic for the Visject Surface editor.
|
||||
/// </summary>
|
||||
[HideInEditor]
|
||||
public interface ISurfaceContext
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the name of the surface (for UI).
|
||||
/// </summary>
|
||||
string SurfaceName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the surface data. Used to load or save the surface to the data source.
|
||||
/// </summary>
|
||||
byte[] SurfaceData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Called when Visject Surface context gets created for this surface data source. Can be used to link for some events.
|
||||
/// </summary>
|
||||
/// <param name="context">The context.</param>
|
||||
void OnContextCreated(VisjectSurfaceContext context);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user