summaryrefslogtreecommitdiff
path: root/platform/iphone
diff options
context:
space:
mode:
Diffstat (limited to 'platform/iphone')
-rw-r--r--platform/iphone/game_center.mm24
-rw-r--r--platform/iphone/icloud.mm16
-rw-r--r--platform/iphone/in_app_store.mm12
-rw-r--r--platform/iphone/ios.mm2
4 files changed, 27 insertions, 27 deletions
diff --git a/platform/iphone/game_center.mm b/platform/iphone/game_center.mm
index de6ea73c20..4cfa64ae4b 100644
--- a/platform/iphone/game_center.mm
+++ b/platform/iphone/game_center.mm
@@ -48,18 +48,18 @@ extern "C" {
GameCenter* GameCenter::instance = NULL;
void GameCenter::_bind_methods() {
- ClassDB::bind_method(_MD("connect"),&GameCenter::connect);
- ClassDB::bind_method(_MD("is_connected"),&GameCenter::is_connected);
-
- ClassDB::bind_method(_MD("post_score"),&GameCenter::post_score);
- ClassDB::bind_method(_MD("award_achievement"),&GameCenter::award_achievement);
- ClassDB::bind_method(_MD("reset_achievements"),&GameCenter::reset_achievements);
- ClassDB::bind_method(_MD("request_achievements"),&GameCenter::request_achievements);
- ClassDB::bind_method(_MD("request_achievement_descriptions"),&GameCenter::request_achievement_descriptions);
- ClassDB::bind_method(_MD("show_game_center"),&GameCenter::show_game_center);
-
- ClassDB::bind_method(_MD("get_pending_event_count"),&GameCenter::get_pending_event_count);
- ClassDB::bind_method(_MD("pop_pending_event"),&GameCenter::pop_pending_event);
+ ClassDB::bind_method(D_METHOD("connect"),&GameCenter::connect);
+ ClassDB::bind_method(D_METHOD("is_connected"),&GameCenter::is_connected);
+
+ ClassDB::bind_method(D_METHOD("post_score"),&GameCenter::post_score);
+ ClassDB::bind_method(D_METHOD("award_achievement"),&GameCenter::award_achievement);
+ ClassDB::bind_method(D_METHOD("reset_achievements"),&GameCenter::reset_achievements);
+ ClassDB::bind_method(D_METHOD("request_achievements"),&GameCenter::request_achievements);
+ ClassDB::bind_method(D_METHOD("request_achievement_descriptions"),&GameCenter::request_achievement_descriptions);
+ ClassDB::bind_method(D_METHOD("show_game_center"),&GameCenter::show_game_center);
+
+ ClassDB::bind_method(D_METHOD("get_pending_event_count"),&GameCenter::get_pending_event_count);
+ ClassDB::bind_method(D_METHOD("pop_pending_event"),&GameCenter::pop_pending_event);
};
diff --git a/platform/iphone/icloud.mm b/platform/iphone/icloud.mm
index 0d1825dd6b..a9b23baaeb 100644
--- a/platform/iphone/icloud.mm
+++ b/platform/iphone/icloud.mm
@@ -44,14 +44,14 @@ extern "C" {
ICloud* ICloud::instance = NULL;
void ICloud::_bind_methods() {
- ClassDB::bind_method(_MD("remove_key"),&ICloud::remove_key);
- ClassDB::bind_method(_MD("set_key_values"),&ICloud::set_key_values);
- ClassDB::bind_method(_MD("get_key_value"),&ICloud::get_key_value);
- ClassDB::bind_method(_MD("synchronize_key_values"),&ICloud::synchronize_key_values);
- ClassDB::bind_method(_MD("get_all_key_values"),&ICloud::get_all_key_values);
-
- ClassDB::bind_method(_MD("get_pending_event_count"),&ICloud::get_pending_event_count);
- ClassDB::bind_method(_MD("pop_pending_event"),&ICloud::pop_pending_event);
+ ClassDB::bind_method(D_METHOD("remove_key"),&ICloud::remove_key);
+ ClassDB::bind_method(D_METHOD("set_key_values"),&ICloud::set_key_values);
+ ClassDB::bind_method(D_METHOD("get_key_value"),&ICloud::get_key_value);
+ ClassDB::bind_method(D_METHOD("synchronize_key_values"),&ICloud::synchronize_key_values);
+ ClassDB::bind_method(D_METHOD("get_all_key_values"),&ICloud::get_all_key_values);
+
+ ClassDB::bind_method(D_METHOD("get_pending_event_count"),&ICloud::get_pending_event_count);
+ ClassDB::bind_method(D_METHOD("pop_pending_event"),&ICloud::pop_pending_event);
};
int ICloud::get_pending_event_count() {
diff --git a/platform/iphone/in_app_store.mm b/platform/iphone/in_app_store.mm
index 050498c125..b63d7b42ab 100644
--- a/platform/iphone/in_app_store.mm
+++ b/platform/iphone/in_app_store.mm
@@ -66,13 +66,13 @@ NSMutableDictionary* pending_transactions = [NSMutableDictionary dictionary];
InAppStore* InAppStore::instance = NULL;
void InAppStore::_bind_methods() {
- ClassDB::bind_method(_MD("request_product_info"),&InAppStore::request_product_info);
- ClassDB::bind_method(_MD("purchase"),&InAppStore::purchase);
+ ClassDB::bind_method(D_METHOD("request_product_info"),&InAppStore::request_product_info);
+ ClassDB::bind_method(D_METHOD("purchase"),&InAppStore::purchase);
- ClassDB::bind_method(_MD("get_pending_event_count"),&InAppStore::get_pending_event_count);
- ClassDB::bind_method(_MD("pop_pending_event"),&InAppStore::pop_pending_event);
- ClassDB::bind_method(_MD("finish_transaction"),&InAppStore::finish_transaction);
- ClassDB::bind_method(_MD("set_auto_finish_transaction"),&InAppStore::set_auto_finish_transaction);
+ ClassDB::bind_method(D_METHOD("get_pending_event_count"),&InAppStore::get_pending_event_count);
+ ClassDB::bind_method(D_METHOD("pop_pending_event"),&InAppStore::pop_pending_event);
+ ClassDB::bind_method(D_METHOD("finish_transaction"),&InAppStore::finish_transaction);
+ ClassDB::bind_method(D_METHOD("set_auto_finish_transaction"),&InAppStore::set_auto_finish_transaction);
};
@interface ProductsDelegate : NSObject<SKProductsRequestDelegate> {
diff --git a/platform/iphone/ios.mm b/platform/iphone/ios.mm
index a068d4aa31..4aca85dafc 100644
--- a/platform/iphone/ios.mm
+++ b/platform/iphone/ios.mm
@@ -32,7 +32,7 @@
void iOS::_bind_methods() {
- ClassDB::bind_method(_MD("get_rate_url","app_id"),&iOS::get_rate_url);
+ ClassDB::bind_method(D_METHOD("get_rate_url","app_id"),&iOS::get_rate_url);
};
String iOS::get_rate_url(int p_app_id) const {