Пример #1
0
            internal static bool write(IntPtr thisPtr, IntPtr obj, [MarshalAs(UnmanagedType.LPWStr)] string filename)
            {
                if (_writeFunc == null)
                {
                    _writeFunc =
                        (_write)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                           "fn_Taml_write"), typeof(_write));
                }

                return(_writeFunc(thisPtr, obj, filename));
            }
Пример #2
0
            internal static bool write(IntPtr thisPtr, int argc, string[] argv)
            {
                if (_writeFunc == null)
                {
                    _writeFunc =
                        (_write)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                           "fn_Settings_write"), typeof(_write));
                }

                return(_writeFunc(thisPtr, argc, argv));
            }