53 explicit AnimJsonParser(gsl::not_null<const TextFormatter *> format);
66 parse(
const std::filesystem::path &json_path)
const;
95 const std::filesystem::path &json_path,
96 const std::map<DynamicCasedName, AnimParams> ¶ms,
97 const std::map<
DynamicCasedName, std::vector<AnimOverrideEntry>> &primary_references = {})
const;
Parses and writes animation configuration JSON files (anim.json).
ChainableResult< void > write(const std::filesystem::path &json_path, const std::map< DynamicCasedName, AnimParams > ¶ms, const std::map< DynamicCasedName, std::vector< AnimOverrideEntry > > &primary_references={}) const
Writes animation parameters to an anim.json file.
ChainableResult< std::map< DynamicCasedName, std::vector< AnimOverrideEntry > > > parse_primary_references(const std::filesystem::path &json_path) const
Parses the primary_references section from an anim.json file.
ChainableResult< std::map< DynamicCasedName, AnimParams > > parse(const std::filesystem::path &json_path) const
Parses an anim.json file into a map of animation parameters.
A result type that maintains a chainable sequence of errors for debugging and error reporting.
A smart string wrapper that preserves word structure for lossless case format conversion.
Abstract base class for applying text styling with context-aware formatting.