Example #1
0
 public void decode(EndianBinaryReader binReader)
 {
 
         _Id = int.Parse(binReader.ReadUTF());
         
         _Name = binReader.ReadUTF();
         
         _Age = int.Parse(binReader.ReadUTF());
         
         _Jump = float.Parse(binReader.ReadUTF());
         
         _Time = DateTime.Parse(binReader.ReadUTF());
         
 }
Example #2
0
 public void decode(EndianBinaryReader binReader)
 {
 
         _Name = binReader.ReadUTF();
         
         _Age = int.Parse(binReader.ReadUTF());
         
         var str_Sex = binReader.ReadUTF();
         _Sex = (str_Sex.ToLower() == "true" || str_Sex == "1");
         
         _Jump = float.Parse(binReader.ReadUTF());
         
         _Time = DateTime.Parse(binReader.ReadUTF());
         
 }