sle/include/editing_area/level.h

21 lines
460 B
C

/* SPDX-License-Identifier: GPL-3.0-or-later */
/* Copyright (C) 2021 KikooDX */
#pragma once
#include "options.h"
typedef unsigned int Tile;
struct Level {
int width;
int height;
Tile *data;
};
/* return -1 if error */
int level_read(struct Level *, char *path);
/* return -1 if error */
int level_create(struct Level *, struct Options options);
void level_free(struct Level *);
/* return -1 if error */
int level_write(struct Level level, char *path);