dmuratshin 7 years ago
parent
commit
1526ab49d1

+ 1 - 1
examples/Game/part2/proj.android/build.gradle

@@ -6,7 +6,7 @@ buildscript {
         jcenter()        
         jcenter()        
     }
     }
     dependencies {
     dependencies {
-        classpath 'com.android.tools.build:gradle:3.2.0'
+        classpath 'com.android.tools.build:gradle:3.2.1'
     }
     }
 }
 }
 
 

+ 2 - 2
examples/Game/part2/proj.android/gradle/wrapper/gradle-wrapper.properties

@@ -1,6 +1,6 @@
-#Wed Nov 01 12:35:02 YEKT 2017
+#Sat Oct 13 19:08:09 YEKT 2018
 distributionBase=GRADLE_USER_HOME
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
 zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

+ 10 - 1
oxygine/src/oxygine/core/Object.cpp

@@ -7,6 +7,7 @@
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 #include <typeinfo>
 #include <typeinfo>
+#include "../EventDispatcher.h"
 
 
 namespace oxygine
 namespace oxygine
 {
 {
@@ -250,7 +251,15 @@ namespace oxygine
         }
         }
 
 
 
 
-        logs::messageln("id = %d, name = '%s', typeid = '%s', refs = %s", this->__id, name.c_str(), typeid(*this).name(), refs);
+        int cbs = 0;
+        if (o->_ref_counter)
+        {
+            const EventDispatcher *ed = dynamic_cast<const EventDispatcher*>(o);
+            if (ed)
+                cbs = ed->getListenersCount();
+        }
+
+        logs::messageln("id = %d, name = '%s', typeid = '%s', callbacks = '%d' refs = %s", this->__id, name.c_str(), typeid(*this).name(), cbs, refs);
     }
     }
 
 
     void ObjectBase::dumpCreatedObjects()
     void ObjectBase::dumpCreatedObjects()