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()); }
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()); }