]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - docs/developer/XMLmap.txt
a88dd7f9c3db054e7652283c13c4e34dbd4c968e
[xonotic/netradiant.git] / docs / developer / XMLmap.txt
1 XMLmap branch:\r
2 \r
3 need to move the map loading / saving code out in a module\r
4 what are the main dependencies?\r
5 \r
6 main functions to move out:\r
7 Map_LoadFile\r
8 Map_SaveFile\r
9 (and all their direct dependencies/call graph)\r
10 ex Entity_Parse Brush_Parse Entity_Write Brush_Write\r
11 \r
12 but? even changing to XML format we would need those functions too?\r
13 is it worth having the .map and .xmlmap through a same interface?\r
14 \r
15 what dependencies?\r
16 -> active_brushes\r
17 -> GetToken etc.\r
18 -> LoadFile (load into a buffer) .. that's VFS right?\r
19 \r
20 first step: move some code out in map module and try to compile it..\r
21 Map_LoadFile for example\r
22 or the whole map.cpp?\r
23 \r
24 first problem: entity_t is declared in entity.h, currently not available to\r
25 the plugin API. Clean way would be to create a wrapper, but speed says we\r
26 should move entity_t to qertypes.h..\r
27 \r