]> git.tdb.fi Git - libs/game.git/blobdiff - source/game/meshsource.h
Use the setup generator to create setup structs
[libs/game.git] / source / game / meshsource.h
index 74ec78120d43a0a17d2251174d5a13ed7c980ac2..15b8d20f522985891ccfae8d24c3c691a2376ef7 100644 (file)
@@ -2,28 +2,13 @@
 #define MSP_GAME_MESHSOURCE_H_
 
 #include <msp/datafile/objectloader.h>
+#include <msp/game/setups.h>
 #include "component.h"
+#include "mspgame_api.h"
 
 namespace Msp::Game {
 
-struct MeshSourceSetup
-{
-       class Loader: public DataFile::ObjectLoader<MeshSourceSetup>
-       {
-       private:
-               static Loader::ActionMap shared_actions;
-
-       public:
-               Loader(MeshSourceSetup &);
-
-       protected:
-               void init_actions() override;
-       };
-
-       std::string object_name;
-};
-
-class MeshSource: public Component
+class MSPGAME_API MeshSource: public Component
 {
 public:
        using Setup = MeshSourceSetup;