Rename Irukagotchi to Dolphin. Add basic game state structures. (#268)
* Rename Irukagotchi to Dolphin. Add basic game state structures. * Dolphin: state, counters, api. BT: shared access to flash. Flash: write api. * add fake -1 deeds, example of changing icounter Co-authored-by: coreglitch <mail@s3f.ru>
This commit is contained in:
22
applications/dolphin/dolphin_state.h
Normal file
22
applications/dolphin/dolphin_state.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include "dolphin_deed.h"
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct DolphinState DolphinState;
|
||||
|
||||
DolphinState* dolphin_state_alloc();
|
||||
|
||||
void dolphin_state_release(DolphinState* dolphin_state);
|
||||
|
||||
void dolphin_state_save(DolphinState* dolphin_state);
|
||||
|
||||
void 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);
|
Reference in New Issue
Block a user