/// <summary> /// Initializes a new instance of the <see cref="NativeLoader" /> class. /// </summary> /// <param name="gameModeClient">The game mode client.</param> public NativeLoader(IGameModeClient gameModeClient) { _gameModeClient = gameModeClient ?? throw new ArgumentNullException(nameof(gameModeClient)); ProxyFactory = //gameModeClient is HostedGameModeClient //? (INativeObjectProxyFactory) new FastNativeBasedNativeObjectProxyFactory(gameModeClient) // : new NativeHandleBasedNativeObjectProxyFactory(gameModeClient, this); }
/// <summary> /// Initializes a new instance of the <see cref="NativeLoader" /> class. /// </summary> /// <param name="gameModeClient">The game mode client.</param> public NativeLoader(IGameModeClient gameModeClient) { _gameModeClient = gameModeClient ?? throw new ArgumentNullException(nameof(gameModeClient)); ProxyFactory = new NativeHandleBasedNativeObjectProxyFactory(gameModeClient, this); }