Debian Codegraph @

manage/doorpage.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #ifndef DOORPAGE_H
20 #define DOORPAGE_Hcxx . . $ `manage/doorpage.h:20:9`!
21
22 #include "manage.h"cxx . . $ `<file>/lib/manage.h`/
23 #include "door.h"cxx . . $ `<file>/Descent3/door.h`/
24 #include "cfile.h"cxx . . $ `<file>/cfile/cfile.h`/
25 #include "pstypes.h"cxx . . $ `<file>/lib/pstypes.h`/
26
27 struct mngs_door_pagecxx . . $ mngs_door_page# {
28 doorcxx . . $ door# door_structcxx . . $ mngs_door_page#door_struct.;
29 char image_namecxx . . $ mngs_door_page#image_name.[PAGENAME_LENcxx . . $ `lib/manage_external.h:49:9`!];
30 char open_sound_namecxx . . $ mngs_door_page#open_sound_name.[PAGENAME_LENcxx . . $ `lib/manage_external.h:49:9`!];
31 char close_sound_namecxx . . $ mngs_door_page#close_sound_name.[PAGENAME_LENcxx . . $ `lib/manage_external.h:49:9`!];
32 };
33
34 // Door page functions
35 //---------------------------------------------------------------
36
37 // Given an open file pointer and a door_page struct, writes that doorpage out
38 void mng_WriteDoorPagecxx . . $ mng_WriteDoorPage(6856a7589499e64e).(CFILEcxx . . $ CFILE# *outfile, mngs_door_pagecxx . . $ mngs_door_page# *doorpage);
39
40 // Reads a door page from an open file. Returns 0 on error.
41 int mng_ReadDoorPagecxx . . $ mng_ReadDoorPage(8049f1a86201f7be).(CFILEcxx . . $ CFILE# *infile, mngs_door_pagecxx . . $ mngs_door_page# *doorpage);
42
43 // Given an open file pointer and a door_page struct, writes that doorpage out
44 void mng_WriteNewDoorPagecxx . . $ mng_WriteNewDoorPage(6856a7589499e64e).(CFILEcxx . . $ CFILE# *outfile, mngs_door_pagecxx . . $ mngs_door_page# *doorpage);
45
46 // Reads a door page from an open file. Returns 0 on error.
47 int mng_ReadNewDoorPagecxx . . $ mng_ReadNewDoorPage(8049f1a86201f7be).(CFILEcxx . . $ CFILE# *infile, mngs_door_pagecxx . . $ mngs_door_page# *doorpage);
48
49 // Reads in the doorpage named "name" into doorpage struct
50 // Returns 0 on error or couldn't find, else 1 if all is good
51 int mng_FindSpecificDoorPagecxx . . $ mng_FindSpecificDoorPage(bd14268a190b7548).(char *name, mngs_door_pagecxx . . $ mngs_door_page# *doorpage, int offset = 0);
52
53 // Given a door page, allocs a door and calls AssignDoorPageToDoor to actually
54 // load model and values. Rturns door handle on success, -1 if fail
55 int mng_SetAndLoadDoorcxx . . $ mng_SetAndLoadDoor(414cc17dbf066da8).(mngs_door_pagecxx . . $ mngs_door_page# *doorpage);
56
57 // Given a doorpage and a door handle, attempts to make door n correspond to
58 // to the doorpage.
59 // Returns 1 on success, 0 otherwise
60 int mng_AssignDoorPageToDoorcxx . . $ mng_AssignDoorPageToDoor(b7d58baade482006).(mngs_door_pagecxx . . $ mngs_door_page# *doorpage, int n);
61
62 // Copies values from a Door into a door_page
63 void mng_AssignDoorToDoorPagecxx . . $ mng_AssignDoorToDoorPage(d9a46a4affc78c77).(int n, mngs_door_pagecxx . . $ mngs_door_page# *doorpage);
64
65 // Reads in a door page from the local table file, superseding any door
66 // already in RAM with that same name
67 void mng_LoadLocalDoorPagecxx . . $ mng_LoadLocalDoorPage(3639e799710acb68).(CFILEcxx . . $ CFILE# *);
68
69 // Reads in a page off the net
70 void mng_LoadNetDoorPagecxx . . $ mng_LoadNetDoorPage(5a5441f2f69caf20).(CFILEcxx . . $ CFILE# *, bool overlay = false);
71
72 #endif