mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-03 18:09:13 +03:00
Update bindings to use new Api extensions and rename Rect3->AABB
This commit is contained in:
@@ -103,14 +103,22 @@ String::operator NodePath() const {
|
||||
return NodePath(*this);
|
||||
}
|
||||
|
||||
const char *String::c_string() const {
|
||||
return godot::api->godot_string_c_str(&_godot_string);
|
||||
const wchar_t *String::unicode_str() const {
|
||||
return godot::api->godot_string_unicode_str(&_godot_string);
|
||||
}
|
||||
|
||||
void String::get_c_string(char *p_dest, int *p_size) const {
|
||||
godot::api->godot_string_get_data(&_godot_string, p_dest, p_size);
|
||||
}
|
||||
|
||||
String operator+(const char *a, const String &b) {
|
||||
return String(a) + b;
|
||||
}
|
||||
|
||||
String operator+(const wchar_t *a, const String &b) {
|
||||
return String(a) + b;
|
||||
}
|
||||
|
||||
bool String::begins_with(String &p_string) const {
|
||||
return godot::api->godot_string_begins_with(&_godot_string, &p_string._godot_string);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user