diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-09-04 12:57:04 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-09-04 21:04:45 +0200 |
commit | 35069286534475e9b12b6d44dd82877cc91d37f2 (patch) | |
tree | e6c783cb5d003c39119e9ce3328563bef9e989fe /crawl-ref/source/tags.h | |
parent | 390e44ca6bb7531413d1bb6c09224b83fede1f3a (diff) | |
download | crawl-ref-35069286534475e9b12b6d44dd82877cc91d37f2.tar.gz crawl-ref-35069286534475e9b12b6d44dd82877cc91d37f2.zip |
Rip away the multiple tags code.
I especially enjoyed removing that big ALL-CAPS shouting comment telling
people to never touch the write/read functions for individual tags.
Down with hugely granulated inflexible versioning schemes!
Diffstat (limited to 'crawl-ref/source/tags.h')
-rw-r--r-- | crawl-ref/source/tags.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/crawl-ref/source/tags.h b/crawl-ref/source/tags.h index 3d05e861a4..5e47e11e88 100644 --- a/crawl-ref/source/tags.h +++ b/crawl-ref/source/tags.h @@ -31,15 +31,6 @@ enum tag_type // used during save/load process to identify data blocks TAG_SKIP }; -enum tag_file_type // file types supported by tag system -{ - TAGTYPE_PLAYER = 0, // Foo.sav - TAGTYPE_LEVEL, // Foo.00a, .01a, etc. - TAGTYPE_GHOST, // bones.xxx - - TAGTYPE_PLAYER_NAME, // Used only to read the player name -}; - struct enum_info { void (*collect)(std::vector<std::pair<int,std::string> >& prs); @@ -237,10 +228,8 @@ static inline void unmarshallSigned(reader& th, T& v) * Tag interface * *********************************************************************** */ -tag_type tag_read(reader &inf, int minorVersion, int8_t expected_tags[NUM_TAGS]); +void tag_read(reader &inf, int minorVersion, tag_type tag_id); void tag_write(tag_type tagID, writer &outf); -void tag_set_expected(int8_t tags[], int fileType); -void tag_missing(int tag); /* *********************************************************************** * misc |