In the login phase once the client joins the zone, the User has their SFSUserVariables set from the session properties. Is it better to store each one individually, such as:
Code: Select all
UserVariable name = new SFSUserVariable("name",user.getSession().getProperty("n"));
UserVariable money = new SFSUserVariable("money",user.getSession().getProperty("m"));
...
or is it better to lump everything together into a single UserVar and then access it accordingly:
Code: Select all
ISFSObject sfso = new SFSObject();
sfso.putUtfString("name", user.getSession().getProperty("n").toString());
sfso.putInt("name", (Integer) user.getSession().getProperty("m"));
...
UserVariable data = new SFSUserVariable("data", sfso);
Are there pros and cons to both, or is one preferable?