Skip to content

Commit 08db094

Browse files
fix: PVP-132-2 (2 of 2)
Moving code gen into Runtime and removing the editor portion of the assembly name seems to do the trick. (as long as x-ray thinks this is valid)
1 parent cabcae4 commit 08db094

21 files changed

+22
-6
lines changed

com.unity.netcode.gameobjects/Runtime/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[assembly: InternalsVisibleTo("Unity.Netcode.Components")]
33
#if UNITY_EDITOR
44
[assembly: InternalsVisibleTo("Unity.Netcode.Editor")]
5-
[assembly: InternalsVisibleTo("Unity.Netcode.Editor.CodeGen")]
5+
[assembly: InternalsVisibleTo("Unity.Netcode.CodeGen")]
66
#endif // UNITY_EDITOR
77

88
#if COM_UNITY_NETCODE_ADAPTER_UTP

com.unity.netcode.gameobjects/Editor/CodeGen/CodeGenHelpers.cs renamed to com.unity.netcode.gameobjects/Runtime/CodeGen/CodeGenHelpers.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if UNITY_EDITOR
12
using System;
23
using System.Collections.Generic;
34
using System.IO;
@@ -530,3 +531,4 @@ public static (ModuleDefinition UnityModule, ModuleDefinition NetcodeModule) Fin
530531
}
531532
}
532533
}
534+
#endif

com.unity.netcode.gameobjects/Editor/CodeGen/INetworkMessageILPP.cs renamed to com.unity.netcode.gameobjects/Runtime/CodeGen/INetworkMessageILPP.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if UNITY_EDITOR
12
using System;
23
using System.Collections.Generic;
34
using System.IO;
@@ -309,3 +310,4 @@ private void CreateModuleInitializer(AssemblyDefinition assembly, List<TypeDefin
309310
}
310311
}
311312
}
313+
#endif

com.unity.netcode.gameobjects/Editor/CodeGen/INetworkSerializableILPP.cs renamed to com.unity.netcode.gameobjects/Runtime/CodeGen/INetworkSerializableILPP.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if UNITY_EDITOR
12
using System;
23
using System.Collections.Generic;
34
using System.IO;
@@ -118,3 +119,4 @@ public override ILPostProcessResult Process(ICompiledAssembly compiledAssembly)
118119
}
119120
}
120121
}
122+
#endif

com.unity.netcode.gameobjects/Editor/CodeGen/NetworkBehaviourILPP.cs renamed to com.unity.netcode.gameobjects/Runtime/CodeGen/NetworkBehaviourILPP.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if UNITY_EDITOR
12
using System;
23
using System.Collections.Generic;
34
using System.IO;
@@ -3122,3 +3123,4 @@ private MethodDefinition GenerateStaticHandler(MethodDefinition methodDefinition
31223123
}
31233124
}
31243125
}
3126+
#endif

0 commit comments

Comments
 (0)