Exemplo n.º 1
0
            internal static IntPtr FindDataBlockByName(string name)
            {
                if (_FindDataBlockByNameFunc == null)
                {
                    _FindDataBlockByNameFunc =
                        (_FindDataBlockByName)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                         "FindDataBlockByName"), typeof(_FindDataBlockByName));
                }

                return(_FindDataBlockByNameFunc(name));
            }
Exemplo n.º 2
0
            internal static IntPtr FindDataBlockByName(string name)
            {
                if (_FindDataBlockByNameFunc == null)
                {
                    _FindDataBlockByNameFunc =
                        (_FindDataBlockByName)Marshal.GetDelegateForFunctionPointer(NativeLibrary.GetExport(Torque3D.Torque3DLibHandle,
                                                                                                            "fnFindDataBlockByName"), typeof(_FindDataBlockByName));
                }

                return(_FindDataBlockByNameFunc(name));
            }