public byte[] ToProtoBytes() { return(PersistantPlayer.SerializeToBytes(this)); }
public static void SerializeLengthDelimited(Stream stream, PersistantPlayer instance) { byte[] bytes = PersistantPlayer.SerializeToBytes(instance); ProtocolParser.WriteUInt32(stream, (uint)bytes.Length); stream.Write(bytes, 0, (int)bytes.Length); }