#include "stdafx.h"
#include "rmgen.h"
#include "output.h"
#include "map.h"
#include "object.h"
#include "pmp_file.h"
using namespace std;
void OutputObject(Object* e, ostringstream& xml) {
if(e->isEntity()) {
xml << "\
\n\
" << e->name << "\n\
" << e->player << "\n\
x << "\" y=\"" << 4*e->y << "\" z=\"" << 4*e->z << "\" />\n\
orientation << "\" />\n\
\n";
}
else {
xml << "\
\n\
" << e->name << "\n\
x << "\" y=\"" << 4*e->y << "\" z=\"" << 4*e->z << "\" />\n\
orientation << "\" />\n\
\n";
}
}
void OutputObjects(ostringstream& xml, Map* m, bool entities) {
for(int i=0; iobjects.size(); i++) {
if(m->objects[i]->isEntity() == entities) {
OutputObject(m->objects[i], xml);
}
}
for(int x=0; xsize; x++) {
for(int y=0; ysize; y++) {
vector