add camera limit script
This commit is contained in:
48
src/CameraLimit.h
Normal file
48
src/CameraLimit.h
Normal file
@@ -0,0 +1,48 @@
|
||||
#ifndef ALAI_CAMERA_LIMIT_H
|
||||
#define ALAI_CAMERA_LIMIT_H
|
||||
|
||||
#include <Godot.hpp>
|
||||
#include <Node2D.hpp>
|
||||
|
||||
namespace godot
|
||||
{
|
||||
class CameraLimit: public Node2D
|
||||
{
|
||||
GODOT_CLASS(CameraLimit, Node2D)
|
||||
|
||||
public:
|
||||
/**
|
||||
* @brief This method registers classes with Godot.
|
||||
*
|
||||
* @details This method registers methods, properties, and signals with the Godot engine.
|
||||
*/
|
||||
static void _register_methods();
|
||||
|
||||
/**
|
||||
* @brief Construct a new Camera Limit object.
|
||||
*
|
||||
*/
|
||||
CameraLimit();
|
||||
|
||||
/**
|
||||
* @brief Destroy the Camera Limit object.
|
||||
*
|
||||
*/
|
||||
~CameraLimit();
|
||||
|
||||
/**
|
||||
* @brief Initialize the class from Godot.
|
||||
*
|
||||
* @details This method is called just once when the Godot engine connects to the instance of the class.
|
||||
*/
|
||||
void _init();
|
||||
|
||||
/**
|
||||
* @brief Code to be run when ready.
|
||||
*
|
||||
* @details This method is run when all the children of this node are ready.
|
||||
*/
|
||||
void _ready();
|
||||
};
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user