Class CollectableService

java.lang.Object
com.csse3200.game.services.CollectableService

public final class CollectableService extends Object
Simple service to load collectable configs and provide lookup by id. Assumes configs/items.json is valid.
  • Method Details

    • load

      public static void load(String path)
      Load configs from a JSON array file
    • get

      public static CollectablesConfig get(String id)
      Get config by id (null if not found).