Class GameService

java.lang.Object
mindustry.service.GameService

public class GameService extends Object
Interface for handling game service across multiple platforms. This includes: - Desktop (Steam) The default implementation does nothing.
  • 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

      public void completeAchievement(String name)
    • clearAchievement

      public void clearAchievement(String name)
    • isAchieved

      public boolean isAchieved(String name)
    • getStat

      public int getStat(String name, int def)
    • setStat

      public void setStat(String name, int amount)
    • storeStats

      public void storeStats()