bool IsAttributeMatchedModel(HontPostProcessingModelBase model, object[] attributes) { for (int i = 0, iMax = attributes.Length; i < iMax; i++) { var item = attributes[i]; if (item is HontPostProcessingIgnoreAttribute) { return(false); } var modelEditorAttr = item as HontPostProcessingModelInspectorAttribute; if (modelEditorAttr != null && modelEditorAttr.type == model.GetType()) { return(true); } } return(false); }
public virtual void Init(HontPostProcessingModelBase target) { mTarget = target; }
public override void Init(HontPostProcessingModelBase target) { base.Init(target); mModel = (T)mTarget; }
public virtual void Init(HontPostProcessingContext context, HontPostProcessingModelBase model) { mContext = context; mModel = model; }
public override void Init(HontPostProcessingContext context, HontPostProcessingModelBase model) { base.Init(context, model); mModel = (T)model; }