i found a little wrong in sfs2X api doc

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

Moderators: Lapo, Bax

unicorn
Posts: 2
Joined: 30 Nov 2010, 06:29

i found a little wrong in sfs2X api doc

Postby unicorn » 30 Nov 2010, 06:35

Please see below:
http://docs2x.smartfoxserver.com/api-do ... Index.html
Sfs2X.Requests Namespace->
SetUserVariablesRequest Class->
SetUserVariablesRequest Constructor->
----------------------------------------------------------------------------------
Example #1 Shows how set a number of User variables

List<UserVariable> userVars = new List<UserVariable>();
roomVars.Add( new SFSUserVariable("avatarType", "SwedishCook") );
roomVars.Add( new SFSUserVariable("country", "Sweden") );
roomVars.Add( new SFSUserVariable("x", 10) );
roomVars.Add( new SFSUserVariable("y", 5) );
smartFox.Send ( new SetUserVariablesRequest(userVars) );
----------------------------------------------------------------------------------
The userVars defined but it replaced by word:"roomVars" same as the Samples in "SetRoomVariablesRequest Constructor"

tks!
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 30 Nov 2010, 06:40

Thanks!! One of those cut and paste issues when doing documentation :-D

Fixed in next release :-)

/T
unicorn
Posts: 2
Joined: 30 Nov 2010, 06:29

Postby unicorn » 02 Dec 2010, 07:02

it's ok,hehe
i'm studying it , without sample code will be difficult.
I think a doc with helpful sample code is worth to promote it better.

Tks for your hard work!
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 02 Dec 2010, 08:47

Could be a good idea to make a small cookbook - some of it maybe even auto generated from the documentation code snippets.

Will put on low priority todo list :-)

/Thomas

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 28 guests