new SFSObject()
Creates a new SFSObject instance.
Example
In this simple example we create a new SFSObject to send the data of a combat vehicle to clients in a multiplayer game.
We use a single Byte (signed 8-bit) to send the small integer value representing the vehicle's id, a Short (signed 16-bit) for the larger health value and an array of Int to transmit the x/y position of the vehicle.
var sfso = new SFSObject(); sfso.putByte("id", 10); // the vehicle id sfso.putShort("health", 5000); // the vehicle current health sfso.putIntArray("pos", [120,150]); // the vehicle x,y position on the terrain, as a nested array sfso.putUtfString("name", "Hurricane"); // the vehicle name