code: func (e *GameEvent) GetFloat32(name string) (float32, error) {
  	// Get the key from the message
  	k, err := e.getEventKey(name)
  	if err != nil {
  		return 0.0, err
  	}
  
  	// Make sure it's a bool.
  	if k.GetType() != gameEventTypeFloat {
  		return 0.0, _errorf("field %s: expected float, got %s", name, gameEventTypeNames[k.GetType()])
  	}
  
  	return k.GetValFloat(), nil
  }
docs: // Gets the float value of a named field.