From c08c66b2ba227aa2f6d630abbad70f8860a66159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 31 Mar 2016 23:02:27 +0200 Subject: Ctrl: add postEvent(EventType, Object) --- core/src/ch/asynk/rustanddust/game/Ctrl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java index 6079594..ff33e7f 100644 --- a/core/src/ch/asynk/rustanddust/game/Ctrl.java +++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java @@ -196,8 +196,14 @@ public abstract class Ctrl implements Disposable public void postEvent(EventType type) { + postEvent(type, null); + } + + public void postEvent(EventType type, Object data) + { Event evt = getEvent(); evt.type = type; + evt.data = data; events.enqueue(evt); } -- cgit v1.1-2-g2b99