Exemplo n.º 1
0
 public virtual void Deserialize(NetDataReader reader)
 {
     // Ensure id is correct before modifying stream
     if (reader.GetEnum <MessageId>() != Id)
     {
         throw new Exception("Deserializing message with wrong id!");
     }
 }