Page 1 of 1

XMage API?

PostPosted: 25 Apr 2016, 07:05
by wartime
Just as a thought experiment, how much work would be involved to create a web API using XMage's gameplay logic. This way we can more easily create front-ends which do not rely on Java or spring?

I think an HTML5 or Unity front-end would be great and I'd like to give it a stab. I just downloaded XMage's codebase and it is very vast, so is there any starting point someone would recommend for seeing where the gameplay logic ends and the UI begins? How much of XMage's functionality relys on the spring interface?

Re: XMage API?

PostPosted: 25 Apr 2016, 16:20
by escplan9
In the Developer Getting Started Guide (https://github.com/magefree/mage/wiki/D ... ng-Started) there's some mention of what each project does under the Developer Notes section:
https://github.com/magefree/mage/wiki/Developer-Notes

Re: XMage API?

PostPosted: 25 Apr 2016, 18:40
by wartime
I saw that after I posted. According to that page there is a clear separation. Good news?

Re: XMage API?

PostPosted: 25 Apr 2016, 19:28
by escplan9
I'm still very new to developing with XMage so I unfortunately don't have anything else to offer here.

Re: XMage API?

PostPosted: 25 Apr 2016, 22:53
by LevelX
There were already 2 or 3 projects in the past to create such new clients.
They all failed because it's a lot more work than you probably think now.

The used interfaces between server and client are all here:
https://github.com/magefree/mage/tree/m ... /mage/view

Re: XMage API?

PostPosted: 25 Apr 2016, 23:51
by wartime
Thanks, I think that's the list of files I was looking for. I'm not going promise I'll get very far but it seems like a fun side project.

Do you know those 2-3 failed projects? Maybe there's a starting point among them.

Re: XMage API?

PostPosted: 26 Apr 2016, 09:30
by LevelX