70 $out->putVarInt($this->abilityId);
72 [$valueType, $boolValue, $floatValue] = match(
true){
73 is_bool($this->abilityValue) => [self::VALUE_TYPE_BOOL, $this->abilityValue, 0.0],
74 is_float($this->abilityValue) => [self::VALUE_TYPE_FLOAT,
false, $this->abilityValue],
75 default =>
throw new \LogicException(
"Unreachable")
77 $out->putByte($valueType);
78 $out->putBool($boolValue);
79 $out->putLFloat($floatValue);