Handle a mouse click on a texture-based GameObject.
More...
|
void | delegate () mCallbackFunction |
| The callback to run when a click event occurs.
|
|
| this (size_t owner, void delegate() callbackFunction, ComponentTransform transform, SDL_Rect *camera) |
| Set up the script.
|
|
override void | Update () |
| Update internal state of the script.
|
|
void | LeftMouseClick () |
| Check for an in-bounds mouse click and run #callback if one was found.
|
|
| this (size_t id) |
| Store the owner id.
|
|
override void | Render (SDL_Renderer *renderer, SDL_Rect *camera) |
| Render the given script.
|
|
Handle a mouse click on a texture-based GameObject.
◆ this()
ComponentTransformMouseClick::this |
( |
size_t | owner, |
|
|
void delegate() | callbackFunction, |
|
|
ComponentTransform | transform, |
|
|
SDL_Rect * | camera ) |
|
inline |
Set up the script.
- Parameters
-
◆ Update()
override void ComponentTransformMouseClick::Update |
( |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: