Пример #1
0
        public Setting(Setting pOriginal)
        {
            mType        = pOriginal.mType;
            mValueType   = pOriginal.mValueType;
            mValue       = pOriginal.mValue;
            mSettingName = pOriginal.mSettingName;

            mAttribute = pOriginal.mAttribute;
        }
Пример #2
0
        public static Setting CreateFromProperty(EditorSettingAttribute pAttribute, PropertyInfo pInfo)
        {
            Setting s = CreateSetting(pAttribute);

            s.mType        = Setting.ESettingType.property;
            s.mValueType   = pInfo.PropertyType;
            s.mSettingName = pInfo.Name;
            return(s);
        }
Пример #3
0
        public static Setting CreateFromField(EditorSettingAttribute pAttribute, FieldInfo pInfo)
        {
            Setting s = CreateSetting(pAttribute);

            s.mType        = Setting.ESettingType.field;
            s.mValueType   = pInfo.FieldType;
            s.mSettingName = pInfo.Name;

            return(s);
        }
Пример #4
0
 public Setting(EditorSettingAttribute pAttribute)
 {
     mAttribute = pAttribute;
 }
Пример #5
0
        static Setting CreateSetting(EditorSettingAttribute pAttribute)
        {
            Setting s = new Setting(pAttribute);

            return(s);
        }