Re: [swiz-framework] Ludia Swiz extensions

62 views
Skip to first unread message

Jose Barragan

unread,
Nov 30, 2012, 3:49:10 PM11/30/12
to swiz-fr...@googlegroups.com
It's a really interesting contribution,

Great work, I just fork your repo yet 

Thanks to share it, ;)
--
Jose Barragan
Software Architect Chief 
Codeoscopic Madrid
C/. Infanta Mercedes, 92. 
Planta 5.  505.
28020 Madrid.
Tel.: +34 912 94 80 80

On Nov 30, 2012, at 5:14 PM, Antoine <alass...@socialludia.com> wrote:

Hi there,

Here a Ludia we are using Swiz to build social games on Facebook.

We have just open-sourced some of our extensions to the framework.

Check it out! Feedback is appreciated.


Antoine.

--
You received this message because you are subscribed to the Google Groups "Swiz Framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/swiz-framework/-/N-hagCLfekcJ.
To post to this group, send email to swiz-fr...@googlegroups.com.
To unsubscribe from this group, send email to swiz-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/swiz-framework?hl=en.

Carlos Rovira

unread,
Dec 3, 2012, 9:40:51 AM12/3/12
to swiz-fr...@googlegroups.com
Hi Antoine,

many thanks for you state machine implementation. I just read the docs, and all seems to be very, very cool.

I want to ask you some things:

* Can I pass data in state change (onEnter/onExit)? (ex: [OnEnterState("app/login", properties="user, pass")])

* What is the third extension "Data-binding relay". Could you elaborate more on this?

* Have you same sample app where the extensions are showed/demoed ?

again, many thanks for this great extensions. I'll try to incorporate in my next project and give more feedback about the results.

Carlos Rovira



2012/11/30 Jose Barragan <jose.b...@codeoscopic.com>

Antoine

unread,
Dec 3, 2012, 10:59:05 AM12/3/12
to swiz-fr...@googlegroups.com, carlos...@codeoscopic.com
Thank you for your interest.

I have added some docs about Data binding relay.

Concerning the state machine extensions, it's not possible to have properties passed along with state change.

We wanted to add this feature at first, but we decided that it was better to retrieve data from a model rather than from parameters. The reason is that this kind of data is very volatile, and several times we had situations where a transition from one state to another was asynchronous. For instance, validating user action on server side was often needed and therefore we wanted to avoid passing data all over the place, especially when you want to bring decoupling.

One idea we had though is that state names could be holding some properties (for instance a user id). Sort of what you do with URL routes on server side, you could match some part of the state string and extract info. That would be a great feature to add. 
Reply all
Reply to author
Forward
0 new messages