jyx2/Assets/Plugins/Easy Save 3/Scripts/Writers/ES3Writer.cs
/// <summary>Writes a value to the writer. Note that this should only be called within an ES3Type.</summary>
/// <param name="value">The value we want to write.</param>
/// <param name="memberReferenceMode">Whether we want to write UnityEngine.Object fields and properties by reference, by value, or both.</param>
Writes a value to the writer. Note that this should only be called within an ES3Type.
Writes a value to the writer . Note that this should only be called within an ES3Type .
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
	public virtual void Write(object value, ES3.ReferenceMode memberReferenceMode = ES3.ReferenceMode.ByRef)
	{
		if(value == null){	WriteNull(); return; }
        var type = ES3TypeMgr.GetOrCreateES3Type(value.GetType());
		Write(value, type, memberReferenceMode);
	}
[ System . ComponentModel . EditorBrowsable ( System . ComponentModel . EditorBrowsableState . Never ) ] public virtual void Write ( object value , ES3 . ReferenceMode memberReferenceMode = ES3 . ReferenceMode . ByRef ) { if ( value == null ) { WriteNull ( ) ; return ; } var type = ES3TypeMgr . GetOrCreateES3Type ( value . GetType ( ) ) ; Write ( value , type , memberReferenceMode ) ; }
Writes a value to the writer.
Writes a value to the writer .
value
object
The value we want to write.
The value we want to write .
memberReferenceMode
ES3.ReferenceMode
Whether we want to write UnityEngine.Object fields and properties by reference, by value, or both.
Whether we want to write UnityEngine . Object fields and properties by reference by value or both .