1 #ifndef MSP_GAME_MESHSOURCE_H_
2 #define MSP_GAME_MESHSOURCE_H_
4 #include <msp/datafile/objectloader.h>
11 class Loader: public DataFile::ObjectLoader<MeshSourceSetup>
14 static Loader::ActionMap shared_actions;
17 Loader(MeshSourceSetup &);
20 void init_actions() override;
23 std::string object_name;
26 class MeshSource: public Component
29 using Setup = MeshSourceSetup;
35 MeshSource(Handle<Entity> e, const Setup &s): Component(e), setup(s) { }
37 const std::string &get_object_name() const { return setup.object_name; }
40 } // namespace Msp::Game