2021-03-26 13:54:38 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-3.0-or-later */
|
|
|
|
/* Copyright (C) 2021 KikooDX */
|
|
|
|
#pragma once
|
|
|
|
|
2021-03-27 18:34:47 +01:00
|
|
|
#include <raylib.h>
|
|
|
|
|
2021-03-26 13:54:38 +01:00
|
|
|
#define BUFFER_SIZE 256
|
|
|
|
|
|
|
|
struct Options {
|
2021-03-26 15:02:10 +01:00
|
|
|
/* required arguments */
|
2021-03-26 13:54:38 +01:00
|
|
|
char tileset_path[BUFFER_SIZE];
|
|
|
|
char level_path[BUFFER_SIZE];
|
2021-03-26 15:02:10 +01:00
|
|
|
/* optionnal arguments, default values in conf.h */
|
2021-03-26 13:54:38 +01:00
|
|
|
int tile_width;
|
|
|
|
int tile_height;
|
2021-03-27 19:15:08 +01:00
|
|
|
int tile_first;
|
2021-03-27 12:19:10 +01:00
|
|
|
int new_level_width;
|
|
|
|
int new_level_height;
|
2021-04-17 17:22:41 +02:00
|
|
|
int editor_scale;
|
2021-03-26 14:39:26 +01:00
|
|
|
int editor_width;
|
|
|
|
int editor_height;
|
2021-03-26 13:54:38 +01:00
|
|
|
int editor_target_fps;
|
|
|
|
int editor_draw_offset_x;
|
|
|
|
int editor_draw_offset_y;
|
2021-03-27 18:34:47 +01:00
|
|
|
Color editor_bg_color;
|
2021-04-17 17:22:41 +02:00
|
|
|
int picker_scale;
|
2021-03-26 13:54:38 +01:00
|
|
|
int picker_target_fps;
|
|
|
|
int picker_padding;
|
2021-03-27 18:34:47 +01:00
|
|
|
Color picker_bg_color;
|
2021-03-26 15:02:10 +01:00
|
|
|
/* determined after previous options */
|
|
|
|
int tileset_width;
|
|
|
|
int tileset_height;
|
|
|
|
int picker_window_width;
|
|
|
|
int picker_window_height;
|
2021-03-27 12:19:10 +01:00
|
|
|
int level_create;
|
2021-03-26 13:54:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Options options_defaults(void);
|