update.connect((Clock c) -> System.out.println("Clock is: "+c.toString()));
--
---
You received this message because you are subscribed to the Google Groups "PlayN" group.
To unsubscribe from this group and stop receiving emails from it, send an email to playn+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Is there some way to use lambdas as Slots?What's the plan to allow using lambdas together with Signal/Slots?This is just such a natural fit and would make code much more concise.
--
---
You received this message because you are subscribed to a topic in the Google Groups "PlayN" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/playn/OGNFSyzAfKk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to playn+un...@googlegroups.com.
In any case, I should get that show on the road. I'll move it up my TODO list.
Exception in thread "main" java.lang.NoSuchMethodError: react.Signal.connect(Lreact/Slot;)Lreact/Connection;
at tripleplay.ui.Interface.<init>(Interface.java:45)
diff --git a/html/src/playn/rebind/AutoClientBundleGenerator.java b/html/src/playn/rebind/AutoClientBundleGenerator.java
index b7deb36..418a7a8 100644
--- a/html/src/playn/rebind/AutoClientBundleGenerator.java
+++ b/html/src/playn/rebind/AutoClientBundleGenerator.java
@@ -257,17 +257,15 @@ public class AutoClientBundleGenerator extends Generator {
*
*/
private HashSet<Resource> getResources(GeneratorContext context, JClassType userType, FileFilter filter) {
- Map<String, Resource> map = context.getResourcesOracle().getResourceMap();
final String pack = userType.getPackage().getName().replace('.', '/');
HashSet<Resource> resourceList = new HashSet<Resource>();
- for (Entry<String, Resource> entry : map.entrySet()) {
- String path = entry.getKey();
+ for (String path : context.getResourcesOracle().getPathNames()) {
if (!path.startsWith(pack))
continue;
String ext = getExtension(path);
if (EXTENSION_MAP.containsKey(ext))
- resourceList.add(entry.getValue());
+ resourceList.add(context.getResourcesOracle().getResource(path));
}
return resourceList;
[ERROR] Line 153: The method stream() is undefined for the type List<Point>
Building against GWT 2.7.0 also succeeds, so the change can be applied now. I can make a pull request for that if that's beneficial?!
However when compiling my game I get GWT compile errors like:
[ERROR] Line 153: The method stream() is undefined for the type List<Point>So, the new JRE stuff like streams seems not to be available in GWT 2.8 yet.
--
---
You received this message because you are subscribed to the Google Groups "PlayN" group.
To unsubscribe from this group and stop receiving emails from it, send an email to playn+un...@googlegroups.com.