generated from hertog/godot-module-template
34 lines
675 B
C++
34 lines
675 B
C++
#include "client_window.h"
|
|
|
|
SubViewport ClientWindow::get_target_sub_viewport() {
|
|
return this->target_sub_viewport;
|
|
}
|
|
|
|
void ClientWindow::set_target_sub_viewport(SubViewport new_sub_viewport) {
|
|
this->target_sub_viewport = new_sub_viewport;
|
|
}
|
|
|
|
Node2D ClientWindow::get_player() {
|
|
return this->player;
|
|
}
|
|
|
|
void ClientWindow::set_player(Node2D new_player) {
|
|
this->player = new_player;
|
|
}
|
|
|
|
void ClientWindow::set_world_2d() {
|
|
this->world_2d = this->target_sub_viewport.find_world_2d();
|
|
}
|
|
|
|
void ClientWindow::_bind_methods() {
|
|
|
|
}
|
|
|
|
void ClientWindow::_notification(int p_what) {
|
|
|
|
}
|
|
|
|
void ClientWindow::move_camera() {
|
|
this->camera.position = this->player.position;
|
|
}
|