Page 1 of 1

MANTRA: Use the API!

Posted: 17 Jan 2011, 16:28
by Lapo
If you didn't follow the introductory Extension tutorials and jumped right into development you will probably find yourself attempting to work directly on the User or Room object in order to set new Room/User Variables or creating a new Room etc...

This is not recommendable, because you are just making local changes without updating the client.
The server framework exposes an API class called SFSApi which gives you access to dozens of useful methods for Room/User Variables, creating Rooms and tons more.

Always start from SFSApi when in need of a specific functionality.

I highly recommend to invest 10 minutes in reading this document, which guides you through the basics of Extension development.