Пример #1
0
            internal static _OnPreactivate OnPreactivate()
            {
                if (_OnPreactivateFunc == null)
                {
                    _OnPreactivateFunc =
                        (_OnPreactivate)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "cbafxMagicSpellData_onPreactivate"), typeof(_OnPreactivate));
                }

                return(_OnPreactivateFunc);
            }
Пример #2
0
            internal static _OnPreactivate OnPreactivate()
            {
                if (_OnPreactivateFunc == null)
                {
                    _OnPreactivateFunc =
                        (_OnPreactivate)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "cbafxMagicSpellData_onPreactivate"), typeof(_OnPreactivate));
                }

                return(_OnPreactivateFunc);
            }