Skip to main content

Location

Struct Location 

Source
pub struct Location {
Show 65 fields pub enabled: bool, pub locked: bool, pub insurance: bool, pub safe_location: bool, pub name: String, pub description: String, pub scene: Scene, pub area: f64, pub required_player_level: u64, pub surv_gather_minutes: u64, pub min_players: u64, pub max_players: u64, pub scav_gather_minutes: u64, pub exit_count: u64, pub exit_access_time: u64, pub exit_time: u64, pub preview: Preview, pub icon_x: u64, pub icon_y: u64, pub filter_ex: Vec<Value>, pub waves: Vec<Wave>, pub limits: Vec<Value>, pub average_play_time: u64, pub average_player_level: u64, pub escape_time_limit: u64, pub rules: String, pub is_secret: bool, pub doors: Vec<Value>, pub tmp_location_field_remove_me: u64, pub min_distance_to_exit_point: u64, pub min_distance_to_free_point: u64, pub max_distance_to_free_point: u64, pub max_bot_per_zone: u64, pub open_zones: String, pub occlusion_culling_enabled: bool, pub global_loot_chance_modifier: f64, pub old_spawn: bool, pub new_spawn: bool, pub bot_max: u64, pub bot_start: u64, pub bot_stop: u64, pub bot_max_time_player: u64, pub bot_spawn_time_on_min: u64, pub bot_spawn_time_on_max: u64, pub bot_spawn_time_off_min: u64, pub bot_spawn_time_off_max: u64, pub bot_max_player: u64, pub bot_easy: u64, pub bot_normal: u64, pub bot_hard: u64, pub bot_impossible: u64, pub bot_assault: u64, pub bot_marksman: u64, pub disabled_scav_exits: String, pub access_keys: Vec<String>, pub min_max_bots: Vec<MinMaxBot>, pub bot_location_modifier: BotLocationModifier, pub exits: Vec<Exit>, pub disabled_for_scav: bool, pub boss_location_spawn: Vec<BossSpawn>, pub name_id: String, pub id: String, pub loot: Vec<Value>, pub spawn_areas: Vec<Value>, pub banners: Vec<Banner>,
}
Expand description

In-game location

Fields§

§enabled: bool

Location is enabled

§locked: bool

Location is locked

§insurance: bool

Insurance is available

§safe_location: bool

?

§name: String

Location name

§description: String

Location description

§scene: Scene

Location scene prefab

§area: f64

Location area

§required_player_level: u64

Required level for location access

§surv_gather_minutes: u64

?

§min_players: u64

Minimum players on location

§max_players: u64

Maximum players on location

§scav_gather_minutes: u64

?

§exit_count: u64

Number of extraction points

§exit_access_time: u64

?

§exit_time: u64

?

§preview: Preview

Location preview

§icon_x: u64

Location icon X

§icon_y: u64

Location icon Y

§filter_ex: Vec<Value>

Unknown type

§waves: Vec<Wave>

NPC waves on location

§limits: Vec<Value>

Unknown type

§average_play_time: u64

Average play time on location

§average_player_level: u64

Average player level on location

§escape_time_limit: u64

Extraction time limit

§rules: String

Location rules

§is_secret: bool

Location is secret

§doors: Vec<Value>

Unknown type

§tmp_location_field_remove_me: u64

?

§min_distance_to_exit_point: u64

Minimum distance to extraction from spawn

§min_distance_to_free_point: u64

Minimum distance to “free point” from spawn

§max_distance_to_free_point: u64

Maximum distance to “free point” from spawn

§max_bot_per_zone: u64

Maximum number of bots per zone

§open_zones: String

Location open zones

§occlusion_culling_enabled: bool

?

§global_loot_chance_modifier: f64

Location loot chance modifier

§old_spawn: bool

?

§new_spawn: bool

?

§bot_max: u64

Maximum number of bots

§bot_start: u64

?

§bot_stop: u64

?

§bot_max_time_player: u64

?

§bot_spawn_time_on_min: u64

?

§bot_spawn_time_on_max: u64

?

§bot_spawn_time_off_min: u64

?

§bot_spawn_time_off_max: u64

?

§bot_max_player: u64

?

§bot_easy: u64

Bot difficulty is “easy”

§bot_normal: u64

Bot difficulty is “normal”

§bot_hard: u64

Bot difficulty is “hard”

§bot_impossible: u64

Bot difficulty is “impossible”

§bot_assault: u64

?

§bot_marksman: u64

?

§disabled_scav_exits: String

?

§access_keys: Vec<String>

?

§min_max_bots: Vec<MinMaxBot>

?

§bot_location_modifier: BotLocationModifier

Bot stats modifier

§exits: Vec<Exit>

Extraction points

§disabled_for_scav: bool

Location disabled for SCAVs

§boss_location_spawn: Vec<BossSpawn>

Boss spawns

§name_id: String

Location ID?

§id: String

Location ID?

§loot: Vec<Value>

Unknown type

§spawn_areas: Vec<Value>

Unknown type

§banners: Vec<Banner>

Location banners

Trait Implementations§

Source§

impl Clone for Location

Source§

fn clone(&self) -> Location

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Location

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Location

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Location

Source§

fn eq(&self, other: &Location) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Location

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Location

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,