Example #1
0
        public static bool Write(IWriter writer, KGTalentData val, string name = null)
        {
            if (!writer.StructBegin(KGTalentData.HASH_CODE, name))
            {
                return(false);
            }

            DoWrite(writer, val.m_nTalent, "m_nTalent", Write);

            return(writer.StructEnd());
        }
Example #2
0
        public static bool Read(IReader reader, ref KGTalentData val, string name = null)
        {
            if (!reader.StructBegin(KGTalentData.HASH_CODE, name))
            {
                return(false);
            }

            DoRead(reader, ref val.m_nTalent, "m_nTalent", Read);

            return(reader.StructEnd());
        }