示例#1
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_selection                 = AbstractInvocationSelection.FromJsonProperty(jsonObject, "selection");
     m_invocationOwner           = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "invocationOwner");
     m_canBeInvokedOnOtherEntity = Serialization.JsonTokenValue <bool>(jsonObject, "canBeInvokedOnOtherEntity", false);
 }
        public static AbstractInvocationSelection FromJsonProperty(JObject jsonObject, string propertyName, AbstractInvocationSelection defaultValue = null)
        {
            //IL_0011: Unknown result type (might be due to invalid IL or missing references)
            //IL_0018: Invalid comparison between Unknown and I4
            JProperty val = jsonObject.Property(propertyName);

            if (val == null || (int)val.get_Value().get_Type() == 10)
            {
                return(defaultValue);
            }
            return(FromJsonToken(val.get_Value()));
        }
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_transformInto    = AbstractInvocationSelection.FromJsonProperty(jsonObject, "transformInto");
     m_attributesToCopy = AttributesToCopyOnTransform.FromJsonProperty(jsonObject, "attributesToCopy");
 }