#pragma once #include #include #include #include #include namespace frostbite2D::character { struct JobConfig { std::string name; std::map defaultAvatarList; }; struct CharacterConfig { int jobId = -1; std::string jobTag; std::string baseJobPath; JobConfig baseJobConfig; std::map animationPath; }; struct EquipmentVariation { int layer = 0; std::string animationGroup; std::array imgFormat = {0, 0}; }; struct EquipmentConfig { int id = -1; std::string path; std::string name; std::vector usableJobs; std::map> jobAnimations; }; bool loadCharacterIndex(std::map& outIndex); std::optional loadCharacterConfig(int jobId); bool loadEquipmentIndex(std::map& outIndex); std::optional loadEquipmentConfig(int equipmentId); } // namespace frostbite2D::character