38 lines
798 B
C
38 lines
798 B
C
/**
|
|
* Copyright (c) 2025 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#pragma once
|
|
#include "dusk.h"
|
|
|
|
typedef struct cutsceneitem_s cutsceneitem_t;
|
|
typedef union cutsceneitemdata_u cutsceneitemdata_t;
|
|
|
|
typedef float_t cutscenewait_t;
|
|
typedef float_t cutscenewaitdata_t;
|
|
|
|
/**
|
|
* Starts a wait item (stores the duration in data).
|
|
*
|
|
* @param item The cutscene item.
|
|
* @param data Runtime data storage.
|
|
*/
|
|
void cutsceneWaitStart(
|
|
const cutsceneitem_t *item,
|
|
cutsceneitemdata_t *data
|
|
);
|
|
|
|
/**
|
|
* Updates a wait item.
|
|
*
|
|
* @param item The cutscene item.
|
|
* @param data Runtime data storage.
|
|
* @returns true when the wait has elapsed.
|
|
*/
|
|
bool_t cutsceneWaitUpdate(
|
|
const cutsceneitem_t *item,
|
|
cutsceneitemdata_t *data
|
|
); |