Esempio n. 1
0
 void SerializeChildPanel(SerializeText ar, ref RootChildPanel value)
 {
     if (value == null)
     {
         value = new RootChildPanel();
     }
     ar.ReadWriteValue("ParentName", ref value.m_szParentName);
     ar.ReadWriteValue("ChildName", ref value.m_szChildName);
 }
Esempio n. 2
0
    public void Serialize(SerializeText ar)
    {
        byte yVersion = 0;

        ar.ReadWriteValue("Version", ref yVersion);
        ar.SerializeArray("ChildCount", ref m_AllChild, SerializeChildPanel);
    }
Esempio n. 3
0
 void SerializePrefabName(SerializeText ar, ref string value)
 {
     if (value == null)
     {
         value = string.Empty;
     }
     ar.ReadWriteValue("name", ref value);
 }
Esempio n. 4
0
    public void Serialize(SerializeText ar)
    {
        byte yVersion = 0;

        ar.ReadWriteValue("Version", ref yVersion);
        ar.SerializeArray("ChildCount", ref m_UIPrefabName, "name");
        ar.SerializeArray("DependCount", ref m_DependPrefabName, "name");
        ar.SerializeArray("FontCount", ref m_FontPrefabName, "name");
    }