internal static bool save(IntPtr thisPtr)
            {
                if (_saveFunc == null)
                {
                    _saveFunc =
                        (_save)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                          "fn_ModuleDefinition_save"), typeof(_save));
                }

                return(_saveFunc(thisPtr));
            }
Example #2
0
            internal static bool save(IntPtr thisPtr, [MarshalAs(UnmanagedType.LPWStr)] string fileName)
            {
                if (_saveFunc == null)
                {
                    _saveFunc =
                        (_save)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                          "fn_TerrainBlock_save"), typeof(_save));
                }

                return(_saveFunc(thisPtr, fileName));
            }
Example #3
0
            internal static void save(IntPtr thisPtr, [MarshalAs(UnmanagedType.LPWStr)] string fileName, bool append)
            {
                if (_saveFunc == null)
                {
                    _saveFunc =
                        (_save)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                          "fn_ActionMap_save"), typeof(_save));
                }

                _saveFunc(thisPtr, fileName, append);
            }
Example #4
0
            internal static void save(IntPtr thisPtr)
            {
                if (_saveFunc == null)
                {
                    _saveFunc =
                        (_save)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                          "fn_NavMesh_save"), typeof(_save));
                }

                _saveFunc(thisPtr);
            }