10using System.Reflection;
11using System.Collections.Generic;
20 private bool _isDirty =
true;
26 private bool _dummyBool;
40 if (!Application.isPlaying) {
73 dataObj.feature =
this;
82 this.featureData.Add(data as DataType);
86 return typeof(DataType);
90 DataType data =
new DataType();
91 data.graphic = graphic;
111 public static Type GetFeatureType(Type dataObjType) {
112 var allTypes = Assembly.GetAssembly(dataObjType).GetTypes();
113 return allTypes.Query().
117 t.BaseType.GetGenericArguments()[0] == dataObjType).
LeapGraphicFeatureBase feature
abstract Type GetDataObjectType()
abstract void ClearDataObjectReferences()
abstract void AssignFeatureReferences()
abstract void AddFeatureData(LeapFeatureData data)
abstract LeapFeatureData CreateFeatureDataForGraphic(LeapGraphic graphic)
virtual SupportInfo GetSupportInfo(LeapGraphicGroup group)
override void AssignFeatureReferences()
override LeapFeatureData CreateFeatureDataForGraphic(LeapGraphic graphic)
List< DataType > featureData
A list of all feature data.
override void AddFeatureData(LeapFeatureData data)
override Type GetDataObjectType()
override void ClearDataObjectReferences()
The support info class provides a very basic way to notify that something is fully supported,...
static SupportInfo FullSupport()
Helper getter to return a struct that signifies full support.