mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-25 15:33:44 +03:00
deploy: cf81200991
This commit is contained in:
parent
2a6756c7cb
commit
2d403d4208
File diff suppressed because one or more lines are too long
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `continue_app_setup` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, continue_app_setup"><title>continue_app_setup in game - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../game/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="index.html">game</a></h2><div id="sidebar-vars" data-name="continue_app_setup" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">game</a>::<wbr><a class="fn" href="#">continue_app_setup</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/game/lib.rs.html#398-495" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>pub(crate) fn continue_app_setup(<br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="app/struct.App.html" title="struct game::app::App">App</a>, <br> title: <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.bool.html">bool</a>, <br> setup: <a class="struct" href="struct.Setup.html" title="struct game::Setup">Setup</a>, <br> secondary: <a class="enum" href="https://doc.rust-lang.org/1.56.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="app/struct.PerMap.html" title="struct game::app::PerMap">PerMap</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.56.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/1.56.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="app/struct.App.html" title="struct game::app::App">App</a>>>></code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="game" data-search-index-js="../search-index.js" data-search-js="../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `continue_app_setup` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, continue_app_setup"><title>continue_app_setup in game - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../game/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="index.html">game</a></h2><div id="sidebar-vars" data-name="continue_app_setup" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">game</a>::<wbr><a class="fn" href="#">continue_app_setup</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/game/lib.rs.html#400-497" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>pub(crate) fn continue_app_setup(<br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="app/struct.App.html" title="struct game::app::App">App</a>, <br> title: <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.bool.html">bool</a>, <br> setup: <a class="struct" href="struct.Setup.html" title="struct game::Setup">Setup</a>, <br> secondary: <a class="enum" href="https://doc.rust-lang.org/1.56.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="app/struct.PerMap.html" title="struct game::app::PerMap">PerMap</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.56.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/1.56.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="app/struct.App.html" title="struct game::app::App">App</a>>>></code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="game" data-search-index-js="../search-index.js" data-search-js="../search.js"></div>
|
||||
<script src="../main.js"></script>
|
||||
</body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `finish_app_setup` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, finish_app_setup"><title>finish_app_setup in game - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../game/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="index.html">game</a></h2><div id="sidebar-vars" data-name="finish_app_setup" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">game</a>::<wbr><a class="fn" href="#">finish_app_setup</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/game/lib.rs.html#497-582" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>pub(crate) fn finish_app_setup(<br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="app/struct.App.html" title="struct game::app::App">App</a>, <br> title: <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.bool.html">bool</a>, <br> savestate: <a class="enum" href="https://doc.rust-lang.org/1.56.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../sim/sim/struct.Sim.html" title="struct sim::sim::Sim">Sim</a>>, <br> edits: <a class="enum" href="https://doc.rust-lang.org/1.56.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../map_model/edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>>, <br> setup: <a class="struct" href="struct.Setup.html" title="struct game::Setup">Setup</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.56.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/1.56.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="app/struct.App.html" title="struct game::app::App">App</a>>>></code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="game" data-search-index-js="../search-index.js" data-search-js="../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `finish_app_setup` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, finish_app_setup"><title>finish_app_setup in game - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../game/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="index.html">game</a></h2><div id="sidebar-vars" data-name="finish_app_setup" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">game</a>::<wbr><a class="fn" href="#">finish_app_setup</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/game/lib.rs.html#499-588" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>pub(crate) fn finish_app_setup(<br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="app/struct.App.html" title="struct game::app::App">App</a>, <br> title: <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.bool.html">bool</a>, <br> savestate: <a class="enum" href="https://doc.rust-lang.org/1.56.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../sim/sim/struct.Sim.html" title="struct sim::sim::Sim">Sim</a>>, <br> edits: <a class="enum" href="https://doc.rust-lang.org/1.56.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../map_model/edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>>, <br> setup: <a class="struct" href="struct.Setup.html" title="struct game::Setup">Setup</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.56.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/1.56.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="app/struct.App.html" title="struct game::app::App">App</a>>>></code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="game" data-search-index-js="../search-index.js" data-search-js="../search.js"></div>
|
||||
<script src="../main.js"></script>
|
||||
</body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `run` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, run"><title>run in game - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../game/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="index.html">game</a></h2><div id="sidebar-vars" data-name="run" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">game</a>::<wbr><a class="fn" href="#">run</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/game/lib.rs.html#151-272" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>pub(crate) fn run(settings: Settings)</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="game" data-search-index-js="../search-index.js" data-search-js="../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `run` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, run"><title>run in game - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../game/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="index.html">game</a></h2><div id="sidebar-vars" data-name="run" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">game</a>::<wbr><a class="fn" href="#">run</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/game/lib.rs.html#150-273" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>pub(crate) fn run(settings: Settings)</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="game" data-search-index-js="../search-index.js" data-search-js="../search.js"></div>
|
||||
<script src="../main.js"></script>
|
||||
</body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `setup_app` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, setup_app"><title>setup_app in game - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../game/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="index.html">game</a></h2><div id="sidebar-vars" data-name="setup_app" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">game</a>::<wbr><a class="fn" href="#">setup_app</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/game/lib.rs.html#274-396" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>pub(crate) fn setup_app(<br> ctx: &mut EventCtx<'_>, <br> setup: <a class="struct" href="struct.Setup.html" title="struct game::Setup">Setup</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.tuple.html">(</a><a class="struct" href="app/struct.App.html" title="struct game::app::App">App</a>, <a class="struct" href="https://doc.rust-lang.org/1.56.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/1.56.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="app/struct.App.html" title="struct game::app::App">App</a>>>><a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.tuple.html">)</a></code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="game" data-search-index-js="../search-index.js" data-search-js="../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `setup_app` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, setup_app"><title>setup_app in game - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../game/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="index.html">game</a></h2><div id="sidebar-vars" data-name="setup_app" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">game</a>::<wbr><a class="fn" href="#">setup_app</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/game/lib.rs.html#275-398" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>pub(crate) fn setup_app(<br> ctx: &mut EventCtx<'_>, <br> setup: <a class="struct" href="struct.Setup.html" title="struct game::Setup">Setup</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.tuple.html">(</a><a class="struct" href="app/struct.App.html" title="struct game::app::App">App</a>, <a class="struct" href="https://doc.rust-lang.org/1.56.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/1.56.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="app/struct.App.html" title="struct game::app::App">App</a>>>><a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.tuple.html">)</a></code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="game" data-search-index-js="../search-index.js" data-search-js="../search.js"></div>
|
||||
<script src="../main.js"></script>
|
||||
</body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `game` crate."><meta name="keywords" content="rust, rustlang, rust-lang, game"><title>game - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../game/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><h2 class="location">Crate game</h2><div class="block version"><div class="narrow-helper"></div><p>Version 0.1.0</p></div><div class="sidebar-elems"><a id="all-types" href="all.html"><p>See all game's items</p></a><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></div><div id="sidebar-vars" data-name="game" data-ty="mod" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Crate <a class="mod" href="#">game</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/game/lib.rs.html#2-596" title="goto source code">[src]</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `game` crate."><meta name="keywords" content="rust, rustlang, rust-lang, game"><title>game - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../game/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><h2 class="location">Crate game</h2><div class="block version"><div class="narrow-helper"></div><p>Version 0.1.0</p></div><div class="sidebar-elems"><a id="all-types" href="all.html"><p>See all game's items</p></a><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></div><div id="sidebar-vars" data-name="game" data-ty="mod" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Crate <a class="mod" href="#">game</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/game/lib.rs.html#2-602" title="goto source code">[src]</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="mod" href="app/index.html" title="game::app mod">app</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="challenges/index.html" title="game::challenges mod">challenges</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="common/index.html" title="game::common mod">common</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="debug/index.html" title="game::debug mod">debug</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="devtools/index.html" title="game::devtools mod">devtools</a></div><div class="item-right docblock-short"><p>This directory contains extra/experimental tools not directly related to A/B Street the game.
|
||||
Eventually some might be split into separate crates.</p>
|
||||
</div><div class="item-left module-item"><a class="mod" href="edit/index.html" title="game::edit mod">edit</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="info/index.html" title="game::info mod">info</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="layer/index.html" title="game::layer mod">layer</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="ltn/index.html" title="game::ltn mod">ltn</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="pregame/index.html" title="game::pregame mod">pregame</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="sandbox/index.html" title="game::sandbox mod">sandbox</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="ungap/index.html" title="game::ungap mod">ungap</a></div><div class="item-right docblock-short"></div></div><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The build time in RFC2822, UTC."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>BUILT_TIME_UTC in map_gui::tools::title_screen::built_info - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../../map_gui/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../../../index.html">map_gui</a>::<wbr><a href="../../index.html">tools</a>::<wbr><a href="../index.html">title_screen</a>::<wbr><a href="index.html">built_info</a></h2><div id="sidebar-vars" data-name="BUILT_TIME_UTC" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../../../index.html">map_gui</a>::<wbr><a href="../../index.html">tools</a>::<wbr><a href="../index.html">title_screen</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="#">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-7a75109d0313af68/out/built.rs.html#78" title="goto source code">[src]</a></span></h1><pre class="rust const"><code>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.str.html">str</a> = r"Thu, 11 Nov 2021 21:13:06 +0000";</code></pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The build time in RFC2822, UTC.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The build time in RFC2822, UTC."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>BUILT_TIME_UTC in map_gui::tools::title_screen::built_info - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../../map_gui/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../../../index.html">map_gui</a>::<wbr><a href="../../index.html">tools</a>::<wbr><a href="../index.html">title_screen</a>::<wbr><a href="index.html">built_info</a></h2><div id="sidebar-vars" data-name="BUILT_TIME_UTC" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../../../index.html">map_gui</a>::<wbr><a href="../../index.html">tools</a>::<wbr><a href="../index.html">title_screen</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="#">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-7a75109d0313af68/out/built.rs.html#78" title="goto source code">[src]</a></span></h1><pre class="rust const"><code>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.str.html">str</a> = r"Thu, 11 Nov 2021 21:33:39 +0000";</code></pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The build time in RFC2822, UTC.</p>
|
||||
</div></details></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="map_gui" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
|
||||
<script src="../../../../main.js"></script>
|
||||
</body></html>
|
File diff suppressed because one or more lines are too long
@ -594,6 +594,12 @@
|
||||
<span id="594">594</span>
|
||||
<span id="595">595</span>
|
||||
<span id="596">596</span>
|
||||
<span id="597">597</span>
|
||||
<span id="598">598</span>
|
||||
<span id="599">599</span>
|
||||
<span id="600">600</span>
|
||||
<span id="601">601</span>
|
||||
<span id="602">602</span>
|
||||
</pre><pre class="rust"><code><span class="comment">// Disable some noisy lints</span>
|
||||
<span class="attribute">#![<span class="ident">allow</span>(<span class="ident">clippy::too_many_arguments</span>, <span class="ident">clippy::type_complexity</span>)]</span>
|
||||
|
||||
@ -674,26 +680,10 @@
|
||||
<span class="attribute">#[<span class="ident">structopt</span>(<span class="ident">long</span>)]</span>
|
||||
<span class="ident">minimal_controls</span>: <span class="ident">bool</span>,
|
||||
|
||||
<span class="doccomment">/// Start by showing this KMl file in a debug viewer</span>
|
||||
<span class="attribute">#[<span class="ident">structopt</span>(<span class="ident">long</span> <span class="op">=</span> <span class="string">"kml"</span>)]</span>
|
||||
<span class="ident">load_kml</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">String</span><span class="op">></span>,
|
||||
<span class="doccomment">/// Run a configured set of simulations and record prebaked data.</span>
|
||||
<span class="attribute">#[<span class="ident">structopt</span>(<span class="ident">long</span>)]</span>
|
||||
<span class="ident">prebake</span>: <span class="ident">bool</span>,
|
||||
<span class="doccomment">/// Start playing a particular challenge</span>
|
||||
<span class="attribute">#[<span class="ident">structopt</span>(<span class="ident">long</span>)]</span>
|
||||
<span class="ident">challenge</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">String</span><span class="op">></span>,
|
||||
<span class="doccomment">/// Start on a particular tutorial stage</span>
|
||||
<span class="attribute">#[<span class="ident">structopt</span>(<span class="ident">long</span>)]</span>
|
||||
<span class="ident">tutorial</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">usize</span><span class="op">></span>,
|
||||
<span class="doccomment">/// Start in ActDev mode for a particular site name.</span>
|
||||
<span class="attribute">#[<span class="ident">structopt</span>(<span class="ident">long</span>)]</span>
|
||||
<span class="ident">actdev</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">String</span><span class="op">></span>,
|
||||
<span class="doccomment">/// Start by showing an ActDev scenario. Either "base" or "go_active".</span>
|
||||
<span class="attribute">#[<span class="ident">structopt</span>(<span class="ident">long</span>)]</span>
|
||||
<span class="ident">actdev_scenario</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">String</span><span class="op">></span>,
|
||||
|
||||
<span class="comment">// TODO Not sure how to do this more nicely</span>
|
||||
<span class="doccomment">/// Start at the tutorial intro screen</span>
|
||||
<span class="attribute">#[<span class="ident">structopt</span>(<span class="ident">long</span>)]</span>
|
||||
<span class="ident">tutorial_intro</span>: <span class="ident">bool</span>,
|
||||
@ -715,23 +705,36 @@
|
||||
<span class="doccomment">/// Start by listing internal developer tools</span>
|
||||
<span class="attribute">#[<span class="ident">structopt</span>(<span class="ident">long</span>)]</span>
|
||||
<span class="ident">devtools</span>: <span class="ident">bool</span>,
|
||||
<span class="doccomment">/// Start by showing this KMl file in a debug viewer</span>
|
||||
<span class="attribute">#[<span class="ident">structopt</span>(<span class="ident">long</span> <span class="op">=</span> <span class="string">"kml"</span>)]</span>
|
||||
<span class="ident">load_kml</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">String</span><span class="op">></span>,
|
||||
<span class="doccomment">/// Start playing a particular challenge</span>
|
||||
<span class="attribute">#[<span class="ident">structopt</span>(<span class="ident">long</span>)]</span>
|
||||
<span class="ident">challenge</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">String</span><span class="op">></span>,
|
||||
<span class="doccomment">/// Start on a particular tutorial stage</span>
|
||||
<span class="attribute">#[<span class="ident">structopt</span>(<span class="ident">long</span>)]</span>
|
||||
<span class="ident">tutorial</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">usize</span><span class="op">></span>,
|
||||
<span class="doccomment">/// Start in ActDev mode for a particular site name.</span>
|
||||
<span class="attribute">#[<span class="ident">structopt</span>(<span class="ident">long</span>)]</span>
|
||||
<span class="ident">actdev</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">String</span><span class="op">></span>,
|
||||
<span class="doccomment">/// Start by showing an ActDev scenario. Either "base" or "go_active".</span>
|
||||
<span class="attribute">#[<span class="ident">structopt</span>(<span class="ident">long</span>)]</span>
|
||||
<span class="ident">actdev_scenario</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">String</span><span class="op">></span>,
|
||||
}
|
||||
|
||||
<span class="kw">struct</span> <span class="ident">Setup</span> {
|
||||
<span class="ident">flags</span>: <span class="ident">Flags</span>,
|
||||
<span class="ident">opts</span>: <span class="ident">Options</span>,
|
||||
<span class="ident">start_with_edits</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">String</span><span class="op">></span>,
|
||||
<span class="ident">maybe_mode</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">GameplayMode</span><span class="op">></span>,
|
||||
<span class="ident">initialize_tutorial</span>: <span class="ident">bool</span>,
|
||||
<span class="ident">center_camera</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">String</span><span class="op">></span>,
|
||||
<span class="ident">start_time</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">Duration</span><span class="op">></span>,
|
||||
<span class="ident">load_kml</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">String</span><span class="op">></span>,
|
||||
<span class="ident">diff_map</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">String</span><span class="op">></span>,
|
||||
<span class="comment">// TODO Fold more of Setup into the mutually exclusive Mode. load_kml, maybe_mode, and</span>
|
||||
<span class="comment">// savestate are good candidates...</span>
|
||||
<span class="ident">mode</span>: <span class="ident">Mode</span>,
|
||||
}
|
||||
|
||||
<span class="comment">// TODO Switch to explicit enum subcommands, each of which includes precisely the set of common</span>
|
||||
<span class="comment">// flags that're valid for that mode</span>
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">PartialEq</span>)]</span>
|
||||
<span class="kw">enum</span> <span class="ident">Mode</span> {
|
||||
<span class="ident">SomethingElse</span>,
|
||||
@ -742,6 +745,8 @@
|
||||
<span class="ident">Ungap</span>,
|
||||
<span class="ident">Ltn</span>,
|
||||
<span class="ident">Devtools</span>,
|
||||
<span class="ident">LoadKML</span>(<span class="ident">String</span>),
|
||||
<span class="ident">Gameplay</span>(<span class="ident">GameplayMode</span>),
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">run</span>(<span class="kw-2">mut</span> <span class="ident">settings</span>: <span class="ident">Settings</span>) {
|
||||
@ -766,11 +771,9 @@
|
||||
<span class="ident">flags</span>: <span class="ident">args</span>.<span class="ident">flags</span>,
|
||||
<span class="ident">opts</span>: <span class="ident">Options::load_or_default</span>(),
|
||||
<span class="ident">start_with_edits</span>: <span class="ident">args</span>.<span class="ident">start_with_edits</span>,
|
||||
<span class="ident">maybe_mode</span>: <span class="prelude-val">None</span>,
|
||||
<span class="ident">initialize_tutorial</span>: <span class="bool-val">false</span>,
|
||||
<span class="ident">center_camera</span>: <span class="ident">args</span>.<span class="ident">cam</span>,
|
||||
<span class="ident">start_time</span>: <span class="ident">args</span>.<span class="ident">start_time</span>,
|
||||
<span class="ident">load_kml</span>: <span class="ident">args</span>.<span class="ident">load_kml</span>,
|
||||
<span class="ident">diff_map</span>: <span class="ident">args</span>.<span class="ident">diff_map</span>,
|
||||
<span class="ident">mode</span>: <span class="kw">if</span> <span class="ident">args</span>.<span class="ident">tutorial_intro</span> {
|
||||
<span class="ident">Mode::TutorialIntro</span>
|
||||
@ -786,6 +789,8 @@
|
||||
<span class="ident">Mode::Ltn</span>
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">args</span>.<span class="ident">devtools</span> {
|
||||
<span class="ident">Mode::Devtools</span>
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">kml</span>) <span class="op">=</span> <span class="ident">args</span>.<span class="ident">load_kml</span> {
|
||||
<span class="ident">Mode::LoadKML</span>(<span class="ident">kml</span>)
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">Mode::SomethingElse</span>
|
||||
},
|
||||
@ -810,25 +815,27 @@
|
||||
}
|
||||
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">x</span>) <span class="op">=</span> <span class="ident">args</span>.<span class="ident">challenge</span> {
|
||||
<span class="comment">// TODO This is a weak form of mutual exclusion; just use subcommands</span>
|
||||
<span class="macro">assert!</span>(<span class="ident">setup</span>.<span class="ident">mode</span> <span class="op">=</span><span class="op">=</span> <span class="ident">Mode::SomethingElse</span>);
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">aliases</span> <span class="op">=</span> <span class="ident">Vec::new</span>();
|
||||
<span class="lifetime">'OUTER</span>: <span class="kw">for</span> (<span class="kw">_</span>, <span class="ident">stages</span>) <span class="kw">in</span> <span class="ident">challenges::Challenge::all</span>() {
|
||||
<span class="kw">for</span> <span class="ident">challenge</span> <span class="kw">in</span> <span class="ident">stages</span> {
|
||||
<span class="kw">if</span> <span class="ident">challenge</span>.<span class="ident">alias</span> <span class="op">=</span><span class="op">=</span> <span class="ident">x</span> {
|
||||
<span class="ident">setup</span>.<span class="ident">flags</span>.<span class="ident">sim_flags</span>.<span class="ident">load</span> <span class="op">=</span> <span class="ident">challenge</span>.<span class="ident">gameplay</span>.<span class="ident">map_name</span>().<span class="ident">path</span>();
|
||||
<span class="ident">setup</span>.<span class="ident">maybe_mode</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">challenge</span>.<span class="ident">gameplay</span>);
|
||||
<span class="ident">setup</span>.<span class="ident">mode</span> <span class="op">=</span> <span class="ident">Mode::Gameplay</span>(<span class="ident">challenge</span>.<span class="ident">gameplay</span>);
|
||||
<span class="kw">break</span> <span class="lifetime">'OUTER</span>;
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">aliases</span>.<span class="ident">push</span>(<span class="ident">challenge</span>.<span class="ident">alias</span>);
|
||||
}
|
||||
}
|
||||
}
|
||||
<span class="kw">if</span> <span class="ident">setup</span>.<span class="ident">maybe_mode</span>.<span class="ident">is_none</span>() {
|
||||
<span class="kw">if</span> <span class="ident">setup</span>.<span class="ident">mode</span> <span class="op">=</span><span class="op">=</span> <span class="ident">Mode::SomethingElse</span> {
|
||||
<span class="macro">panic!</span>(<span class="string">"Invalid --challenge={}. Choices: {}"</span>, <span class="ident">x</span>, <span class="ident">aliases</span>.<span class="ident">join</span>(<span class="string">", "</span>));
|
||||
}
|
||||
}
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">n</span>) <span class="op">=</span> <span class="ident">args</span>.<span class="ident">tutorial</span> {
|
||||
<span class="ident">setup</span>.<span class="ident">initialize_tutorial</span> <span class="op">=</span> <span class="bool-val">true</span>;
|
||||
<span class="ident">setup</span>.<span class="ident">maybe_mode</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">sandbox::GameplayMode::Tutorial</span>(
|
||||
<span class="ident">setup</span>.<span class="ident">mode</span> <span class="op">=</span> <span class="ident">Mode::Gameplay</span>(<span class="ident">sandbox::GameplayMode::Tutorial</span>(
|
||||
<span class="ident">sandbox::TutorialPointer::new</span>(<span class="ident">n</span> <span class="op">-</span> <span class="number">1</span>, <span class="number">0</span>),
|
||||
));
|
||||
}
|
||||
@ -837,10 +844,10 @@
|
||||
<span class="comment">// other scenarios loaed in the UI later.</span>
|
||||
<span class="kw">let</span> <span class="ident">modifiers</span> <span class="op">=</span> <span class="ident">setup</span>.<span class="ident">flags</span>.<span class="ident">sim_flags</span>.<span class="ident">scenario_modifiers</span>.<span class="ident">drain</span>(..).<span class="ident">collect</span>();
|
||||
|
||||
<span class="kw">if</span> <span class="ident">setup</span>.<span class="ident">maybe_mode</span>.<span class="ident">is_none</span>() <span class="op">&&</span> <span class="ident">setup</span>.<span class="ident">flags</span>.<span class="ident">sim_flags</span>.<span class="ident">load</span>.<span class="ident">contains</span>(<span class="string">"scenarios/"</span>) {
|
||||
<span class="kw">if</span> <span class="ident">setup</span>.<span class="ident">mode</span> <span class="op">=</span><span class="op">=</span> <span class="ident">Mode::SomethingElse</span> <span class="op">&&</span> <span class="ident">setup</span>.<span class="ident">flags</span>.<span class="ident">sim_flags</span>.<span class="ident">load</span>.<span class="ident">contains</span>(<span class="string">"scenarios/"</span>) {
|
||||
<span class="kw">let</span> (<span class="ident">map_name</span>, <span class="ident">scenario</span>) <span class="op">=</span> <span class="ident">abstio::parse_scenario_path</span>(<span class="kw-2">&</span><span class="ident">setup</span>.<span class="ident">flags</span>.<span class="ident">sim_flags</span>.<span class="ident">load</span>);
|
||||
<span class="ident">setup</span>.<span class="ident">flags</span>.<span class="ident">sim_flags</span>.<span class="ident">load</span> <span class="op">=</span> <span class="ident">map_name</span>.<span class="ident">path</span>();
|
||||
<span class="ident">setup</span>.<span class="ident">maybe_mode</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">sandbox::GameplayMode::PlayScenario</span>(
|
||||
<span class="ident">setup</span>.<span class="ident">mode</span> <span class="op">=</span> <span class="ident">Mode::Gameplay</span>(<span class="ident">sandbox::GameplayMode::PlayScenario</span>(
|
||||
<span class="ident">map_name</span>, <span class="ident">scenario</span>, <span class="ident">modifiers</span>,
|
||||
));
|
||||
}
|
||||
@ -861,7 +868,7 @@
|
||||
} <span class="kw">else</span> {
|
||||
<span class="string">"base"</span>.<span class="ident">to_string</span>()
|
||||
};
|
||||
<span class="ident">setup</span>.<span class="ident">maybe_mode</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">sandbox::GameplayMode::Actdev</span>(<span class="ident">name</span>, <span class="ident">scenario</span>, <span class="bool-val">false</span>));
|
||||
<span class="ident">setup</span>.<span class="ident">mode</span> <span class="op">=</span> <span class="ident">Mode::Gameplay</span>(<span class="ident">sandbox::GameplayMode::Actdev</span>(<span class="ident">name</span>, <span class="ident">scenario</span>, <span class="bool-val">false</span>));
|
||||
}
|
||||
|
||||
<span class="ident">widgetry::run</span>(<span class="ident">settings</span>, <span class="op">|</span><span class="ident">ctx</span><span class="op">|</span> <span class="ident">setup_app</span>(<span class="ident">ctx</span>, <span class="ident">setup</span>))
|
||||
@ -871,7 +878,6 @@
|
||||
<span class="kw">let</span> <span class="ident">title</span> <span class="op">=</span> <span class="op">!</span><span class="ident">setup</span>.<span class="ident">opts</span>.<span class="ident">dev</span>
|
||||
<span class="op">&&</span> <span class="op">!</span><span class="ident">setup</span>.<span class="ident">flags</span>.<span class="ident">sim_flags</span>.<span class="ident">load</span>.<span class="ident">contains</span>(<span class="string">"player/save"</span>)
|
||||
<span class="op">&&</span> <span class="op">!</span><span class="ident">setup</span>.<span class="ident">flags</span>.<span class="ident">sim_flags</span>.<span class="ident">load</span>.<span class="ident">contains</span>(<span class="string">"/scenarios/"</span>)
|
||||
<span class="op">&&</span> <span class="ident">setup</span>.<span class="ident">maybe_mode</span>.<span class="ident">is_none</span>()
|
||||
<span class="op">&&</span> <span class="ident">setup</span>.<span class="ident">mode</span> <span class="op">=</span><span class="op">=</span> <span class="ident">Mode::SomethingElse</span>;
|
||||
|
||||
<span class="comment">// Load the map used previously if we're starting on the title screen without any overrides.</span>
|
||||
@ -888,10 +894,12 @@
|
||||
<span class="comment">// usually time is midnight, so save some effort and start with the correct color scheme. If</span>
|
||||
<span class="comment">// we're loading a savestate and it's actually daytime, we'll pay a small penalty to switch</span>
|
||||
<span class="comment">// colors.</span>
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">GameplayMode::PlayScenario</span>(<span class="kw">_</span>, <span class="kw">_</span>, <span class="kw">_</span>))
|
||||
<span class="op">|</span> <span class="prelude-val">Some</span>(<span class="ident">GameplayMode::FixTrafficSignals</span>)
|
||||
<span class="op">|</span> <span class="prelude-val">Some</span>(<span class="ident">GameplayMode::OptimizeCommute</span>(<span class="kw">_</span>, <span class="kw">_</span>))
|
||||
<span class="op">|</span> <span class="prelude-val">Some</span>(<span class="ident">GameplayMode::Tutorial</span>(<span class="kw">_</span>)) <span class="op">=</span> <span class="ident">setup</span>.<span class="ident">maybe_mode</span>
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="ident">Mode::Gameplay</span>(
|
||||
<span class="ident">GameplayMode::PlayScenario</span>(<span class="kw">_</span>, <span class="kw">_</span>, <span class="kw">_</span>)
|
||||
<span class="op">|</span> <span class="ident">GameplayMode::FixTrafficSignals</span>
|
||||
<span class="op">|</span> <span class="ident">GameplayMode::OptimizeCommute</span>(<span class="kw">_</span>, <span class="kw">_</span>)
|
||||
<span class="op">|</span> <span class="ident">GameplayMode::Tutorial</span>(<span class="kw">_</span>),
|
||||
) <span class="op">=</span> <span class="ident">setup</span>.<span class="ident">mode</span>
|
||||
{
|
||||
<span class="ident">setup</span>.<span class="ident">opts</span>.<span class="ident">color_scheme</span> <span class="op">=</span> <span class="ident">map_gui::colors::ColorSchemeChoice::NightMode</span>;
|
||||
}
|
||||
@ -926,7 +934,7 @@
|
||||
<span class="comment">// case, all we're creating there is a map. If so, use the proper async interface.</span>
|
||||
<span class="comment">//</span>
|
||||
<span class="comment">// Note if we started with a scenario, main() rewrote it to be the appropriate map, along with</span>
|
||||
<span class="comment">// maybe_mode.</span>
|
||||
<span class="comment">// mode.</span>
|
||||
<span class="kw">if</span> <span class="ident">setup</span>.<span class="ident">flags</span>.<span class="ident">sim_flags</span>.<span class="ident">load</span>.<span class="ident">contains</span>(<span class="string">"/maps/"</span>) {
|
||||
<span class="comment">// Get App created with a dummy blank map</span>
|
||||
<span class="kw">let</span> <span class="ident">map</span> <span class="op">=</span> <span class="ident">Map::blank</span>();
|
||||
@ -1017,7 +1025,7 @@
|
||||
.<span class="ident">load</span>
|
||||
.<span class="ident">contains</span>(<span class="string">"player/saves/"</span>)
|
||||
{
|
||||
<span class="macro">assert!</span>(<span class="ident">setup</span>.<span class="ident">maybe_mode</span>.<span class="ident">is_none</span>());
|
||||
<span class="macro">assert!</span>(<span class="ident">setup</span>.<span class="ident">mode</span> <span class="op">=</span><span class="op">=</span> <span class="ident">Mode::SomethingElse</span>);
|
||||
<span class="prelude-val">Some</span>(<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">clear_sim</span>())
|
||||
} <span class="kw">else</span> {
|
||||
<span class="prelude-val">None</span>
|
||||
@ -1119,21 +1127,24 @@
|
||||
<span class="kw">return</span> <span class="macro">vec!</span>[<span class="ident">TitleScreen::new_state</span>(<span class="ident">ctx</span>, <span class="ident">app</span>)];
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="ident">state</span> <span class="op">=</span> <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">path</span>) <span class="op">=</span> <span class="ident">setup</span>.<span class="ident">load_kml</span> {
|
||||
<span class="ident"><span class="kw">crate</span>::devtools::kml::ViewKML::new_state</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="prelude-val">Some</span>(<span class="ident">path</span>))
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">ss</span>) <span class="op">=</span> <span class="ident">savestate</span> {
|
||||
<span class="kw">let</span> <span class="ident">state</span> <span class="op">=</span> <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">ss</span>) <span class="op">=</span> <span class="ident">savestate</span> {
|
||||
<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span> <span class="op">=</span> <span class="ident">ss</span>;
|
||||
<span class="ident">SandboxMode::start_from_savestate</span>(<span class="ident">app</span>)
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">mode</span>) <span class="op">=</span> <span class="ident">setup</span>.<span class="ident">maybe_mode</span> {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="ident">GameplayMode::Actdev</span>(<span class="kw">_</span>, <span class="kw">_</span>, <span class="kw">_</span>) <span class="op">=</span> <span class="ident">mode</span> {
|
||||
<span class="ident">SandboxMode::async_new</span>(<span class="ident">app</span>, <span class="ident">mode</span>, <span class="ident">jump_to_time_upon_startup</span>(<span class="ident">Duration::hours</span>(<span class="number">8</span>)))
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">t</span>) <span class="op">=</span> <span class="ident">setup</span>.<span class="ident">start_time</span> {
|
||||
<span class="ident">SandboxMode::async_new</span>(<span class="ident">app</span>, <span class="ident">mode</span>, <span class="ident">jump_to_time_upon_startup</span>(<span class="ident">t</span>))
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">SandboxMode::simple_new</span>(<span class="ident">app</span>, <span class="ident">mode</span>)
|
||||
}
|
||||
} <span class="kw">else</span> {
|
||||
<span class="kw">match</span> <span class="ident">setup</span>.<span class="ident">mode</span> {
|
||||
<span class="ident">Mode::Gameplay</span>(<span class="ident">gameplay</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="ident">GameplayMode::Actdev</span>(<span class="kw">_</span>, <span class="kw">_</span>, <span class="kw">_</span>) <span class="op">=</span> <span class="ident">gameplay</span> {
|
||||
<span class="ident">SandboxMode::async_new</span>(
|
||||
<span class="ident">app</span>,
|
||||
<span class="ident">gameplay</span>,
|
||||
<span class="ident">jump_to_time_upon_startup</span>(<span class="ident">Duration::hours</span>(<span class="number">8</span>)),
|
||||
)
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">t</span>) <span class="op">=</span> <span class="ident">setup</span>.<span class="ident">start_time</span> {
|
||||
<span class="ident">SandboxMode::async_new</span>(<span class="ident">app</span>, <span class="ident">gameplay</span>, <span class="ident">jump_to_time_upon_startup</span>(<span class="ident">t</span>))
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">SandboxMode::simple_new</span>(<span class="ident">app</span>, <span class="ident">gameplay</span>)
|
||||
}
|
||||
}
|
||||
<span class="ident">Mode::SomethingElse</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="comment">// Not attempting to keep the primary and secondary simulations synchronized at the</span>
|
||||
<span class="comment">// same time yet. Just handle this one startup case, so we can switch maps without</span>
|
||||
@ -1172,6 +1183,7 @@
|
||||
}
|
||||
<span class="ident">Mode::Ltn</span> <span class="op">=</span><span class="op">></span> <span class="ident">ltn::BrowseNeighborhoods::new_state</span>(<span class="ident">ctx</span>, <span class="ident">app</span>),
|
||||
<span class="ident">Mode::Devtools</span> <span class="op">=</span><span class="op">></span> <span class="ident">devtools::DevToolsMode::new_state</span>(<span class="ident">ctx</span>, <span class="ident">app</span>),
|
||||
<span class="ident">Mode::LoadKML</span>(<span class="ident">path</span>) <span class="op">=</span><span class="op">></span> <span class="ident"><span class="kw">crate</span>::devtools::kml::ViewKML::new_state</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="prelude-val">Some</span>(<span class="ident">path</span>)),
|
||||
}
|
||||
};
|
||||
<span class="macro">vec!</span>[<span class="ident">TitleScreen::new_state</span>(<span class="ident">ctx</span>, <span class="ident">app</span>), <span class="ident">state</span>]
|
||||
|
@ -174,7 +174,7 @@
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"rustdoc 1.56.1 (59eed8a2a 2021-11-01)"</span>;
|
||||
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#"The build time in RFC2822, UTC."#</span>]</span>
|
||||
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"Thu, 11 Nov 2021 21:13:06 +0000"</span>;
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"Thu, 11 Nov 2021 21:33:39 +0000"</span>;
|
||||
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#"The target architecture, given by `CARGO_CFG_TARGET_ARCH`."#</span>]</span>
|
||||
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"x86_64"</span>;
|
||||
|
Loading…
Reference in New Issue
Block a user