#include "level.h"
void level::save(char *FileName)
{
   /* FILE *SaveFile;

    SaveFile = fopen (FileName, "wb"); // opens file for writing and in binary mode

    const char SIGNATURE[] = "JEF"; // for Load / Save Demo
    fwrite (SIGNATURE, sizeof(const char), sizeof(SIGNATURE), SaveFile);

    fwrite (&vertnum, sizeof(int), 1, SaveFile);
    fwrite (&linenum, sizeof(int), 1, SaveFile);

    fwrite (lvlvert, sizeof (vector2d), vertnum, SaveFile);
    fwrite (lvlline, sizeof (line2d), linenum, SaveFile);

    fclose (SaveFile);*/
}

void level::load(char *FileName)
{
    /*FILE *SaveFile;

    SaveFile = fopen (FileName, "rb"); // opens file for writing and in binary mode

    char SIGNATURE[4]; // for Load / Save Demo
    fread (SIGNATURE, sizeof (char), 4, SaveFile);

    fread (&vertnum, sizeof(int), 1, SaveFile);
    fread (&linenum, sizeof(int), 1, SaveFile);

    delete[] lvlvert;
    lvlvert = new physpoint[vertnum];
    delete[] lvlline;
    lvlline = new line2d[linenum];

    fread (lvlvert, sizeof (vector2d), vertnum, SaveFile);
    fread (lvlline, sizeof (line2d), linenum, SaveFile);

    fclose (SaveFile);*/
}


