deleting walls

This commit is contained in:
Luka Jankovic 2025-07-23 18:48:41 +02:00
parent b7b8bd8b1e
commit edbe4eb8ae
5 changed files with 22 additions and 0 deletions

View file

@ -111,6 +111,16 @@ struct kubo_wall *kubo_context_get_pending_wall(struct kubo_context *context) {
return wall;
}
void kubo_context_delete_wall(struct kubo_context *context) {
if (context->state.id != KUBO_CONTEXT_WALL_SELECT ||
!context->walls.count) {
return;
}
kubo_wall_arr_del(&context->walls, context->wall_select_index);
kubo_context_select_next_wall(context);
}
void kubo_context_select_next_wall(struct kubo_context *context) {
if (context->state.id != KUBO_CONTEXT_WALL_SELECT ||
!context->walls.count) {