Beispiel #1
0
            internal static _GetRandom GetRandom()
            {
                if (_GetRandomFunc == null)
                {
                    _GetRandomFunc =
                        (_GetRandom)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnSimSet_getRandom"), typeof(_GetRandom));
                }

                return(_GetRandomFunc);
            }
Beispiel #2
0
            internal static _GetRandom GetRandom()
            {
                if (_GetRandomFunc == null)
                {
                    _GetRandomFunc =
                        (_GetRandom)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnSimSet_getRandom"), typeof(_GetRandom));
                }

                return(_GetRandomFunc);
            }