From 9ed5d15f9d786dd71ca4ad390854c50c452097a0 Mon Sep 17 00:00:00 2001 From: Mayuki Sawatari Date: Fri, 27 Jan 2023 19:00:46 +0900 Subject: [PATCH] Fix method signature of MemoryPackFormatter for Unity --- ...DynamicArgumentTupleMemoryPackFormatter.cs | 28 +++++++++---------- ...DynamicArgumentTupleMemoryPackFormatter.tt | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/MagicOnion.Serialization.MemoryPack/DynamicArgumentTupleMemoryPackFormatter.cs b/src/MagicOnion.Serialization.MemoryPack/DynamicArgumentTupleMemoryPackFormatter.cs index da1a16f8b..4ae583aee 100644 --- a/src/MagicOnion.Serialization.MemoryPack/DynamicArgumentTupleMemoryPackFormatter.cs +++ b/src/MagicOnion.Serialization.MemoryPack/DynamicArgumentTupleMemoryPackFormatter.cs @@ -37,7 +37,7 @@ public class DynamicArgumentTupleFormatter : MemoryPackFormatter(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) + public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) #else public override void Serialize(ref MemoryPackWriter writer, scoped ref DynamicArgumentTuple value) #endif @@ -76,7 +76,7 @@ public class DynamicArgumentTupleFormatter : MemoryPackFormatter(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) + public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) #else public override void Serialize(ref MemoryPackWriter writer, scoped ref DynamicArgumentTuple value) #endif @@ -117,7 +117,7 @@ public class DynamicArgumentTupleFormatter : MemoryPackFormatter { [global::MagicOnion.Serialization.MemoryPack.Preserve] #if UNITY_2021_3_OR_NEWER - public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) + public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) #else public override void Serialize(ref MemoryPackWriter writer, scoped ref DynamicArgumentTuple value) #endif @@ -160,7 +160,7 @@ public class DynamicArgumentTupleFormatter : MemoryPackForma { [global::MagicOnion.Serialization.MemoryPack.Preserve] #if UNITY_2021_3_OR_NEWER - public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) + public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) #else public override void Serialize(ref MemoryPackWriter writer, scoped ref DynamicArgumentTuple value) #endif @@ -205,7 +205,7 @@ public class DynamicArgumentTupleFormatter : MemoryPackF { [global::MagicOnion.Serialization.MemoryPack.Preserve] #if UNITY_2021_3_OR_NEWER - public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) + public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) #else public override void Serialize(ref MemoryPackWriter writer, scoped ref DynamicArgumentTuple value) #endif @@ -252,7 +252,7 @@ public class DynamicArgumentTupleFormatter : MemoryP { [global::MagicOnion.Serialization.MemoryPack.Preserve] #if UNITY_2021_3_OR_NEWER - public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) + public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) #else public override void Serialize(ref MemoryPackWriter writer, scoped ref DynamicArgumentTuple value) #endif @@ -301,7 +301,7 @@ public class DynamicArgumentTupleFormatter : Mem { [global::MagicOnion.Serialization.MemoryPack.Preserve] #if UNITY_2021_3_OR_NEWER - public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) + public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) #else public override void Serialize(ref MemoryPackWriter writer, scoped ref DynamicArgumentTuple value) #endif @@ -352,7 +352,7 @@ public class DynamicArgumentTupleFormatter : { [global::MagicOnion.Serialization.MemoryPack.Preserve] #if UNITY_2021_3_OR_NEWER - public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) + public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) #else public override void Serialize(ref MemoryPackWriter writer, scoped ref DynamicArgumentTuple value) #endif @@ -405,7 +405,7 @@ public class DynamicArgumentTupleFormatter(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) + public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) #else public override void Serialize(ref MemoryPackWriter writer, scoped ref DynamicArgumentTuple value) #endif @@ -460,7 +460,7 @@ public class DynamicArgumentTupleFormatter(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) + public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) #else public override void Serialize(ref MemoryPackWriter writer, scoped ref DynamicArgumentTuple value) #endif @@ -517,7 +517,7 @@ public class DynamicArgumentTupleFormatter(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) + public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) #else public override void Serialize(ref MemoryPackWriter writer, scoped ref DynamicArgumentTuple value) #endif @@ -576,7 +576,7 @@ public class DynamicArgumentTupleFormatter(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) + public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) #else public override void Serialize(ref MemoryPackWriter writer, scoped ref DynamicArgumentTuple value) #endif @@ -637,7 +637,7 @@ public class DynamicArgumentTupleFormatter(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) + public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) #else public override void Serialize(ref MemoryPackWriter writer, scoped ref DynamicArgumentTuple value) #endif @@ -700,7 +700,7 @@ public class DynamicArgumentTupleFormatter(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) + public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple value) #else public override void Serialize(ref MemoryPackWriter writer, scoped ref DynamicArgumentTuple value) #endif diff --git a/src/MagicOnion.Serialization.MemoryPack/DynamicArgumentTupleMemoryPackFormatter.tt b/src/MagicOnion.Serialization.MemoryPack/DynamicArgumentTupleMemoryPackFormatter.tt index 8e922731c..75b9c81b1 100644 --- a/src/MagicOnion.Serialization.MemoryPack/DynamicArgumentTupleMemoryPackFormatter.tt +++ b/src/MagicOnion.Serialization.MemoryPack/DynamicArgumentTupleMemoryPackFormatter.tt @@ -36,7 +36,7 @@ namespace MagicOnion.Serialization.MemoryPack { [global::MagicOnion.Serialization.MemoryPack.Preserve] #if UNITY_2021_3_OR_NEWER - public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple<<#= dynamicArgumentTupleGenericArgs #>> value) + public override void Serialize(ref MemoryPackWriter writer, ref DynamicArgumentTuple<<#= dynamicArgumentTupleGenericArgs #>> value) #else public override void Serialize(ref MemoryPackWriter writer, scoped ref DynamicArgumentTuple<<#= dynamicArgumentTupleGenericArgs #>> value) #endif