 1c4e6ec74d
			
		
	
	
		1c4e6ec74d
		
			
		
	
	
	
	
		
			
			* refactoring p1 * refactoring p2 * cleanups * locked screen refresh rate fix * better locked view logic * seperate dolphin service and desktop app * Desktop: Favorite app acess (Left key), Settings app * Desktop settings version, submenu header * remove unused icon anomation + naming fix Co-authored-by: あく <alleteam@gmail.com>
		
			
				
	
	
		
			30 lines
		
	
	
		
			611 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			611 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include "helpers/dolphin_deed.h"
 | |
| 
 | |
| typedef struct Dolphin Dolphin;
 | |
| 
 | |
| /* Load Dolphin state
 | |
|  * Thread safe
 | |
|  */
 | |
| 
 | |
| bool dolphin_load(Dolphin* dolphin);
 | |
| 
 | |
| /* Deed complete notification. Call it on deed completion.
 | |
|  * See dolphin_deed.h for available deeds. In futures it will become part of assets.
 | |
|  * Thread safe
 | |
|  */
 | |
| 
 | |
| void dolphin_deed(Dolphin* dolphin, DolphinDeed deed);
 | |
| 
 | |
| /* 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); |