* being sent from the server.
* @throws IOException
*/
private void readObject() throws IOException
{
Container object = null;
String type = this.codedinput.readString();
String id = this.codedinput.readString();
String key = type + id;
if (Client.containers.containsKey(key))
object = Client.containers.get(key).get(0);
else
{
if (type.equals("tile"))
object = new Tile();
else if (type.equals("avatar"))
object = new Avatar(id);
}
object.read(this.codedinput);
// Add to all known containers if not already
List<Container> objectlist = new ArrayList<Container>();
objectlist.add(object);
Client.containers.put(object.getID(), objectlist);
}