1 #ifndef MSP_GAME_MESHSOURCE_H_
2 #define MSP_GAME_MESHSOURCE_H_
4 #include <msp/datafile/objectloader.h>
6 #include "mspgame_api.h"
10 struct MeshSourceSetup
12 class Loader: public DataFile::ObjectLoader<MeshSourceSetup>
15 static Loader::ActionMap shared_actions;
18 Loader(MeshSourceSetup &);
21 void init_actions() override;
24 std::string object_name;
27 class MSPGAME_API MeshSource: public Component
30 using Setup = MeshSourceSetup;
36 MeshSource(Handle<Entity> e, const Setup &s): Component(e), setup(s) { }
38 const std::string &get_object_name() const { return setup.object_name; }
41 } // namespace Msp::Game