diff --git a/rustdoc/game/all.html b/rustdoc/game/all.html index c02d6d2b55..2eafa62697 100644 --- a/rustdoc/game/all.html +++ b/rustdoc/game/all.html @@ -3,4 +3,4 @@

[] - List of all items

Structs

Enums

Traits

Functions

Typedefs

Constants

\ No newline at end of file + List of all items

Structs

Enums

Traits

Functions

Typedefs

Constants

\ No newline at end of file diff --git a/rustdoc/game/app/struct.App.html b/rustdoc/game/app/struct.App.html index e0cad6a34d..fb37c3f46b 100644 --- a/rustdoc/game/app/struct.App.html +++ b/rustdoc/game/app/struct.App.html @@ -190,9 +190,9 @@ the event and immediately apply the transition.

impl State<App> for PickLayer[src]

impl State<App> for PickLayer[src]

impl State<App> for TitleScreen[src]

impl State<App> for SandboxMode[src]

impl State<App> for SandboxMode[src]

impl State<App> for Viewer[src]

impl State<App> for BackToMainMenu[src]

impl State<App> for BackToMainMenu[src]

impl State<App> for SandboxLoader[src]

impl State<App> for SandboxLoader[src]

impl State<App> for Floodfiller[src]

Required methods

fn actions(&self, app: &App, id: ID) -> Vec<(Key, String)>

fn execute(
    &mut self,
    ctx: &mut EventCtx<'_>,
    app: &mut App,
    id: ID,
    action: String,
    close_panel: &mut bool
) -> Transition<App>

fn is_paused(&self) -> bool

fn gameplay_mode(&self) -> GameplayMode

Loading content...

Implementors

impl ContextualActions for game::debug::Actions[src]

impl ContextualActions for game::sandbox::Actions[src]

Loading content... \ No newline at end of file +}

Required methods

fn actions(&self, app: &App, id: ID) -> Vec<(Key, String)>

fn execute(
    &mut self,
    ctx: &mut EventCtx<'_>,
    app: &mut App,
    id: ID,
    action: String,
    close_panel: &mut bool
) -> Transition<App>

fn is_paused(&self) -> bool

fn gameplay_mode(&self) -> GameplayMode

Loading content...

Implementors

impl ContextualActions for game::debug::Actions[src]

impl ContextualActions for game::sandbox::Actions[src]

Loading content... \ No newline at end of file diff --git a/rustdoc/game/layer/enum.LayerOutcome.html b/rustdoc/game/layer/enum.LayerOutcome.html index 9626d7a981..582d94990c 100644 --- a/rustdoc/game/layer/enum.LayerOutcome.html +++ b/rustdoc/game/layer/enum.LayerOutcome.html @@ -1,7 +1,7 @@ game::layer::LayerOutcome - Rust

[][src]Enum game::layer::LayerOutcome

