30 lines
903 B
C#
30 lines
903 B
C#
// Copyright (c) 2012-2021 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);
|
|
}
|
|
}
|