77        $this->type = LE::readUnsignedInt($in);
 
   80            case self::TYPE_CLEAR:
 
   83            case self::TYPE_ADD_CUBE:
 
   84                $this->text = CommonTypes::getString($in);
 
   85                $this->position = CommonTypes::getVector3($in);
 
   86                $this->red = LE::readFloat($in);
 
   87                $this->green = LE::readFloat($in);
 
   88                $this->blue = LE::readFloat($in);
 
   89                $this->alpha = LE::readFloat($in);
 
   90                $this->durationMillis = LE::readUnsignedLong($in);
 
 
   98        LE::writeUnsignedInt($out, $this->type);
 
  101            case self::TYPE_CLEAR:
 
  104            case self::TYPE_ADD_CUBE:
 
  105                CommonTypes::putString($out, $this->text);
 
  106                CommonTypes::putVector3($out, $this->position);
 
  107                LE::writeFloat($out, $this->red);
 
  108                LE::writeFloat($out, $this->green);
 
  109                LE::writeFloat($out, $this->blue);
 
  110                LE::writeFloat($out, $this->alpha);
 
  111                LE::writeUnsignedLong($out, $this->durationMillis);
 
  114                throw new \InvalidArgumentException(
"Unknown type " . $this->type);