From 196a4ffe4927956559e6d0b9c13d511167b5ff5b Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sat, 10 Feb 2024 18:17:29 +0100 Subject: [PATCH] Add warning on not implemented generic type network serializer (need better codegen) #1988 --- Source/Tools/Flax.Build/Build/Plugins/NetworkingPlugin.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Tools/Flax.Build/Build/Plugins/NetworkingPlugin.cs b/Source/Tools/Flax.Build/Build/Plugins/NetworkingPlugin.cs index 7e4f26bbf..085c56680 100644 --- a/Source/Tools/Flax.Build/Build/Plugins/NetworkingPlugin.cs +++ b/Source/Tools/Flax.Build/Build/Plugins/NetworkingPlugin.cs @@ -805,6 +805,9 @@ namespace Flax.Build.Plugins GenerateSerializeCallback(module, il, type.BaseType, serialize); } + if (type.HasGenericParameters) // TODO: implement network replication for generic classes + MonoCecil.CompilationError($"Not supported generic type '{type.FullName}' for network replication."); + var ildContext = new DotnetIlContext(il); // Serialize all type fields marked with NetworkReplicated attribute