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