Exemple #1
0
            internal static IntPtr read(IntPtr thisPtr, [MarshalAs(UnmanagedType.LPWStr)] string filename)
            {
                if (_readFunc == null)
                {
                    _readFunc =
                        (_read)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                          "fn_Taml_read"), typeof(_read));
                }

                return(_readFunc(thisPtr, filename));
            }
Exemple #2
0
            internal static bool read(IntPtr thisPtr)
            {
                if (_readFunc == null)
                {
                    _readFunc =
                        (_read)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                          "fn_Settings_read"), typeof(_read));
                }

                return(_readFunc(thisPtr));
            }