Class Descriptor<TTarget>
Inheritance
Descriptor<TTarget>
Namespace: Ludiq
Syntax
public class Descriptor<TTarget> : IDescriptor, IDisposable
Type Parameters
Constructors
Descriptor(TTarget)
Declaration
public Descriptor(TTarget target)
Parameters
Type |
Name |
Description |
TTarget |
target |
|
Fields
_icon
Declaration
protected Reactive<EditorTexture> _icon
Field Value
_summary
Declaration
protected Reactive<string> _summary
Field Value
_title
Declaration
protected Reactive<string> _title
Field Value
_warnings
Declaration
protected Reactive<IReadOnlyList<Warning>> _warnings
Field Value
Properties
icon
Declaration
public EditorTexture icon { get; }
Property Value
Implements
summary
Declaration
public string summary { get; }
Property Value
Implements
target
Declaration
public TTarget target { get; }
Property Value
title
Declaration
public string title { get; }
Property Value
Implements
warnings
Declaration
public IReadOnlyList<Warning> warnings { get; }
Property Value
Implements
Methods
Dispose()
Declaration
Icon()
Declaration
protected virtual EditorTexture Icon()
Returns
OnChange(Object, PropertyChangedEventArgs)
Declaration
protected virtual void OnChange(object sender, PropertyChangedEventArgs e)
Parameters
Type |
Name |
Description |
Object |
sender |
|
PropertyChangedEventArgs |
e |
|
Property<T>(Func<T>, Boolean, Boolean)
Declaration
protected Reactive<T> Property<T>(Func<T> fetch, bool requiresConstantFetch = false, bool requiresUnityApi = false)
Parameters
Type |
Name |
Description |
Func<T> |
fetch |
|
Boolean |
requiresConstantFetch |
|
Boolean |
requiresUnityApi |
|
Returns
Type Parameters
Property<T>(Func<IEnumerable<T>>, Boolean, Boolean)
Declaration
protected Reactive<IReadOnlyList<T>> Property<T>(Func<IEnumerable<T>> fetch, bool requiresConstantFetch = false, bool requiresUnityApi = false)
Parameters
Returns
Type Parameters
RegisterProperties()
Declaration
protected virtual void RegisterProperties()
RegisterProperty(IReactive)
Declaration
protected void RegisterProperty(IReactive property)
Parameters
SetDirty()
Declaration
Implements
StartWatching()
Declaration
protected virtual void StartWatching()
StopWatching()
Declaration
protected virtual void StopWatching()
Summary()
Declaration
protected virtual string Summary()
Returns
Title()
Declaration
protected virtual string Title()
Returns
Unwatch(INotifyPropertyChanged)
Declaration
protected void Unwatch(INotifyPropertyChanged target)
Parameters
Type |
Name |
Description |
INotifyPropertyChanged |
target |
|
Validate()
Declaration
Implements
Warnings()
Declaration
protected virtual IEnumerable<Warning> Warnings()
Returns
Watch(INotifyPropertyChanged)
Declaration
protected void Watch(INotifyPropertyChanged target)
Parameters
Type |
Name |
Description |
INotifyPropertyChanged |
target |
|
Events
propertyChanged
Declaration
public event Action propertyChanged
Event Type
Implements
Explicit Interface Implementations
IDescriptor.target
Declaration
object IDescriptor.target { get; }
Returns
Implements
Extension Methods