void ParseSingleConfig(JSONNode config) { var type = config["type"].Value; switch (type) { case Setting.type: JSONResource.Cache <Setting>(config); break; case SlotType.type: SlotType.Cache(config); break; case EquipmentDesignation.type: EquipmentDesignation.Cache(config); break; case EquipmentType.type: EquipmentType.Cache(config); break; case ConsumableTemplate.type: JSONResource.Cache <ConsumableTemplate>(config); break; case EnvironmentTemplate.type: JSONResource.Cache <EnvironmentTemplate>(config); break; case Environment.type: JSONResource.Cache <Environment>(config); break; case RoomTemplate.type: JSONResource.Cache <RoomTemplate>(config); break; case MobTemplate.type: JSONResource.Cache <MobTemplate>(config); break; case InteractionTemplate.type: JSONResource.Cache <InteractionTemplate>(config); break; case Rarity.type: Rarity.Cache(config); break; default: Debug.LogWarning(string.Format("Failed to load {0} {1}", config["type"], config["key"])); break; } }