/*
 * Stonage: a puzzle game
 * Copyright (C) 2001 Luc Saillard <luc@saillard.org>
 *
 * Header file for loading Level file
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 * 
 */

#ifndef __LEVEL_IO_H
#define __LEVEL_IO_H

#include "level.h"

struct level_desc
{
  unsigned char version[4]  __attribute__ ((packed)); /* LVL?, ? is the version number of the file */
  unsigned char sizex[2]    __attribute__ ((packed)); /* width of the playfield  (u16) */
  unsigned char sizey[2]    __attribute__ ((packed)); /* height of the playfield (u16) */
  unsigned char nsquares[2] __attribute__ ((packed)); /* number of differents squares in this file (u16) */

  unsigned char dummy[22];            /* For futher extension */
};

struct t_level *Level_Load(const char *filename);

#endif

