1
0
Fork 0
mirror of https://git.sr.ht/~kikoodx/sle synced 2021-05-23 12:50:56 +02:00
sle/include/editing_area/level.h

21 lines
460 B
C
Raw Normal View History

2021-03-18 18:30:36 +01:00
/* SPDX-License-Identifier: GPL-3.0-or-later */
/* Copyright (C) 2021 KikooDX */
2021-03-18 17:27:34 +01:00
#pragma once
#include "options.h"
typedef unsigned int Tile;
2021-03-18 17:27:34 +01:00
struct Level {
int width;
int height;
Tile *data;
2021-03-18 17:27:34 +01:00
};
/* 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);