R-Type
R-Type project
RectangleScript.hpp
1 #pragma once
2 
3 #include "MapScript/Lua.hpp"
4 
5 namespace RType::Script {
6  class Rectangle {
7  public:
8  float x = 0;
9  float y = 0;
10  float w = 0;
11  float h = 0;
12 
13  Rectangle() = default;
14  ~Rectangle() = default;
15 
16  void dump() const;
17 
18  static void initScript(lua_State *L);
19  static int __create(lua_State *L);
20  static int __destroy(lua_State *L);
21  static int __index(lua_State *L);
22  static int __newIndex(lua_State *L);
23  static int __dump(lua_State *L);
24  };
25 } // namespace RType::Script
RType::Script::Rectangle
Definition: RectangleScript.hpp:6