Beispiel #1
0
        public override int Size()
        {
            int nSize = 0;

            try {
                nSize  = base.Size();
                nSize += EquipItemPartType_Serializer.Size(part_type);
            } catch (System.Exception) {
                return(-1);
            }
            return(nSize);
        }
Beispiel #2
0
 public override bool Store(MemoryStream _buf_)
 {
     try {
         base.Store(_buf_);
         if (false == EquipItemPartType_Serializer.Store(_buf_, part_type))
         {
             return(false);
         }
     } catch (System.Exception) {
         return(false);
     }
     return(true);
 }
Beispiel #3
0
 public override bool Load(MemoryStream _buf_)
 {
     try {
         if (false == base.Load(_buf_))
         {
             return(false);
         }
         if (false == EquipItemPartType_Serializer.Load(ref part_type, _buf_))
         {
             return(false);
         }
     } catch (System.Exception) {
         return(false);
     }
     return(true);
 }