Пример #1
0
            internal static _OnConnectionRequest OnConnectionRequest()
            {
                if (_OnConnectionRequestFunc == null)
                {
                    _OnConnectionRequestFunc =
                        (_OnConnectionRequest)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "cbTCPObject_onConnectionRequest"), typeof(_OnConnectionRequest));
                }

                return(_OnConnectionRequestFunc);
            }
Пример #2
0
            internal static _OnConnectionRequest OnConnectionRequest()
            {
                if (_OnConnectionRequestFunc == null)
                {
                    _OnConnectionRequestFunc =
                        (_OnConnectionRequest)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "cbTCPObject_onConnectionRequest"), typeof(_OnConnectionRequest));
                }

                return(_OnConnectionRequestFunc);
            }