start refactor context states with kubo_state_wall_select

This commit is contained in:
Luka Jankovic 2025-08-31 02:22:29 +02:00
parent c2c99e73d2
commit 7e065745d2
13 changed files with 349 additions and 103 deletions

35
states/kubo_state_data.h Normal file
View file

@ -0,0 +1,35 @@
/*
* Copyright Luka Jankovic 2025
*
* This file is part of Kubo.
*
* Kubo 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 3 of the License, or (at your option) any later
* version.
*
* Kubo 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
* Kubo. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef KUBO_STATE_DATA_H
#define KUBO_STATE_DATA_H
#include <raylib.h>
typedef void (*kubo_state_entered) (void *context_data);
typedef void (*kubo_state_key) (void *context_data, int key_code);
struct kubo_state_data {
char *label;
Color color;
kubo_state_entered state_entered;
kubo_state_key state_key;
};
#endif