This repository has been archived on 2024-11-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Dawn-GB/src/conversation/queue.c
2022-01-08 21:44:02 -08:00

36 lines
714 B
C

/**
* Copyright (c) 2022 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include "queue.h"
#include "pause.h"
#include "textbox.h"
uint16_t QUEUE_ITEM;
void conversationQueueInit() {
QUEUE_ITEM = 0;
}
void conversationQueueNext() {
BGB_printf("Queue item: %d\n", QUEUE_ITEM);
switch(QUEUE_ITEM) {
case 0:
conversationTextboxSetText(STR_POKER_GAME_START_DATA, STR_POKER_GAME_START_LENGTH);
QUEUE_ITEM++;
break;
case 1:
conversationPause(3);
QUEUE_ITEM++;
break;
case 2:
conversationTextboxSetText(STR_POKER_GAME_START_DATA, STR_POKER_GAME_START_LENGTH);
break;
}
}