mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-24 05:23:06 +00:00
d1f523687e
* dolphin scene draft wip * gui/elements multiline framed text added * zoom poc * item callbacks * engine tweaks * move scenes out of services * improve dolphin gfx selection * glitch hints * dialogue typewriter effect * app loading from scenes app, small action changes, passport app(WIP) * removed passport from main dolphin app, added statusbar * small elements position fixes * fix thread alloc, dolphin and dolphin_scene free functions, other minor issues * sleep emote improvements * Dolpin: fix memory leaks, variable namings and etc Co-authored-by: gornekich <44112859+gornekich@users.noreply.github.com> Co-authored-by: DrZlo13 <who.just.the.doctor@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
27 lines
No EOL
756 B
C
27 lines
No EOL
756 B
C
#pragma once
|
|
|
|
#include "dolphin_deed.h"
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
typedef struct DolphinState DolphinState;
|
|
|
|
DolphinState* dolphin_state_alloc();
|
|
|
|
void dolphin_state_free(DolphinState* dolphin_state);
|
|
|
|
bool dolphin_state_save(DolphinState* dolphin_state);
|
|
|
|
bool dolphin_state_load(DolphinState* dolphin_state);
|
|
|
|
void dolphin_state_clear(DolphinState* dolphin_state);
|
|
|
|
void dolphin_state_on_deed(DolphinState* dolphin_state, DolphinDeed deed);
|
|
|
|
uint32_t dolphin_state_get_icounter(DolphinState* dolphin_state);
|
|
|
|
uint32_t dolphin_state_get_butthurt(DolphinState* dolphin_state);
|
|
|
|
uint32_t dolphin_state_get_level(DolphinState* dolphin_state);
|
|
|
|
uint32_t dolphin_state_xp_to_levelup(DolphinState* dolphin_state, uint32_t level, bool remaining); |