]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/staticobject.h
Add mod.conf to preview clientmod (#11020)
[dragonfireclient.git] / src / staticobject.h
index 43f542632298a981ec2c3989f0c69009511f6508..6fb486193c9790fc2727c7283d959e808fe0107b 100644 (file)
@@ -26,6 +26,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include <map>
 #include "debug.h"
 
+class ServerActiveObject;
+
 struct StaticObject
 {
        u8 type = 0;
@@ -33,12 +35,7 @@ struct StaticObject
        std::string data;
 
        StaticObject() = default;
-       StaticObject(u8 type_, const v3f &pos_, const std::string &data_):
-               type(type_),
-               pos(pos_),
-               data(data_)
-       {
-       }
+       StaticObject(const ServerActiveObject *s_obj, const v3f &pos_);
 
        void serialize(std::ostream &os);
        void deSerialize(std::istream &is, u8 version);