public static void RegisterFromGameAssemblies(this MyReplicationLayerBase layer)
        {
#if XB1 // XB1_ALLINONEASSEMBLY
            layer.RegisterFromAssembly(MyAssembly.AllInOneAssembly);
#else // !XB1
            var assemblies = new Assembly[] { typeof(MySandboxGame).Assembly, MyPlugins.GameAssembly, MyPlugins.SandboxAssembly, MyPlugins.SandboxGameAssembly, MyPlugins.UserAssembly };
            layer.RegisterFromAssembly(assemblies.Where(s => s != null).Distinct());
#endif // !XB1
        }
 public static void RegisterFromGameAssemblies(this MyReplicationLayerBase layer)
 {
     var assemblies = new Assembly[] { typeof(MySandboxGame).Assembly, MyPlugins.GameAssembly, MyPlugins.SandboxAssembly, MyPlugins.SandboxGameAssembly, MyPlugins.UserAssembly };
     layer.RegisterFromAssembly(assemblies.Where(s => s != null).Distinct());
 }