summaryrefslogtreecommitdiff
path: root/servers/xr
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2020-04-15 15:22:14 -0400
committerAaron Franke <arnfranke@yahoo.com>2020-12-04 18:59:02 -0500
commit888deca8272ab10e0eb415fd27dd8413b56ca83e (patch)
tree6654e62a28aa132eb707f90b4a29b905a93ae958 /servers/xr
parent14660ee3999dae512f23164d5ffc570e6a978642 (diff)
Rename XR get_type and get_name
Now called get_tracker_type and get_tracker_name
Diffstat (limited to 'servers/xr')
-rw-r--r--servers/xr/xr_positional_tracker.cpp8
-rw-r--r--servers/xr/xr_positional_tracker.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/servers/xr/xr_positional_tracker.cpp b/servers/xr/xr_positional_tracker.cpp
index ad5cee92ea..a59565fe0d 100644
--- a/servers/xr/xr_positional_tracker.cpp
+++ b/servers/xr/xr_positional_tracker.cpp
@@ -38,9 +38,9 @@ void XRPositionalTracker::_bind_methods() {
BIND_ENUM_CONSTANT(TRACKER_RIGHT_HAND);
// this class is read only from GDScript, so we only have access to getters..
- ClassDB::bind_method(D_METHOD("get_type"), &XRPositionalTracker::get_type);
+ ClassDB::bind_method(D_METHOD("get_tracker_type"), &XRPositionalTracker::get_tracker_type);
ClassDB::bind_method(D_METHOD("get_tracker_id"), &XRPositionalTracker::get_tracker_id);
- ClassDB::bind_method(D_METHOD("get_name"), &XRPositionalTracker::get_name);
+ ClassDB::bind_method(D_METHOD("get_tracker_name"), &XRPositionalTracker::get_tracker_name);
ClassDB::bind_method(D_METHOD("get_joy_id"), &XRPositionalTracker::get_joy_id);
ClassDB::bind_method(D_METHOD("get_tracks_orientation"), &XRPositionalTracker::get_tracks_orientation);
ClassDB::bind_method(D_METHOD("get_orientation"), &XRPositionalTracker::get_orientation);
@@ -77,7 +77,7 @@ void XRPositionalTracker::set_type(XRServer::TrackerType p_type) {
};
};
-XRServer::TrackerType XRPositionalTracker::get_type() const {
+XRServer::TrackerType XRPositionalTracker::get_tracker_type() const {
return type;
};
@@ -85,7 +85,7 @@ void XRPositionalTracker::set_name(const String &p_name) {
name = p_name;
};
-StringName XRPositionalTracker::get_name() const {
+StringName XRPositionalTracker::get_tracker_name() const {
return name;
};
diff --git a/servers/xr/xr_positional_tracker.h b/servers/xr/xr_positional_tracker.h
index 515359e9b1..8834b64464 100644
--- a/servers/xr/xr_positional_tracker.h
+++ b/servers/xr/xr_positional_tracker.h
@@ -72,9 +72,9 @@ protected:
public:
void set_type(XRServer::TrackerType p_type);
- XRServer::TrackerType get_type() const;
+ XRServer::TrackerType get_tracker_type() const;
void set_name(const String &p_name);
- StringName get_name() const;
+ StringName get_tracker_name() const;
int get_tracker_id() const;
void set_joy_id(int p_joy_id);
int get_joy_id() const;