playMaker

Author Topic: More robust event system.  (Read 2832 times)

vidjogamer

  • Playmaker Newbie
  • *
  • Posts: 10
More robust event system.
« on: April 27, 2014, 09:41:12 PM »
Hello, I would like a better system/api for sending events + event data. As far as I can tell the current system expects you to use SetEventData/GetEventInfo action. This approach isnt the most robust. I'd prefer to be able to send data as key/value pairs. That way I can send any amount of data, in any type I prefer. On top of this, it would be nice to have a better way to send from script. The API isnt very intuitive. What I would expect is something like, create an event object, set event properties with key/value pairs. Then send that event to its target. Then the target can access the event and retrieve the properties its interested in. Is there any chance the event/event properties system can get an update any time soon?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: More robust event system.
« Reply #1 on: April 28, 2014, 02:03:54 PM »
Hi,

It's not a question of robustness here, just inconvenient when dealing with more complex requirements. The current event data system is working very well and is very robust indeed. I use it a lot actually, and yes it's limited, but I adapted the system to allow for it, PlayMaker api is opened enough for you to create these systems.

 The link below allows you to send key/value pairs as the data of an event.

http://hutonggames.com/playmakerforum/index.php?topic=4296.msg21612#msg21612

It's also featured in the ArrayMaker package as well:

https://hutonggames.fogbugz.com/default.asp?W715

Bye,

 Jean