How to send and receive classes

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

Post Reply
xms_wufucan@126.com
Posts: 4
Joined: 31 Mar 2011, 03:32

How to send and receive classes

Post by xms_wufucan@126.com »

I have read the document, but I haven't understand how it sends and receives classes between sfs2x server and unity. Please help me.
Democre
Posts: 77
Joined: 16 Sep 2010, 17:58

Post by Democre »

There really is no direct way of sending classes between the two. You'd have to marshall your classess into and out of SFSObjects.

The SFSObjects are the objects sent in messages to/from the server.
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Post by ThomasLund »

Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
xms_wufucan@126.com
Posts: 4
Joined: 31 Mar 2011, 03:32

Post by xms_wufucan@126.com »

[P4E]Andy wrote:There really is no direct way of sending classes between the two. You'd have to marshall your classess into and out of SFSObjects.

The SFSObjects are the objects sent in messages to/from the server.
Could you gave me a demo about it? I have read the Topic
http://forums.smartfoxserver.com/viewtopic.php?p=44239, and
I tried it , but I haven't been successful.
Post Reply