This commit is contained in:
vis2k 2019-01-16 15:07:02 +01:00
parent f95f127ed1
commit 6c32dd561d

View File

@ -461,9 +461,8 @@ void GenerateDeSerialization()
return; return;
} }
MethodDefinition serialize = new MethodDefinition("OnDeserialize", MethodAttributes.Public | MethodDefinition serialize = new MethodDefinition("OnDeserialize",
MethodAttributes.Virtual | MethodAttributes.Public | MethodAttributes.Virtual | MethodAttributes.HideBySig,
MethodAttributes.HideBySig,
Weaver.voidType); Weaver.voidType);
serialize.Parameters.Add(new ParameterDefinition("reader", ParameterAttributes.None, Weaver.scriptDef.MainModule.ImportReference(Weaver.NetworkReaderType))); serialize.Parameters.Add(new ParameterDefinition("reader", ParameterAttributes.None, Weaver.scriptDef.MainModule.ImportReference(Weaver.NetworkReaderType)));