示例#1
0
            internal static _GetCurrentSlot GetCurrentSlot()
            {
                if (_GetCurrentSlotFunc == null)
                {
                    _GetCurrentSlotFunc =
                        (_GetCurrentSlot)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnSFXController_getCurrentSlot"), typeof(_GetCurrentSlot));
                }

                return(_GetCurrentSlotFunc);
            }
示例#2
0
            internal static _GetCurrentSlot GetCurrentSlot()
            {
                if (_GetCurrentSlotFunc == null)
                {
                    _GetCurrentSlotFunc =
                        (_GetCurrentSlot)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnSFXController_getCurrentSlot"), typeof(_GetCurrentSlot));
                }

                return(_GetCurrentSlotFunc);
            }