コード例 #1
0
 public byte[] ToProtoBytes()
 {
     return(PlayerProjectileUpdate.SerializeToBytes(this));
 }
コード例 #2
0
 public static void SerializeLengthDelimited(Stream stream, PlayerProjectileUpdate instance)
 {
     byte[] bytes = PlayerProjectileUpdate.SerializeToBytes(instance);
     ProtocolParser.WriteUInt32(stream, (uint)bytes.Length);
     stream.Write(bytes, 0, (int)bytes.Length);
 }