public JSONInStream Content(int idx, out bool value) { JSONBooleanFieldValue fieldValue = (JSONBooleanFieldValue)node.GetField(idx); value = fieldValue.value; return(this); }
public JSONInStream Content(string tag, out bool value) { JSONBooleanFieldValue fieldValue = (JSONBooleanFieldValue)node.GetField(tag); value = fieldValue.value; return(this); }
public JSONInStream ContentOptional(string tag, ref bool value) { JSONBooleanFieldValue fieldValue = (JSONBooleanFieldValue)node.GetField(tag); if (fieldValue != null) { value = fieldValue.value; } return(this); }
public JSONInStream Content(int idx, out bool value) { JSONBooleanFieldValue fieldValue = null; try{ fieldValue = (JSONBooleanFieldValue)node.GetField(idx); } catch (Exception e) { Debug.LogError(e); Debug.LogError(idx); } value = fieldValue.value; return(this); }
public JSONInStream Content(string tag, out bool value) { JSONBooleanFieldValue jSONBooleanFieldValue = null; try { jSONBooleanFieldValue = (JSONBooleanFieldValue)node.GetField(tag); } catch (Exception ex) { Debug.LogError((object)ex); Debug.LogError((object)tag); } value = jSONBooleanFieldValue.value; return(this); }
public JSONInStream ContentOptional(string tag, ref bool value) { JSONBooleanFieldValue fieldValue = null; try{ fieldValue = (JSONBooleanFieldValue)node.GetField(tag); } catch (Exception e) { Debug.LogError(e); Debug.LogError(tag); } if (fieldValue != null) { value = fieldValue.value; } return(this); }