Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef HEXTILE_HPP
- #define HEXTILE_HPP
- #include <Godot.hpp>
- #include <Spatial.hpp>
- #include <ArrayMesh.hpp>
- #include <MeshInstance.hpp>
- namespace godot
- {
- class HexTile : public Spatial
- { GODOT_CLASS(HexTile, Spatial)
- private:
- MeshInstance* _mesh;
- int _x;
- int _y;
- int _q;
- int _r;
- int _s;
- double _elevation;
- double _moisture;
- Vector3 _position;
- public:
- HexTile(int pX, int pY, double pElevation, double pMoisture, Ref<ArrayMesh> pMesh);
- HexTile();
- static void _register_methods();
- void _init();
- };
- }
- #endif /* HEXTILE_HPP */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement