Add doc on file format

master
sfan5 2014-09-04 19:24:35 +02:00
parent 662ff63b5d
commit 5b376696a0
1 changed files with 15 additions and 0 deletions

15
fileformat.txt Normal file
View File

@ -0,0 +1,15 @@
NM database file format:
------------------------
char[4] magic = "NMDB"
u8 version = 1
repeat {
s16 x
s16 z
s16 y
u16 player id
}
* everything little endian
* s16's are serialized like this:
* write_u16(value + 32768)
* the player id corresponds to the player listed on that line in nm_players.db (counting from 0)