//********************************** Banshee Engine (www.banshee3d.com) **************************************************// //**************** Copyright (c) 2016 Marko Pintera (marko.pintera@gmail.com). All rights reserved. **********************// using System; using bs; namespace bs.Editor { /** @addtogroup Handles * @{ */ /// /// Attribute that can be added to types deriving from . That handle implementation /// will then be used whenever a handle for the type specified in this attribute needs to be displayed. /// /// Implementation must contain a constructor accepting the object for the type the handle is shown for, otherwise /// it will not be recognized by the system. If handle is not shown for any specific type, the constructor should not /// accept any parameters. /// [AttributeUsage(AttributeTargets.Class)] public sealed class CustomHandle : Attribute { #pragma warning disable 0414 private Type type; #pragma warning restore 0414 /// /// Creates a new custom handle attribute. /// /// Type deriving from for which the custom handle will be displayed. /// Type can be null in which case the handle is always displayed. public CustomHandle(Type type) { this.type = type; } } /** @} */ }