pub enum LayerOutcome {
+                Change settings

[][src]Enum game::layer::LayerOutcome

pub enum LayerOutcome {
     Close,
     Replace(Box<dyn Layer>),
 }

diff --git a/rustdoc/game/layer/favorites/index.html b/rustdoc/game/layer/favorites/index.html new file mode 100644 index 0000000000..8c466f19b5 --- /dev/null +++ b/rustdoc/game/layer/favorites/index.html @@ -0,0 +1,6 @@ +game::layer::favorites - Rust + +

[][src]Module game::layer::favorites

Structs

+
Favorites

A set of buildings that the player has starred, persisted as player data.

+
ShowFavorites
\ No newline at end of file diff --git a/rustdoc/game/layer/favorites/sidebar-items.js b/rustdoc/game/layer/favorites/sidebar-items.js new file mode 100644 index 0000000000..718285eae6 --- /dev/null +++ b/rustdoc/game/layer/favorites/sidebar-items.js @@ -0,0 +1 @@ +initSidebarItems({"struct":[["Favorites","A set of buildings that the player has starred, persisted as player data."],["ShowFavorites",""]]}); \ No newline at end of file diff --git a/rustdoc/game/layer/favorites/struct.Favorites.html b/rustdoc/game/layer/favorites/struct.Favorites.html new file mode 100644 index 0000000000..f3b43b415d --- /dev/null +++ b/rustdoc/game/layer/favorites/struct.Favorites.html @@ -0,0 +1,38 @@ +game::layer::favorites::Favorites - Rust + +

[][src]Struct game::layer::favorites::Favorites

pub struct Favorites {
+    pub buildings: BTreeSet<OsmID>,
+}

A set of buildings that the player has starred, persisted as player data.

+

+ Fields

buildings: BTreeSet<OsmID>

Implementations

impl Favorites[src]

fn load(app: &App) -> Favorites[src]

fn path(app: &App) -> String[src]

pub fn contains(app: &App, b: BuildingID) -> bool[src]

pub fn add(app: &App, b: BuildingID)[src]

pub fn remove(app: &App, b: BuildingID)[src]

Trait Implementations

impl<'de> Deserialize<'de> for Favorites[src]

impl Serialize for Favorites[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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> Same<T> for T

type Output = T

Should always be Self

+

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>, 

\ No newline at end of file diff --git a/rustdoc/game/layer/favorites/struct.ShowFavorites.html b/rustdoc/game/layer/favorites/struct.ShowFavorites.html new file mode 100644 index 0000000000..b017dd8625 --- /dev/null +++ b/rustdoc/game/layer/favorites/struct.ShowFavorites.html @@ -0,0 +1,34 @@ +game::layer::favorites::ShowFavorites - Rust + +

[][src]Struct game::layer::favorites::ShowFavorites

pub struct ShowFavorites {
+    panel: Panel,
+    draw: Drawable,
+}

+ Fields

panel: Paneldraw: Drawable

Implementations

impl ShowFavorites[src]

pub fn new(ctx: &mut EventCtx<'_>, app: &App) -> ShowFavorites[src]

Trait Implementations

impl Layer for ShowFavorites[src]

Auto Trait Implementations

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> Downcast for T where
    T: Any

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> Same<T> for T

type Output = T

Should always be Self

+

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>, 

\ No newline at end of file diff --git a/rustdoc/game/layer/index.html b/rustdoc/game/layer/index.html index 1225d0539e..756adf2f93 100644 --- a/rustdoc/game/layer/index.html +++ b/rustdoc/game/layer/index.html @@ -1,8 +1,8 @@ game::layer - Rust

[][src]Module game::layer

Modules

-
elevation
map
pandemic
parking
population
traffic
transit

Structs

+ Change settings

[][src]Module game::layer

Modules

+
elevation
favorites
map
pandemic
parking
population
traffic
transit

Structs

PickLayer

Enums

LayerOutcome

Traits

Layer
\ No newline at end of file diff --git a/rustdoc/game/layer/sidebar-items.js b/rustdoc/game/layer/sidebar-items.js index eb99c4f7e3..6b65c5cf23 100644 --- a/rustdoc/game/layer/sidebar-items.js +++ b/rustdoc/game/layer/sidebar-items.js @@ -1 +1 @@ -initSidebarItems({"enum":[["LayerOutcome",""]],"mod":[["elevation",""],["map",""],["pandemic",""],["parking",""],["population",""],["traffic",""],["transit",""]],"struct":[["PickLayer",""]],"trait":[["Layer",""]]}); \ No newline at end of file +initSidebarItems({"enum":[["LayerOutcome",""]],"mod":[["elevation",""],["favorites",""],["map",""],["pandemic",""],["parking",""],["population",""],["traffic",""],["transit",""]],"struct":[["PickLayer",""]],"trait":[["Layer",""]]}); \ No newline at end of file diff --git a/rustdoc/game/layer/struct.PickLayer.html b/rustdoc/game/layer/struct.PickLayer.html index cc253e7d83..1408504ba8 100644 --- a/rustdoc/game/layer/struct.PickLayer.html +++ b/rustdoc/game/layer/struct.PickLayer.html @@ -1,12 +1,12 @@ game::layer::PickLayer - Rust

[][src]Struct game::layer::PickLayer

pub struct PickLayer {
+                Change settings

[][src]Struct game::layer::PickLayer

pub struct PickLayer {
     panel: Panel,
 }

- Fields

panel: Panel

Implementations

impl PickLayer[src]

pub fn update(
    ctx: &mut EventCtx<'_>,
    app: &mut App,
    minimap: &Panel
) -> Option<Transition<App>>
[src]

pub fn pick(ctx: &mut EventCtx<'_>, app: &App) -> Box<dyn State<App>>[src]

Trait Implementations

impl State<App> for PickLayer[src]

panel: Panel

Implementations

impl PickLayer[src]

pub fn update(
    ctx: &mut EventCtx<'_>,
    app: &mut App,
    minimap: &Panel
) -> Option<Transition<App>>
[src]

pub fn pick(ctx: &mut EventCtx<'_>, app: &App) -> Box<dyn State<App>>[src]

Trait Implementations

impl State<App> for PickLayer[src]

Auto Trait Implementations

impl !RefUnwindSafe for PickLayer

impl !Send for PickLayer

impl !Sync for PickLayer

impl Unpin for PickLayer

impl !UnwindSafe for PickLayer

Blanket Implementations

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

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

Required methods

fn name(&self) -> Option<&'static str>

fn event(
    &mut self,
    ctx: &mut EventCtx<'_>,
    app: &mut App,
    minimap: &Panel
) -> Option<LayerOutcome>

fn draw(&self, g: &mut GfxCtx<'_>, app: &App)

fn draw_minimap(&self, g: &mut GfxCtx<'_>)

Loading content...

Implementations

impl dyn Layer[src]

fn simple_event(
    ctx: &mut EventCtx<'_>,
    minimap: &Panel,
    panel: &mut Panel
) -> Option<LayerOutcome>
[src]

Implementors

impl Layer for Elevation[src]

impl Layer for ShowFavorites[src]

impl Layer for BikeNetwork[src]

impl Layer for CongestionCaps[src]

impl Layer for Static[src]

impl Layer for Pandemic[src]

impl Layer for Efficiency[src]

impl Layer for Occupancy[src]

impl Layer for PopulationMap[src]

impl Layer for Backpressure[src]

impl Layer for CompareThroughput[src]

impl Layer for Delay[src]

impl Layer for Throughput[src]

impl Layer for TrafficJams[src]

impl Layer for TransitNetwork[src]

Loading content...
\ No newline at end of file diff --git a/rustdoc/game/pregame/built_info/constant.BUILT_TIME_UTC.html b/rustdoc/game/pregame/built_info/constant.BUILT_TIME_UTC.html index b824f1b010..9f500102ab 100644 --- a/rustdoc/game/pregame/built_info/constant.BUILT_TIME_UTC.html +++ b/rustdoc/game/pregame/built_info/constant.BUILT_TIME_UTC.html @@ -1,5 +1,5 @@ game::pregame::built_info::BUILT_TIME_UTC - Rust

[][src]Constant game::pregame::built_info::BUILT_TIME_UTC

pub const BUILT_TIME_UTC: &str = "Tue, 12 Jan 2021 21:04:35 +0000";

The built-time in RFC2822, UTC

+ Change settings

[][src]Constant game::pregame::built_info::BUILT_TIME_UTC

pub const BUILT_TIME_UTC: &str = "Wed, 13 Jan 2021 03:37:54 +0000";

The built-time in RFC2822, UTC

\ No newline at end of file diff --git a/rustdoc/game/sandbox/enum.LoadStage.html b/rustdoc/game/sandbox/enum.LoadStage.html index a59438efc2..35419a67b6 100644 --- a/rustdoc/game/sandbox/enum.LoadStage.html +++ b/rustdoc/game/sandbox/enum.LoadStage.html @@ -1,7 +1,7 @@ game::sandbox::LoadStage - Rust

[][src]Enum game::sandbox::LoadStage

enum LoadStage {
+                Change settings

[][src]Enum game::sandbox::LoadStage

enum LoadStage {
     LoadingMap,
     LoadingScenario,
     GotScenario(Scenario),
diff --git a/rustdoc/game/sandbox/fn.is_daytime.html b/rustdoc/game/sandbox/fn.is_daytime.html
index baef32a068..d0de26d4c8 100644
--- a/rustdoc/game/sandbox/fn.is_daytime.html
+++ b/rustdoc/game/sandbox/fn.is_daytime.html
@@ -1,4 +1,4 @@
 game::sandbox::is_daytime - Rust
 
 

[][src]Function game::sandbox::is_daytime

fn is_daytime(app: &App) -> bool
\ No newline at end of file + Change settings

[][src]Function game::sandbox::is_daytime

fn is_daytime(app: &App) -> bool
\ No newline at end of file diff --git a/rustdoc/game/sandbox/fn.maybe_exit_sandbox.html b/rustdoc/game/sandbox/fn.maybe_exit_sandbox.html index fab1056745..a2815b0a5f 100644 --- a/rustdoc/game/sandbox/fn.maybe_exit_sandbox.html +++ b/rustdoc/game/sandbox/fn.maybe_exit_sandbox.html @@ -1,4 +1,4 @@ game::sandbox::maybe_exit_sandbox - Rust

[][src]Function game::sandbox::maybe_exit_sandbox

pub fn maybe_exit_sandbox(ctx: &mut EventCtx<'_>) -> Transition<App>
\ No newline at end of file + Change settings

[][src]Function game::sandbox::maybe_exit_sandbox

pub fn maybe_exit_sandbox(ctx: &mut EventCtx<'_>) -> Transition<App>
\ No newline at end of file diff --git a/rustdoc/game/sandbox/fn.mouseover_unzoomed_agent_circle.html b/rustdoc/game/sandbox/fn.mouseover_unzoomed_agent_circle.html index a7a6ee6015..9e3662a9ea 100644 --- a/rustdoc/game/sandbox/fn.mouseover_unzoomed_agent_circle.html +++ b/rustdoc/game/sandbox/fn.mouseover_unzoomed_agent_circle.html @@ -1,4 +1,4 @@ game::sandbox::mouseover_unzoomed_agent_circle - Rust

[][src]Function game::sandbox::mouseover_unzoomed_agent_circle

fn mouseover_unzoomed_agent_circle(ctx: &mut EventCtx<'_>, app: &mut App)
\ No newline at end of file + Change settings

[][src]Function game::sandbox::mouseover_unzoomed_agent_circle

fn mouseover_unzoomed_agent_circle(ctx: &mut EventCtx<'_>, app: &mut App)
\ No newline at end of file diff --git a/rustdoc/game/sandbox/index.html b/rustdoc/game/sandbox/index.html index d703eb6f50..a2e203b8b4 100644 --- a/rustdoc/game/sandbox/index.html +++ b/rustdoc/game/sandbox/index.html @@ -1,7 +1,7 @@ game::sandbox - Rust

[][src]Module game::sandbox

Re-exports

+ Change settings

[][src]Module game::sandbox

Re-exports

pub use self::gameplay::spawn_agents_around;
pub use self::gameplay::GameplayMode;
pub use self::gameplay::TutorialPointer;
pub use self::gameplay::TutorialState;
pub use self::speed::SpeedControls;
pub use self::speed::TimePanel;
pub use self::time_warp::TimeWarpScreen;

Modules

dashboards
gameplay
misc_tools
speed
time_warp
uber_turns

Structs

Actions
AgentMeter
BackToMainMenu
SandboxControls
SandboxLoader
SandboxMode

Enums

diff --git a/rustdoc/game/sandbox/struct.Actions.html b/rustdoc/game/sandbox/struct.Actions.html index 401f8035d5..26d6b7df66 100644 --- a/rustdoc/game/sandbox/struct.Actions.html +++ b/rustdoc/game/sandbox/struct.Actions.html @@ -1,12 +1,12 @@ game::sandbox::Actions - Rust

[][src]Struct game::sandbox::Actions

pub struct Actions {
+                Change settings

[][src]Struct game::sandbox::Actions

pub struct Actions {
     is_paused: bool,
     can_interact: bool,
     gameplay: GameplayMode,
 }

- Fields

is_paused: boolcan_interact: boolgameplay: GameplayMode

Trait Implementations

impl ContextualActions for Actions[src]

Auto Trait Implementations

impl RefUnwindSafe for Actions

impl Send for Actions

impl Sync for Actions

impl Unpin for Actions

impl UnwindSafe for Actions

Blanket Implementations

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