Struct gapi_grpc::google::maps::playablelocations::v3::sample::SpacingOptions[][src]

pub struct SpacingOptions {
    pub min_spacing_meters: f64,
    pub point_type: i32,
}

A set of options that specifies the separation between playable locations.

Fields

min_spacing_meters: f64

Required. The minimum spacing between any two playable locations, measured in meters. The minimum value is 30. The maximum value is 1000.

Inputs will be rounded up to the next 10 meter interval.

The default value is 200m.

Set this field to remove tight clusters of playable locations.

Note:

The spacing is a greedy algorithm. It optimizes for selecting the highest ranking locations first, not to maximize the number of locations selected. Consider the following scenario:

If spacing=250, it will pick the highest ranked location [B], not [A, C].

Note:

Spacing works within the game object type itself, as well as the previous ones. Suppose three game object types, each with the following spacing:

  1. Add locations for X, within 400m of each other.
  2. Add locations for Y, without any spacing.
  3. Finally, add locations for Z within 200m of each other as well X and Y.

The distance diagram between those locations end up as:

point_type: i32

Specifies whether the minimum spacing constraint applies to the center-point or to the snapped point of playable locations. The default value is CENTER_POINT.

If a snapped point is not available for a playable location, its center-point is used instead.

Set this to the point type used in your game.

Implementations

impl SpacingOptions[src]

pub fn point_type(&self) -> PointType[src]

Returns the enum value of point_type, or the default if the field is set to an invalid enum value.

pub fn set_point_type(&mut self, value: PointType)[src]

Sets point_type to the provided enum value.

Trait Implementations

impl Clone for SpacingOptions[src]

impl Debug for SpacingOptions[src]

impl Default for SpacingOptions[src]

impl Message for SpacingOptions[src]

impl PartialEq<SpacingOptions> for SpacingOptions[src]

impl StructuralPartialEq for SpacingOptions[src]

Auto Trait Implementations

impl RefUnwindSafe for SpacingOptions

impl Send for SpacingOptions

impl Sync for SpacingOptions

impl Unpin for SpacingOptions

impl UnwindSafe for SpacingOptions

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]