6 #include <msp/datafile/objectloader.h>
16 class Loader: public DataFile::ObjectLoader<Armature>
21 void link(const std::string &);
27 class Loader: public DataFile::ObjectLoader<Link>
30 const Armature &armature;
33 Loader(Link &, const Armature &);
35 void base(float, float, float);
36 void parent(const std::string &);
46 Link(const std::string &, unsigned);
48 void set_parent(const Link *);
49 void set_base(const Vector3 &);
51 const std::string &get_name() const { return name; }
52 unsigned get_index() const { return index; }
53 const Link *get_parent() const { return parent; }
54 const Vector3 &get_base() const { return base; }
58 std::list<Link> links;
63 const Link &get_link(unsigned) const;
64 const Link &get_link(const std::string &) const;
65 unsigned get_max_link_index() const;