mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-18 03:09:45 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
22 lines
574 B
C#
22 lines
574 B
C#
using System;
|
|
|
|
namespace Editor;
|
|
|
|
public partial class Asset
|
|
{
|
|
/// <summary>
|
|
/// Should target a static method like
|
|
/// `public static Pixmap RenderThumbnail( Asset thumbnail )`
|
|
/// where the method returns a thumbnail for that asset type.
|
|
/// This kind of sucks I don't like it.
|
|
/// </summary>
|
|
[AttributeUsage( AttributeTargets.Method, AllowMultiple = false )]
|
|
public class ThumbnailRendererAttribute : System.Attribute
|
|
{
|
|
/// <summary>
|
|
/// The priority of this callback. Higher gets called first.
|
|
/// </summary>
|
|
public int Priority { get; set; }
|
|
}
|
|
}
|