You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logger.LogDebug($"[C] writing {GetType().Name} to offset 0x{templatePosition:X} (parent: {parent.Name})");
914
+
#endif
913
915
vartype=GetType();
914
916
varfields=type.GetFields().OrderBy( field =>field.MetadataToken);// hack to get fields in order of declaration (todo: use something less hacky, this might break mono?)
915
917
@@ -963,7 +965,9 @@ public void SerializeGenericList( BinaryWriter writer, IList list, long listHead
963
965
vartemplate=(NMSTemplate)entry;
964
966
varlistObjects=newList<Tuple<long,object>>();// new list of objects so that this data is serialised first
965
967
varaddtData=newDictionary<long,object>();
968
+
#if DEBUG_TEMPLATE
966
969
Logger.LogDebug($"[C] writing {template.GetType().Name} to offset 0x{writer.BaseStream.Position:X}");
970
+
#endif
967
971
// pass the new listObject object in place of additionalData so that this branch is serialised before the whole layer
0 commit comments