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);
        }
コード例 #2
0
 public virtual void Init(HontPostProcessingModelBase target)
 {
     mTarget = target;
 }
コード例 #3
0
        public override void Init(HontPostProcessingModelBase target)
        {
            base.Init(target);

            mModel = (T)mTarget;
        }
 public virtual void Init(HontPostProcessingContext context, HontPostProcessingModelBase model)
 {
     mContext = context;
     mModel   = model;
 }
コード例 #5
0
        public override void Init(HontPostProcessingContext context, HontPostProcessingModelBase model)
        {
            base.Init(context, model);

            mModel = (T)model;
        }