Example #1
0
        public MObject GetData()
        {
            var obj = new MObject();

            for (var i = 0; i < _binders.Count; i++)
            {
                var serializedBinder = _binders[i];

                if (serializedBinder.BinderInstance == null)
                {
                    Debug.LogWarningFormat(this, "binder for [{0}] is null", serializedBinder.FieldName);
                    continue;
                }

                obj.Add(serializedBinder.FieldName, BinderUtil.GetValueFromBinder(serializedBinder.BinderInstance));
            }
            return(obj);
        }
Example #2
0
 public MToken GetData()
 {
     return(BinderUtil.GetValueFromBinder(_mainBinder) as MBool);
 }
Example #3
0
 public MToken GetData()
 {
     return(BinderUtil.GetValueFromBinder(_elementBinder));
 }