public void read() { ID = socket.readByte(); count = socket.readShort(); slotArray = new Slot[count]; for (int i = 0; i < slotArray.Length; i++) { slotArray[i] = new Slot(socket); } }
public void read() { ID = socket.readByte(); slotNumber = socket.readShort(); slot = new Slot(socket); }