コード例 #1
0
        /// <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);
        }
コード例 #2
0
ファイル: NativeLoader.cs プロジェクト: hhinterview/SampSharp
 /// <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);
 }