Beispiel #1
0
            internal static IntPtr FindObjectById(uint id)
            {
                if (_FindObjectByIdFunc == null)
                {
                    _FindObjectByIdFunc =
                        (_FindObjectById)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                    "FindObjectById"), typeof(_FindObjectById));
                }

                return(_FindObjectByIdFunc(id));
            }
Beispiel #2
0
            internal static IntPtr FindObjectById(FindObjectById_Struct args)
            {
                if (_FindObjectByIdFunc == null)
                {
                    _FindObjectByIdFunc =
                        (_FindObjectById)Marshal.GetDelegateForFunctionPointer(NativeLibrary.GetExport(Torque3D.Torque3DLibHandle,
                                                                                                       "fnFindObjectById"), typeof(_FindObjectById));
                }

                return(_FindObjectByIdFunc(args));
            }