コード例 #1
0
            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));
            }
コード例 #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));
            }
コード例 #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);
            }
コード例 #4
0
ファイル: NavMesh.cs プロジェクト: lukaspj/T3D-CSharp-Tools
            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);
            }