dolphin.h 611 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "helpers/dolphin_deed.h"
  3. typedef struct Dolphin Dolphin;
  4. /* Load Dolphin state
  5. * Thread safe
  6. */
  7. bool dolphin_load(Dolphin* dolphin);
  8. /* Deed complete notification. Call it on deed completion.
  9. * See dolphin_deed.h for available deeds. In futures it will become part of assets.
  10. * Thread safe
  11. */
  12. void dolphin_deed(Dolphin* dolphin, DolphinDeed deed);
  13. /* Save Dolphin state (write to permanent memory)
  14. * Thread safe
  15. */
  16. void dolphin_save(Dolphin* dolphin);
  17. /* Retrieve dolphin's icounter and butthurt values
  18. * Thread safe
  19. */
  20. DolphinDeedWeight dolphin_stats(Dolphin* dolphin);