Add warning on not implemented generic type network serializer (need better codegen)

#1988
This commit is contained in:
Wojtek Figat
2024-02-10 18:17:29 +01:00
parent 4a19657e75
commit 196a4ffe49

View File

@@ -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