mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix: code generation works with il2cpp again (#1056)
This commit is contained in:
parent
c00bb2d81d
commit
87385628f0
@ -376,7 +376,7 @@ void GenerateSerialization()
|
|||||||
serWorker.Append(serWorker.Create(OpCodes.Ldarg_1)); // writer
|
serWorker.Append(serWorker.Create(OpCodes.Ldarg_1)); // writer
|
||||||
serWorker.Append(serWorker.Create(OpCodes.Ldarg_0)); // base
|
serWorker.Append(serWorker.Create(OpCodes.Ldarg_0)); // base
|
||||||
serWorker.Append(serWorker.Create(OpCodes.Call, Weaver.NetworkBehaviourDirtyBitsReference));
|
serWorker.Append(serWorker.Create(OpCodes.Call, Weaver.NetworkBehaviourDirtyBitsReference));
|
||||||
serWorker.Append(serWorker.Create(OpCodes.Callvirt, Writers.GetWriteFunc(Weaver.uint64Type)));
|
serWorker.Append(serWorker.Create(OpCodes.Call, Writers.GetWriteFunc(Weaver.uint64Type)));
|
||||||
|
|
||||||
// generate a writer call for any dirty variable in this class
|
// generate a writer call for any dirty variable in this class
|
||||||
|
|
||||||
@ -575,7 +575,7 @@ void GenerateDeSerialization()
|
|||||||
|
|
||||||
// get dirty bits
|
// get dirty bits
|
||||||
serWorker.Append(serWorker.Create(OpCodes.Ldarg_1));
|
serWorker.Append(serWorker.Create(OpCodes.Ldarg_1));
|
||||||
serWorker.Append(serWorker.Create(OpCodes.Callvirt, Readers.GetReadFunc(Weaver.uint64Type)));
|
serWorker.Append(serWorker.Create(OpCodes.Call, Readers.GetReadFunc(Weaver.uint64Type)));
|
||||||
serWorker.Append(serWorker.Create(OpCodes.Stloc_0));
|
serWorker.Append(serWorker.Create(OpCodes.Stloc_0));
|
||||||
|
|
||||||
// conditionally read each syncvar
|
// conditionally read each syncvar
|
||||||
|
Loading…
Reference in New Issue
Block a user