Angband
Main Page
Data Structures
Files
File List
Globals
src
savefile.h
Go to the documentation of this file.
1
18
#ifndef INCLUDED_SAVEFILE_H
19
#define INCLUDED_SAVEFILE_H
20
21
#define EQUIP_CODE 1
22
#define INVEN_CODE 2
23
#define FINISHED_CODE 3
24
#define ITEM_VERSION 5
25
35
bool
savefile_save
(
const
char
*
path
);
36
40
bool
savefile_load
(
const
char
*
path
,
bool
cheat_death
);
41
45
const
char
*
savefile_get_description
(
const
char
*
path
);
46
47
54
/* Utility */
55
void
note
(
const
char
*
msg
);
56
57
/* Writing bits */
58
void
wr_byte
(
byte
v);
59
void
wr_u16b
(
u16b
v);
60
void
wr_s16b
(
s16b
v);
61
void
wr_u32b
(
u32b
v);
62
void
wr_s32b
(
s32b
v);
63
void
wr_string
(
const
char
*str);
64
void
pad_bytes
(
int
n);
65
66
/* Reading bits */
67
void
rd_byte
(
byte
*ip);
68
void
rd_u16b
(
u16b
*ip);
69
void
rd_s16b
(
s16b
*ip);
70
void
rd_u32b
(
u32b
*ip);
71
void
rd_s32b
(
s32b
*ip);
72
void
rd_string
(
char
*str,
int
max);
73
void
strip_bytes
(
int
n);
74
75
76
77
/* load.c */
78
int
rd_randomizer
(
void
);
79
int
rd_options
(
void
);
80
int
rd_messages
(
void
);
81
int
rd_monster_memory
(
void
);
82
int
rd_object_memory
(
void
);
83
int
rd_quests
(
void
);
84
int
rd_artifacts
(
void
);
85
int
rd_player
(
void
);
86
int
rd_ignore
(
void
);
87
int
rd_misc
(
void
);
88
int
rd_player_hp
(
void
);
89
int
rd_player_spells
(
void
);
90
int
rd_gear
(
void
);
91
int
rd_stores
(
void
);
92
int
rd_dungeon
(
void
);
93
int
rd_chunks
(
void
);
94
int
rd_objects
(
void
);
95
int
rd_monsters
(
void
);
96
int
rd_history
(
void
);
97
int
rd_traps
(
void
);
98
int
rd_null
(
void
);
99
100
/* save.c */
101
void
wr_description
(
void
);
102
void
wr_randomizer
(
void
);
103
void
wr_options
(
void
);
104
void
wr_messages
(
void
);
105
void
wr_monster_memory
(
void
);
106
void
wr_object_memory
(
void
);
107
void
wr_quests
(
void
);
108
void
wr_artifacts
(
void
);
109
void
wr_player
(
void
);
110
void
wr_ignore
(
void
);
111
void
wr_misc
(
void
);
112
void
wr_player_hp
(
void
);
113
void
wr_player_spells
(
void
);
114
void
wr_randarts
(
void
);
115
void
wr_gear
(
void
);
116
void
wr_stores
(
void
);
117
void
wr_dungeon
(
void
);
118
void
wr_chunks
(
void
);
119
void
wr_objects
(
void
);
120
void
wr_monsters
(
void
);
121
void
wr_ghost
(
void
);
122
void
wr_history
(
void
);
123
void
wr_traps
(
void
);
124
125
126
#endif
/* INCLUDED_SAVEFILE_H */
Generated on Fri Feb 6 2015 20:35:01 for Angband by
1.8.1.2