2020-12-18 20:15:29 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-09-28 09:40:39 +00:00
|
|
|
#include "helpers/dolphin_deed.h"
|
2020-12-18 20:15:29 +00:00
|
|
|
|
|
|
|
typedef struct Dolphin Dolphin;
|
|
|
|
|
2021-09-28 09:40:39 +00:00
|
|
|
/* Load Dolphin state
|
|
|
|
* Thread safe
|
|
|
|
*/
|
|
|
|
|
|
|
|
bool dolphin_load(Dolphin* dolphin);
|
|
|
|
|
2021-01-08 04:42:48 +00:00
|
|
|
/* Deed complete notification. Call it on deed completion.
|
2020-12-18 20:15:29 +00:00
|
|
|
* See dolphin_deed.h for available deeds. In futures it will become part of assets.
|
2021-01-08 04:42:48 +00:00
|
|
|
* Thread safe
|
2020-12-18 20:15:29 +00:00
|
|
|
*/
|
2021-09-28 09:40:39 +00:00
|
|
|
|
2020-12-18 20:15:29 +00:00
|
|
|
void dolphin_deed(Dolphin* dolphin, DolphinDeed deed);
|
2021-09-28 09:40:39 +00:00
|
|
|
|
|
|
|
/* Save Dolphin state (write to permanent memory)
|
|
|
|
* Thread safe
|
|
|
|
*/
|
|
|
|
|
|
|
|
void dolphin_save(Dolphin* dolphin);
|
|
|
|
|
|
|
|
/* Retrieve dolphin's icounter and butthurt values
|
|
|
|
* Thread safe
|
|
|
|
*/
|
|
|
|
|
|
|
|
DolphinDeedWeight dolphin_stats(Dolphin* dolphin);
|