Package mindustry.service
Class GameService
java.lang.Object
mindustry.service.GameService
Interface for handling game service across multiple platforms.
This includes:
- Desktop (Steam)
The default implementation does nothing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAchievement(String name) voidcompleteAchievement(String name) booleanenabled()intvoidinit()Begin listening for new achievement events, once the game service is activated.booleanisAchieved(String name) voidvoid
-
Constructor Details
-
GameService
public GameService()
-
-
Method Details
-
init
public void init()Begin listening for new achievement events, once the game service is activated. This can be called at any time, but only once. -
enabled
public boolean enabled() -
completeAchievement
-
clearAchievement
-
isAchieved
-
getStat
-
setStat
-
storeStats
public void storeStats()
-