public virtual void WriteToStreamDelta(Stream stream, BaseNPC previous)
 {
     if (previous == null)
     {
         BaseNPC.Serialize(stream, this);
         return;
     }
     BaseNPC.SerializeDelta(stream, this, previous);
 }
 public static byte[] SerializeToBytes(BaseNPC instance)
 {
     byte[] array;
     using (MemoryStream memoryStream = new MemoryStream())
     {
         BaseNPC.Serialize(memoryStream, instance);
         array = memoryStream.ToArray();
     }
     return(array);
 }
 public virtual void WriteToStream(Stream stream)
 {
     BaseNPC.Serialize(stream, this);
 }
 public void ToProto(Stream stream)
 {
     BaseNPC.Serialize(stream, this);
 }