Пример #1
0
            internal static _GetPacketLoss GetPacketLoss()
            {
                if (_GetPacketLossFunc == null)
                {
                    _GetPacketLossFunc =
                        (_GetPacketLoss)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnNetConnection_getPacketLoss"), typeof(_GetPacketLoss));
                }

                return(_GetPacketLossFunc);
            }
Пример #2
0
            internal static _GetPacketLoss GetPacketLoss()
            {
                if (_GetPacketLossFunc == null)
                {
                    _GetPacketLossFunc =
                        (_GetPacketLoss)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnNetConnection_getPacketLoss"), typeof(_GetPacketLoss));
                }

                return(_GetPacketLossFunc);
            }