mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-22 10:43:11 +00:00
73ecc7cde6
* 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>
23 lines
575 B
C
23 lines
575 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
/* Countable deed that affects icounter*/
|
|
typedef enum {
|
|
// iButton
|
|
DolphinDeedIButtonRead,
|
|
DolphinDeedIButtonWrite,
|
|
DolphinDeedIButtonEmulate,
|
|
// for debug
|
|
DolphinDeedWrong,
|
|
// Special value, do not use
|
|
DolphinDeedMax
|
|
} DolphinDeed;
|
|
|
|
typedef struct {
|
|
int32_t icounter; // how many icounter get by Deed
|
|
uint32_t limit_value; // how many deeds in limit interval
|
|
uint32_t limit_interval; // interval, in minutes
|
|
} DolphinDeedWeight;
|
|
|
|
const DolphinDeedWeight* dolphin_deed_weight(DolphinDeed deed);
|