This commit is contained in:
dabreegster 2020-09-18 00:41:20 +00:00
parent d0b013d8d5
commit b8ad23ed28
32 changed files with 286 additions and 165 deletions

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<!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 `check_for_missing_turns` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, check_for_missing_turns"><title>game::edit::traffic_signals::check_for_missing_turns - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'check_for_missing_turns', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#821-848' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>check_for_missing_turns</a></span></h1><pre class='rust fn'>fn check_for_missing_turns(<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;members: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>&gt;<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> <!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 `check_for_missing_turns` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, check_for_missing_turns"><title>game::edit::traffic_signals::check_for_missing_turns - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'check_for_missing_turns', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#805-832' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>check_for_missing_turns</a></span></h1><pre class='rust fn'>fn check_for_missing_turns(<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;members: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>&gt;<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -1 +1 @@
<!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 `draw_multiple_signals` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_multiple_signals"><title>game::edit::traffic_signals::draw_multiple_signals - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'draw_multiple_signals', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#850-896' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>draw_multiple_signals</a></span></h1><pre class='rust fn'>fn draw_multiple_signals(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx, <br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;members: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;hovering: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;translations: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;<br>) -&gt; GeomBatch</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> <!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 `draw_multiple_signals` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_multiple_signals"><title>game::edit::traffic_signals::draw_multiple_signals - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'draw_multiple_signals', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#834-880' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>draw_multiple_signals</a></span></h1><pre class='rust fn'>fn draw_multiple_signals(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx, <br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;members: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;hovering: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;translations: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;<br>) -&gt; GeomBatch</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -1 +1 @@
<!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 `make_side_panel` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_side_panel"><title>game::edit::traffic_signals::make_side_panel - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'make_side_panel', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#583-757' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>make_side_panel</a></span></h1><pre class='rust fn'>fn make_side_panel(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx, <br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;members: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;selected: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;hovering: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>&gt;<br>) -&gt; Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> <!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 `make_side_panel` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_side_panel"><title>game::edit::traffic_signals::make_side_panel - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'make_side_panel', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#567-741' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>make_side_panel</a></span></h1><pre class='rust fn'>fn make_side_panel(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx, <br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;members: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;selected: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;hovering: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>&gt;<br>) -&gt; Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -1 +1 @@
<!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 `make_top_panel` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_top_panel"><title>game::edit::traffic_signals::make_top_panel - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'make_top_panel', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#518-581' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>make_top_panel</a></span></h1><pre class='rust fn'>fn make_top_panel(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx, <br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;can_undo: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;can_redo: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -&gt; Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> <!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 `make_top_panel` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_top_panel"><title>game::edit::traffic_signals::make_top_panel - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'make_top_panel', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#502-565' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>make_top_panel</a></span></h1><pre class='rust fn'>fn make_top_panel(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx, <br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;can_undo: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;can_redo: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -&gt; Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -1 +1 @@
<!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 `squish_polygons_together` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, squish_polygons_together"><title>game::edit::traffic_signals::squish_polygons_together - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'squish_polygons_together', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#899-945' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>squish_polygons_together</a></span></h1><pre class='rust fn'>fn squish_polygons_together(polygons: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> <!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 `squish_polygons_together` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, squish_polygons_together"><title>game::edit::traffic_signals::squish_polygons_together - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'squish_polygons_together', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#883-929' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>squish_polygons_together</a></span></h1><pre class='rust fn'>fn squish_polygons_together(polygons: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -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 `traffic_signals` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, traffic_signals"><title>game::edit::traffic_signals - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module traffic_signals</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a></p><script>window.sidebarCurrent = {name: 'traffic_signals', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#1-945' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a class="mod" href=''>traffic_signals</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 `traffic_signals` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, traffic_signals"><title>game::edit::traffic_signals - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module traffic_signals</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a></p><script>window.sidebarCurrent = {name: 'traffic_signals', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#1-929' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a class="mod" href=''>traffic_signals</a></span></h1><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
<table><tr class='module-item'><td><a class="mod" href="edits/index.html" title='game::edit::traffic_signals::edits mod'>edits</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="picker/index.html" title='game::edit::traffic_signals::picker mod'>picker</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="preview/index.html" title='game::edit::traffic_signals::preview mod'>preview</a></td><td class='docblock-short'></td></tr></table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2> <table><tr class='module-item'><td><a class="mod" href="edits/index.html" title='game::edit::traffic_signals::edits mod'>edits</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="picker/index.html" title='game::edit::traffic_signals::picker mod'>picker</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="preview/index.html" title='game::edit::traffic_signals::preview mod'>preview</a></td><td class='docblock-short'></td></tr></table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<table><tr class='module-item'><td><a class="struct" href="struct.BundleEdits.html" title='game::edit::traffic_signals::BundleEdits struct'>BundleEdits</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.TrafficSignalEditor.html" title='game::edit::traffic_signals::TrafficSignalEditor struct'>TrafficSignalEditor</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2> <table><tr class='module-item'><td><a class="struct" href="struct.BundleEdits.html" title='game::edit::traffic_signals::BundleEdits struct'>BundleEdits</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.TrafficSignalEditor.html" title='game::edit::traffic_signals::TrafficSignalEditor struct'>TrafficSignalEditor</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
<table><tr class='module-item'><td><a class="fn" href="fn.check_for_missing_turns.html" title='game::edit::traffic_signals::check_for_missing_turns fn'>check_for_missing_turns</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.draw_multiple_signals.html" title='game::edit::traffic_signals::draw_multiple_signals fn'>draw_multiple_signals</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.make_side_panel.html" title='game::edit::traffic_signals::make_side_panel fn'>make_side_panel</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.make_top_panel.html" title='game::edit::traffic_signals::make_top_panel fn'>make_top_panel</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.squish_polygons_together.html" title='game::edit::traffic_signals::squish_polygons_together fn'>squish_polygons_together</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> <table><tr class='module-item'><td><a class="fn" href="fn.check_for_missing_turns.html" title='game::edit::traffic_signals::check_for_missing_turns fn'>check_for_missing_turns</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.draw_multiple_signals.html" title='game::edit::traffic_signals::draw_multiple_signals fn'>draw_multiple_signals</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.make_side_panel.html" title='game::edit::traffic_signals::make_side_panel fn'>make_side_panel</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.make_top_panel.html" title='game::edit::traffic_signals::make_top_panel fn'>make_top_panel</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.squish_polygons_together.html" title='game::edit::traffic_signals::squish_polygons_together fn'>squish_polygons_together</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -1,7 +1,7 @@
<!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 `BundleEdits` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BundleEdits"><title>game::edit::traffic_signals::BundleEdits - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct BundleEdits</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.signals">signals</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.apply">apply</a><a href="#method.commit">commit</a><a href="#method.get_current">get_current</a><a href="#method.synchronize">synchronize</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-PartialEq%3CBundleEdits%3E">PartialEq&lt;BundleEdits&gt;</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a><a href="#impl-VZip%3CV%3E">VZip&lt;V&gt;</a></div></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'BundleEdits', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#50-52' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="struct" href=''>BundleEdits</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct BundleEdits { <!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 `BundleEdits` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BundleEdits"><title>game::edit::traffic_signals::BundleEdits - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct BundleEdits</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.signals">signals</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.apply">apply</a><a href="#method.commit">commit</a><a href="#method.get_current">get_current</a><a href="#method.synchronize">synchronize</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-PartialEq%3CBundleEdits%3E">PartialEq&lt;BundleEdits&gt;</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a><a href="#impl-VZip%3CV%3E">VZip&lt;V&gt;</a></div></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'BundleEdits', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#50-52' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>edit</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="struct" href=''>BundleEdits</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct BundleEdits {
signals: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../map_model/objects/traffic_signals/struct.ControlTrafficSignal.html" title="struct map_model::objects::traffic_signals::ControlTrafficSignal">ControlTrafficSignal</a>&gt;, signals: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../map_model/objects/traffic_signals/struct.ControlTrafficSignal.html" title="struct map_model::objects::traffic_signals::ControlTrafficSignal">ControlTrafficSignal</a>&gt;,
}</pre></div><h2 id='fields' class='fields small-section-header'> }</pre></div><h2 id='fields' class='fields small-section-header'>
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.signals" class="structfield small-section-header"><a href="#structfield.signals" class="anchor field"></a><code>signals: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../map_model/objects/traffic_signals/struct.ControlTrafficSignal.html" title="struct map_model::objects::traffic_signals::ControlTrafficSignal">ControlTrafficSignal</a>&gt;</code></span><h2 id='implementations' class='small-section-header'>Implementations<a href='#implementations' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#759-818' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.apply' class="method"><code>fn <a href='#method.apply' class='fnname'>apply</a>(&amp;self, app: &amp;mut <a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#760-764' title='goto source code'>[src]</a></h4><h4 id='method.commit' class="method"><code>fn <a href='#method.commit' class='fnname'>commit</a>(self, ctx: &amp;mut EventCtx, app: &amp;mut <a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#766-782' title='goto source code'>[src]</a></h4><h4 id='method.get_current' class="method"><code>fn <a href='#method.get_current' class='fnname'>get_current</a>(app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, members: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>&gt;) -&gt; <a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a></code><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#784-790' title='goto source code'>[src]</a></h4><h4 id='method.synchronize' class="method"><code>fn <a href='#method.synchronize' class='fnname'>synchronize</a>(app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, members: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>&gt;) -&gt; <a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a></code><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#794-817' title='goto source code'>[src]</a></h4></div><h2 id='trait-implementations' class='small-section-header'>Trait Implementations<a href='#trait-implementations' class='anchor'></a></h2><div id='trait-implementations-list'><h3 id='impl-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#49' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&amp;self) -&gt; <a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a></code><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#49' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p> Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.signals" class="structfield small-section-header"><a href="#structfield.signals" class="anchor field"></a><code>signals: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../map_model/objects/traffic_signals/struct.ControlTrafficSignal.html" title="struct map_model::objects::traffic_signals::ControlTrafficSignal">ControlTrafficSignal</a>&gt;</code></span><h2 id='implementations' class='small-section-header'>Implementations<a href='#implementations' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#743-802' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.apply' class="method"><code>fn <a href='#method.apply' class='fnname'>apply</a>(&amp;self, app: &amp;mut <a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#744-748' title='goto source code'>[src]</a></h4><h4 id='method.commit' class="method"><code>fn <a href='#method.commit' class='fnname'>commit</a>(self, ctx: &amp;mut EventCtx, app: &amp;mut <a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#750-766' title='goto source code'>[src]</a></h4><h4 id='method.get_current' class="method"><code>fn <a href='#method.get_current' class='fnname'>get_current</a>(app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, members: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>&gt;) -&gt; <a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a></code><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#768-774' title='goto source code'>[src]</a></h4><h4 id='method.synchronize' class="method"><code>fn <a href='#method.synchronize' class='fnname'>synchronize</a>(app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, members: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>&gt;) -&gt; <a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a></code><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#778-801' title='goto source code'>[src]</a></h4></div><h2 id='trait-implementations' class='small-section-header'>Trait Implementations<a href='#trait-implementations' class='anchor'></a></h2><div id='trait-implementations-list'><h3 id='impl-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#49' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&amp;self) -&gt; <a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a></code><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#49' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4 id='method.clone_from' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p> </div><h4 id='method.clone_from' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div><h3 id='impl-PartialEq%3CBundleEdits%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a>&gt; for <a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a></code><a href='#impl-PartialEq%3CBundleEdits%3E' class='anchor'></a><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#49' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, other: &amp;<a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#49' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p> </div></div><h3 id='impl-PartialEq%3CBundleEdits%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a>&gt; for <a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a></code><a href='#impl-PartialEq%3CBundleEdits%3E' class='anchor'></a><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#49' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, other: &amp;<a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#49' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id='method.ne' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, other: &amp;<a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#49' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p> </div><h4 id='method.ne' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, other: &amp;<a class="struct" href="../../../game/edit/traffic_signals/struct.BundleEdits.html" title="struct game::edit::traffic_signals::BundleEdits">BundleEdits</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../../src/game/edit/traffic_signals/mod.rs.html#49' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,2 @@
<!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 `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a></p><script>window.sidebarCurrent = {name: 'BUILT_TIME_UTC', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-3c7487281029702d/out/built.rs.html#49' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = &quot;Thu, 17 Sep 2020 22:51:18 +0000&quot;;</pre><div class='docblock'><p>The built-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="API documentation for the Rust `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a></p><script>window.sidebarCurrent = {name: 'BUILT_TIME_UTC', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-3c7487281029702d/out/built.rs.html#49' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = &quot;Fri, 18 Sep 2020 00:38:46 +0000&quot;;</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> </div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -1,5 +1,5 @@
<!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 `render` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, render"><title>game::render - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../game/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module render</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#reexports">Re-exports</a></li><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>game</a></p><script>window.sidebarCurrent = {name: 'render', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><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><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/game/render/mod.rs.html#1-86' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>game</a>::<wbr><a class="mod" href=''>render</a></span></h1><h2 id='reexports' class='section-header'><a href="#reexports">Re-exports</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 `render` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, render"><title>game::render - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../game/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module render</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#reexports">Re-exports</a></li><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>game</a></p><script>window.sidebarCurrent = {name: 'render', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><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><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/game/render/mod.rs.html#1-86' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>game</a>::<wbr><a class="mod" href=''>render</a></span></h1><h2 id='reexports' class='section-header'><a href="#reexports">Re-exports</a></h2>
<table><tr><td><code>pub use crate::render::area::<a class="struct" href="../../game/render/area/struct.DrawArea.html" title="struct game::render::area::DrawArea">DrawArea</a>;</code></td></tr><tr><td><code>pub use crate::render::building::<a class="struct" href="../../game/render/building/struct.DrawBuilding.html" title="struct game::render::building::DrawBuilding">DrawBuilding</a>;</code></td></tr><tr><td><code>pub use crate::render::intersection::<a class="fn" href="../../game/render/intersection/fn.calculate_corners.html" title="fn game::render::intersection::calculate_corners">calculate_corners</a>;</code></td></tr><tr><td><code>pub use crate::render::intersection::<a class="struct" href="../../game/render/intersection/struct.DrawIntersection.html" title="struct game::render::intersection::DrawIntersection">DrawIntersection</a>;</code></td></tr><tr><td><code>pub use crate::render::map::<a class="struct" href="../../game/render/map/struct.AgentCache.html" title="struct game::render::map::AgentCache">AgentCache</a>;</code></td></tr><tr><td><code>pub use crate::render::map::<a class="struct" href="../../game/render/map/struct.DrawMap.html" title="struct game::render::map::DrawMap">DrawMap</a>;</code></td></tr><tr><td><code>pub use crate::render::map::<a class="struct" href="../../game/render/map/struct.UnzoomedAgents.html" title="struct game::render::map::UnzoomedAgents">UnzoomedAgents</a>;</code></td></tr><tr><td><code>pub use crate::render::pedestrian::<a class="struct" href="../../game/render/pedestrian/struct.DrawPedCrowd.html" title="struct game::render::pedestrian::DrawPedCrowd">DrawPedCrowd</a>;</code></td></tr><tr><td><code>pub use crate::render::pedestrian::<a class="struct" href="../../game/render/pedestrian/struct.DrawPedestrian.html" title="struct game::render::pedestrian::DrawPedestrian">DrawPedestrian</a>;</code></td></tr><tr><td><code>pub use crate::render::traffic_signal::<a class="fn" href="../../game/render/traffic_signal/fn.draw_signal_stage.html" title="fn game::render::traffic_signal::draw_signal_stage">draw_signal_stage</a>;</code></td></tr><tr><td><code>pub use crate::render::turn::<a class="struct" href="../../game/render/turn/struct.DrawMovement.html" title="struct game::render::turn::DrawMovement">DrawMovement</a>;</code></td></tr><tr><td><code>pub use crate::render::turn::<a class="struct" href="../../game/render/turn/struct.DrawUberTurnGroup.html" title="struct game::render::turn::DrawUberTurnGroup">DrawUberTurnGroup</a>;</code></td></tr></table><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2> <table><tr><td><code>pub use crate::render::area::<a class="struct" href="../../game/render/area/struct.DrawArea.html" title="struct game::render::area::DrawArea">DrawArea</a>;</code></td></tr><tr><td><code>pub use crate::render::building::<a class="struct" href="../../game/render/building/struct.DrawBuilding.html" title="struct game::render::building::DrawBuilding">DrawBuilding</a>;</code></td></tr><tr><td><code>pub use crate::render::intersection::<a class="fn" href="../../game/render/intersection/fn.calculate_corners.html" title="fn game::render::intersection::calculate_corners">calculate_corners</a>;</code></td></tr><tr><td><code>pub use crate::render::intersection::<a class="struct" href="../../game/render/intersection/struct.DrawIntersection.html" title="struct game::render::intersection::DrawIntersection">DrawIntersection</a>;</code></td></tr><tr><td><code>pub use crate::render::map::<a class="struct" href="../../game/render/map/struct.AgentCache.html" title="struct game::render::map::AgentCache">AgentCache</a>;</code></td></tr><tr><td><code>pub use crate::render::map::<a class="struct" href="../../game/render/map/struct.DrawMap.html" title="struct game::render::map::DrawMap">DrawMap</a>;</code></td></tr><tr><td><code>pub use crate::render::map::<a class="struct" href="../../game/render/map/struct.UnzoomedAgents.html" title="struct game::render::map::UnzoomedAgents">UnzoomedAgents</a>;</code></td></tr><tr><td><code>pub use crate::render::pedestrian::<a class="struct" href="../../game/render/pedestrian/struct.DrawPedCrowd.html" title="struct game::render::pedestrian::DrawPedCrowd">DrawPedCrowd</a>;</code></td></tr><tr><td><code>pub use crate::render::pedestrian::<a class="struct" href="../../game/render/pedestrian/struct.DrawPedestrian.html" title="struct game::render::pedestrian::DrawPedestrian">DrawPedestrian</a>;</code></td></tr><tr><td><code>pub use crate::render::traffic_signal::<a class="fn" href="../../game/render/traffic_signal/fn.draw_signal_stage.html" title="fn game::render::traffic_signal::draw_signal_stage">draw_signal_stage</a>;</code></td></tr><tr><td><code>pub use crate::render::traffic_signal::<a class="fn" href="../../game/render/traffic_signal/fn.draw_stage_number.html" title="fn game::render::traffic_signal::draw_stage_number">draw_stage_number</a>;</code></td></tr><tr><td><code>pub use crate::render::turn::<a class="struct" href="../../game/render/turn/struct.DrawMovement.html" title="struct game::render::turn::DrawMovement">DrawMovement</a>;</code></td></tr><tr><td><code>pub use crate::render::turn::<a class="struct" href="../../game/render/turn/struct.DrawUberTurnGroup.html" title="struct game::render::turn::DrawUberTurnGroup">DrawUberTurnGroup</a>;</code></td></tr></table><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
<table><tr class='module-item'><td><a class="mod" href="area/index.html" title='game::render::area mod'>area</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="bike/index.html" title='game::render::bike mod'>bike</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="building/index.html" title='game::render::building mod'>building</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="bus_stop/index.html" title='game::render::bus_stop mod'>bus_stop</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="car/index.html" title='game::render::car mod'>car</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="intersection/index.html" title='game::render::intersection mod'>intersection</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="lane/index.html" title='game::render::lane mod'>lane</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="map/index.html" title='game::render::map mod'>map</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="parking_lot/index.html" title='game::render::parking_lot mod'>parking_lot</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="pedestrian/index.html" title='game::render::pedestrian mod'>pedestrian</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="road/index.html" title='game::render::road mod'>road</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="traffic_signal/index.html" title='game::render::traffic_signal mod'>traffic_signal</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="turn/index.html" title='game::render::turn mod'>turn</a></td><td class='docblock-short'></td></tr></table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2> <table><tr class='module-item'><td><a class="mod" href="area/index.html" title='game::render::area mod'>area</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="bike/index.html" title='game::render::bike mod'>bike</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="building/index.html" title='game::render::building mod'>building</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="bus_stop/index.html" title='game::render::bus_stop mod'>bus_stop</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="car/index.html" title='game::render::car mod'>car</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="intersection/index.html" title='game::render::intersection mod'>intersection</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="lane/index.html" title='game::render::lane mod'>lane</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="map/index.html" title='game::render::map mod'>map</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="parking_lot/index.html" title='game::render::parking_lot mod'>parking_lot</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="pedestrian/index.html" title='game::render::pedestrian mod'>pedestrian</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="road/index.html" title='game::render::road mod'>road</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="traffic_signal/index.html" title='game::render::traffic_signal mod'>traffic_signal</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="turn/index.html" title='game::render::turn mod'>turn</a></td><td class='docblock-short'></td></tr></table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<table><tr class='module-item'><td><a class="struct" href="struct.DrawOptions.html" title='game::render::DrawOptions struct'>DrawOptions</a></td><td class='docblock-short'></td></tr></table><h2 id='constants' class='section-header'><a href="#constants">Constants</a></h2> <table><tr class='module-item'><td><a class="struct" href="struct.DrawOptions.html" title='game::render::DrawOptions struct'>DrawOptions</a></td><td class='docblock-short'></td></tr></table><h2 id='constants' class='section-header'><a href="#constants">Constants</a></h2>
<table><tr class='module-item'><td><a class="constant" href="constant.BIG_ARROW_THICKNESS.html" title='game::render::BIG_ARROW_THICKNESS constant'>BIG_ARROW_THICKNESS</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.CROSSWALK_LINE_THICKNESS.html" title='game::render::CROSSWALK_LINE_THICKNESS constant'>CROSSWALK_LINE_THICKNESS</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.OUTLINE_THICKNESS.html" title='game::render::OUTLINE_THICKNESS constant'>OUTLINE_THICKNESS</a></td><td class='docblock-short'></td></tr></table><h2 id='traits' class='section-header'><a href="#traits">Traits</a></h2> <table><tr class='module-item'><td><a class="constant" href="constant.BIG_ARROW_THICKNESS.html" title='game::render::BIG_ARROW_THICKNESS constant'>BIG_ARROW_THICKNESS</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.CROSSWALK_LINE_THICKNESS.html" title='game::render::CROSSWALK_LINE_THICKNESS constant'>CROSSWALK_LINE_THICKNESS</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.OUTLINE_THICKNESS.html" title='game::render::OUTLINE_THICKNESS constant'>OUTLINE_THICKNESS</a></td><td class='docblock-short'></td></tr></table><h2 id='traits' class='section-header'><a href="#traits">Traits</a></h2>

View File

@ -1 +1 @@
<!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 `crosswalk_icon` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, crosswalk_icon"><title>game::render::traffic_signal::crosswalk_icon - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a></p><script>window.sidebarCurrent = {name: 'crosswalk_icon', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/traffic_signal.rs.html#237-243' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>crosswalk_icon</a></span></h1><pre class='rust fn'>fn crosswalk_icon(geom: &amp;<a class="struct" href="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="../../../geom/angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> <!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 `crosswalk_icon` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, crosswalk_icon"><title>game::render::traffic_signal::crosswalk_icon - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a></p><script>window.sidebarCurrent = {name: 'crosswalk_icon', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/traffic_signal.rs.html#246-252' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>crosswalk_icon</a></span></h1><pre class='rust fn'>fn crosswalk_icon(geom: &amp;<a class="struct" href="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="../../../geom/angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -1 +1 @@
<!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 `draw_signal_stage` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_signal_stage"><title>game::render::traffic_signal::draw_signal_stage - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a></p><script>window.sidebarCurrent = {name: 'draw_signal_stage', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/traffic_signal.rs.html#10-201' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>draw_signal_stage</a></span></h1><pre class='rust fn'>pub fn draw_signal_stage(<br>&nbsp;&nbsp;&nbsp;&nbsp;prerender: &amp;Prerender, <br>&nbsp;&nbsp;&nbsp;&nbsp;stage: &amp;<a class="struct" href="../../../map_model/objects/traffic_signals/struct.Stage.html" title="struct map_model::objects::traffic_signals::Stage">Stage</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;i: <a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;time_left: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;batch: &amp;mut GeomBatch, <br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;signal_style: <a class="enum" href="../../../game/options/enum.TrafficSignalStyle.html" title="enum game::options::TrafficSignalStyle">TrafficSignalStyle</a><br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> <!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 `draw_signal_stage` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_signal_stage"><title>game::render::traffic_signal::draw_signal_stage - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a></p><script>window.sidebarCurrent = {name: 'draw_signal_stage', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/traffic_signal.rs.html#10-189' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>draw_signal_stage</a></span></h1><pre class='rust fn'>pub fn draw_signal_stage(<br>&nbsp;&nbsp;&nbsp;&nbsp;prerender: &amp;Prerender, <br>&nbsp;&nbsp;&nbsp;&nbsp;stage: &amp;<a class="struct" href="../../../map_model/objects/traffic_signals/struct.Stage.html" title="struct map_model::objects::traffic_signals::Stage">Stage</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;i: <a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;time_left: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;batch: &amp;mut GeomBatch, <br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;signal_style: <a class="enum" href="../../../game/options/enum.TrafficSignalStyle.html" title="enum game::options::TrafficSignalStyle">TrafficSignalStyle</a><br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -0,0 +1 @@
<!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 `draw_stage_number` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_stage_number"><title>game::render::traffic_signal::draw_stage_number - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a></p><script>window.sidebarCurrent = {name: 'draw_stage_number', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/traffic_signal.rs.html#191-210' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>draw_stage_number</a></span></h1><pre class='rust fn'>pub fn draw_stage_number(<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;prerender: &amp;Prerender, <br>&nbsp;&nbsp;&nbsp;&nbsp;i: <a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;batch: &amp;mut GeomBatch<br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -1 +1 @@
<!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 `draw_time_left` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_time_left"><title>game::render::traffic_signal::draw_time_left - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a></p><script>window.sidebarCurrent = {name: 'draw_time_left', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/traffic_signal.rs.html#203-233' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>draw_time_left</a></span></h1><pre class='rust fn'>fn draw_time_left(<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;prerender: &amp;Prerender, <br>&nbsp;&nbsp;&nbsp;&nbsp;stage: &amp;<a class="struct" href="../../../map_model/objects/traffic_signals/struct.Stage.html" title="struct map_model::objects::traffic_signals::Stage">Stage</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;i: <a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;time_left: <a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;batch: &amp;mut GeomBatch<br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> <!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 `draw_time_left` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_time_left"><title>game::render::traffic_signal::draw_time_left - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a></p><script>window.sidebarCurrent = {name: 'draw_time_left', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/traffic_signal.rs.html#212-242' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>draw_time_left</a></span></h1><pre class='rust fn'>fn draw_time_left(<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;prerender: &amp;Prerender, <br>&nbsp;&nbsp;&nbsp;&nbsp;stage: &amp;<a class="struct" href="../../../map_model/objects/traffic_signals/struct.Stage.html" title="struct map_model::objects::traffic_signals::Stage">Stage</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;i: <a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;time_left: <a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;batch: &amp;mut GeomBatch<br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -1,2 +1,2 @@
<!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 `traffic_signal` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, traffic_signal"><title>game::render::traffic_signal - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module traffic_signal</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a></p><script>window.sidebarCurrent = {name: 'traffic_signal', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/traffic_signal.rs.html#1-243' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a class="mod" href=''>traffic_signal</a></span></h1><h2 id='functions' class='section-header'><a href="#functions">Functions</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 `traffic_signal` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, traffic_signal"><title>game::render::traffic_signal - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module traffic_signal</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a></p><script>window.sidebarCurrent = {name: 'traffic_signal', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/traffic_signal.rs.html#1-252' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a class="mod" href=''>traffic_signal</a></span></h1><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
<table><tr class='module-item'><td><a class="fn" href="fn.crosswalk_icon.html" title='game::render::traffic_signal::crosswalk_icon fn'>crosswalk_icon</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.draw_signal_stage.html" title='game::render::traffic_signal::draw_signal_stage fn'>draw_signal_stage</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.draw_time_left.html" title='game::render::traffic_signal::draw_time_left fn'>draw_time_left</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> <table><tr class='module-item'><td><a class="fn" href="fn.crosswalk_icon.html" title='game::render::traffic_signal::crosswalk_icon fn'>crosswalk_icon</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.draw_signal_stage.html" title='game::render::traffic_signal::draw_signal_stage fn'>draw_signal_stage</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.draw_stage_number.html" title='game::render::traffic_signal::draw_stage_number fn'>draw_stage_number</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.draw_time_left.html" title='game::render::traffic_signal::draw_time_left fn'>draw_time_left</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -1 +1 @@
initSidebarItems({"fn":[["crosswalk_icon",""],["draw_signal_stage",""],["draw_time_left",""]]}); initSidebarItems({"fn":[["crosswalk_icon",""],["draw_signal_stage",""],["draw_stage_number",""],["draw_time_left",""]]});

View File

@ -1 +1 @@
<!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 `TURN_ICON_ARROW_LENGTH` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, TURN_ICON_ARROW_LENGTH"><title>game::render::turn::TURN_ICON_ARROW_LENGTH - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>turn</a></p><script>window.sidebarCurrent = {name: 'TURN_ICON_ARROW_LENGTH', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/turn.rs.html#11' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>turn</a>::<wbr><a class="constant" href=''>TURN_ICON_ARROW_LENGTH</a></span></h1><pre class='rust const'>const TURN_ICON_ARROW_LENGTH: <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> <!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 `TURN_ICON_ARROW_LENGTH` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, TURN_ICON_ARROW_LENGTH"><title>game::render::turn::TURN_ICON_ARROW_LENGTH - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>turn</a></p><script>window.sidebarCurrent = {name: 'TURN_ICON_ARROW_LENGTH', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/turn.rs.html#12' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>turn</a>::<wbr><a class="constant" href=''>TURN_ICON_ARROW_LENGTH</a></span></h1><pre class='rust const'>const TURN_ICON_ARROW_LENGTH: <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -0,0 +1 @@
<!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 `make_block_geom` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_block_geom"><title>game::render::turn::make_block_geom - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>turn</a></p><script>window.sidebarCurrent = {name: 'make_block_geom', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/turn.rs.html#195-217' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>turn</a>::<wbr><a class="fn" href=''>make_block_geom</a></span></h1><pre class='rust fn'>fn make_block_geom(<br>&nbsp;&nbsp;&nbsp;&nbsp;offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;pl: <a class="struct" href="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;width: <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;angle: <a class="struct" href="../../../geom/angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a><br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>, <a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -0,0 +1 @@
<!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 `make_circle_geom` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_circle_geom"><title>game::render::turn::make_circle_geom - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>turn</a></p><script>window.sidebarCurrent = {name: 'make_circle_geom', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/turn.rs.html#220-240' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>turn</a>::<wbr><a class="fn" href=''>make_circle_geom</a></span></h1><pre class='rust fn'>fn make_circle_geom(<br>&nbsp;&nbsp;&nbsp;&nbsp;offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;pl: <a class="struct" href="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;angle: <a class="struct" href="../../../geom/angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a><br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>, <a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -1 +0,0 @@
<!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 `make_geom` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_geom"><title>game::render::turn::make_geom - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>turn</a></p><script>window.sidebarCurrent = {name: 'make_geom', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/turn.rs.html#151-173' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>turn</a>::<wbr><a class="fn" href=''>make_geom</a></span></h1><pre class='rust fn'>fn make_geom(<br>&nbsp;&nbsp;&nbsp;&nbsp;offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;pl: <a class="struct" href="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;width: <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;angle: <a class="struct" href="../../../geom/angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a><br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>, <a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -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 `turn` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, turn"><title>game::render::turn - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module turn</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a></p><script>window.sidebarCurrent = {name: 'turn', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/turn.rs.html#1-173' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a class="mod" href=''>turn</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</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 `turn` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, turn"><title>game::render::turn - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module turn</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a></p><script>window.sidebarCurrent = {name: 'turn', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><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><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/turn.rs.html#1-240' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a class="mod" href=''>turn</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<table><tr class='module-item'><td><a class="struct" href="struct.DrawMovement.html" title='game::render::turn::DrawMovement struct'>DrawMovement</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.DrawUberTurnGroup.html" title='game::render::turn::DrawUberTurnGroup struct'>DrawUberTurnGroup</a></td><td class='docblock-short'></td></tr></table><h2 id='constants' class='section-header'><a href="#constants">Constants</a></h2> <table><tr class='module-item'><td><a class="struct" href="struct.DrawMovement.html" title='game::render::turn::DrawMovement struct'>DrawMovement</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.DrawUberTurnGroup.html" title='game::render::turn::DrawUberTurnGroup struct'>DrawUberTurnGroup</a></td><td class='docblock-short'></td></tr></table><h2 id='constants' class='section-header'><a href="#constants">Constants</a></h2>
<table><tr class='module-item'><td><a class="constant" href="constant.TURN_ICON_ARROW_LENGTH.html" title='game::render::turn::TURN_ICON_ARROW_LENGTH constant'>TURN_ICON_ARROW_LENGTH</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2> <table><tr class='module-item'><td><a class="constant" href="constant.TURN_ICON_ARROW_LENGTH.html" title='game::render::turn::TURN_ICON_ARROW_LENGTH constant'>TURN_ICON_ARROW_LENGTH</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
<table><tr class='module-item'><td><a class="fn" href="fn.make_geom.html" title='game::render::turn::make_geom fn'>make_geom</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> <table><tr class='module-item'><td><a class="fn" href="fn.make_block_geom.html" title='game::render::turn::make_block_geom fn'>make_block_geom</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.make_circle_geom.html" title='game::render::turn::make_circle_geom fn'>make_circle_geom</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -1 +1 @@
initSidebarItems({"constant":[["TURN_ICON_ARROW_LENGTH",""]],"fn":[["make_geom",""]],"struct":[["DrawMovement",""],["DrawUberTurnGroup",""]]}); initSidebarItems({"constant":[["TURN_ICON_ARROW_LENGTH",""]],"fn":[["make_block_geom",""],["make_circle_geom",""]],"struct":[["DrawMovement",""],["DrawUberTurnGroup",""]]});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -927,22 +927,6 @@
<span id="927">927</span> <span id="927">927</span>
<span id="928">928</span> <span id="928">928</span>
<span id="929">929</span> <span id="929">929</span>
<span id="930">930</span>
<span id="931">931</span>
<span id="932">932</span>
<span id="933">933</span>
<span id="934">934</span>
<span id="935">935</span>
<span id="936">936</span>
<span id="937">937</span>
<span id="938">938</span>
<span id="939">939</span>
<span id="940">940</span>
<span id="941">941</span>
<span id="942">942</span>
<span id="943">943</span>
<span id="944">944</span>
<span id="945">945</span>
</pre><div class="example-wrap"><pre class="rust "> </pre><div class="example-wrap"><pre class="rust ">
<span class="kw">mod</span> <span class="ident">edits</span>; <span class="kw">mod</span> <span class="ident">edits</span>;
<span class="kw">mod</span> <span class="ident">picker</span>; <span class="kw">mod</span> <span class="ident">picker</span>;
@ -953,7 +937,7 @@
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">edit</span>::{<span class="ident">apply_map_edits</span>, <span class="ident">ConfirmDiscard</span>}; <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">edit</span>::{<span class="ident">apply_map_edits</span>, <span class="ident">ConfirmDiscard</span>};
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">game</span>::{<span class="ident">DrawBaselayer</span>, <span class="ident">PopupMsg</span>, <span class="ident">State</span>, <span class="ident">Transition</span>}; <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">game</span>::{<span class="ident">DrawBaselayer</span>, <span class="ident">PopupMsg</span>, <span class="ident">State</span>, <span class="ident">Transition</span>};
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">options</span>::<span class="ident">TrafficSignalStyle</span>; <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">options</span>::<span class="ident">TrafficSignalStyle</span>;
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">render</span>::{<span class="ident">draw_signal_stage</span>, <span class="ident">DrawMovement</span>, <span class="ident">DrawOptions</span>}; <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">render</span>::{<span class="ident">draw_signal_stage</span>, <span class="ident">draw_stage_number</span>, <span class="ident">DrawMovement</span>, <span class="ident">DrawOptions</span>};
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">sandbox</span>::<span class="ident">GameplayMode</span>; <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">sandbox</span>::<span class="ident">GameplayMode</span>;
<span class="kw">use</span> <span class="ident">abstutil</span>::<span class="ident">Timer</span>; <span class="kw">use</span> <span class="ident">abstutil</span>::<span class="ident">Timer</span>;
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">Duration</span>, <span class="ident">Line</span>, <span class="ident">Polygon</span>, <span class="ident">Pt2D</span>}; <span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">Duration</span>, <span class="ident">Line</span>, <span class="ident">Polygon</span>, <span class="ident">Pt2D</span>};
@ -1023,11 +1007,6 @@
) )
}; };
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">movements</span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
<span class="kw">for</span> <span class="ident">i</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="ident">members</span> {
<span class="ident">movements</span>.<span class="ident">extend</span>(<span class="ident">DrawMovement</span>::<span class="ident">for_i</span>(<span class="kw-2">*</span><span class="ident">i</span>, <span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>));
}
<span class="kw">let</span> <span class="ident">original</span> <span class="op">=</span> <span class="ident">BundleEdits</span>::<span class="ident">get_current</span>(<span class="ident">app</span>, <span class="kw-2">&amp;</span><span class="ident">members</span>); <span class="kw">let</span> <span class="ident">original</span> <span class="op">=</span> <span class="ident">BundleEdits</span>::<span class="ident">get_current</span>(<span class="ident">app</span>, <span class="kw-2">&amp;</span><span class="ident">members</span>);
<span class="kw">let</span> <span class="ident">synced</span> <span class="op">=</span> <span class="ident">BundleEdits</span>::<span class="ident">synchronize</span>(<span class="ident">app</span>, <span class="kw-2">&amp;</span><span class="ident">members</span>); <span class="kw">let</span> <span class="ident">synced</span> <span class="op">=</span> <span class="ident">BundleEdits</span>::<span class="ident">synchronize</span>(<span class="ident">app</span>, <span class="kw-2">&amp;</span><span class="ident">members</span>);
<span class="kw">let</span> <span class="ident">warn_changed</span> <span class="op">=</span> <span class="ident">original</span> <span class="op">!</span><span class="op">=</span> <span class="ident">synced</span>; <span class="kw">let</span> <span class="ident">warn_changed</span> <span class="op">=</span> <span class="ident">original</span> <span class="op">!</span><span class="op">=</span> <span class="ident">synced</span>;
@ -1039,7 +1018,7 @@
<span class="ident">mode</span>, <span class="ident">mode</span>,
<span class="ident">members</span>, <span class="ident">members</span>,
<span class="ident">current_stage</span>: <span class="number">0</span>, <span class="ident">current_stage</span>: <span class="number">0</span>,
<span class="ident">movements</span>, <span class="ident">movements</span>: <span class="ident">Vec</span>::<span class="ident">new</span>(),
<span class="ident">movement_selected</span>: <span class="prelude-val">None</span>, <span class="ident">movement_selected</span>: <span class="prelude-val">None</span>,
<span class="ident">draw_current</span>: <span class="ident">ctx</span>.<span class="ident">upload</span>(<span class="ident">GeomBatch</span>::<span class="ident">new</span>()), <span class="ident">draw_current</span>: <span class="ident">ctx</span>.<span class="ident">upload</span>(<span class="ident">GeomBatch</span>::<span class="ident">new</span>()),
<span class="ident">command_stack</span>: <span class="ident">Vec</span>::<span class="ident">new</span>(), <span class="ident">command_stack</span>: <span class="ident">Vec</span>::<span class="ident">new</span>(),
@ -1048,7 +1027,7 @@
<span class="ident">original</span>, <span class="ident">original</span>,
<span class="ident">fade_irrelevant</span>: <span class="ident">GeomBatch</span>::<span class="ident">from</span>(<span class="macro">vec</span><span class="macro">!</span>[(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">fade_map_dark</span>, <span class="ident">fade_area</span>)]).<span class="ident">upload</span>(<span class="ident">ctx</span>), <span class="ident">fade_irrelevant</span>: <span class="ident">GeomBatch</span>::<span class="ident">from</span>(<span class="macro">vec</span><span class="macro">!</span>[(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">fade_map_dark</span>, <span class="ident">fade_area</span>)]).<span class="ident">upload</span>(<span class="ident">ctx</span>),
}; };
<span class="ident">editor</span>.<span class="ident">draw_current</span> <span class="op">=</span> <span class="ident">editor</span>.<span class="ident">recalc_draw_current</span>(<span class="ident">ctx</span>, <span class="ident">app</span>); <span class="ident">editor</span>.<span class="ident">recalc_draw_current</span>(<span class="ident">ctx</span>, <span class="ident">app</span>);
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">editor</span>) <span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">editor</span>)
} }
@ -1068,7 +1047,7 @@
.<span class="ident">scroll_to_member</span>(<span class="ident">ctx</span>, <span class="macro">format</span><span class="macro">!</span>(<span class="string">&quot;stage {}&quot;</span>, <span class="ident">idx</span> <span class="op">+</span> <span class="number">1</span>)); .<span class="ident">scroll_to_member</span>(<span class="ident">ctx</span>, <span class="macro">format</span><span class="macro">!</span>(<span class="string">&quot;stage {}&quot;</span>, <span class="ident">idx</span> <span class="op">+</span> <span class="number">1</span>));
} }
<span class="self">self</span>.<span class="ident">draw_current</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">recalc_draw_current</span>(<span class="ident">ctx</span>, <span class="ident">app</span>); <span class="self">self</span>.<span class="ident">recalc_draw_current</span>(<span class="ident">ctx</span>, <span class="ident">app</span>);
} }
<span class="kw">fn</span> <span class="ident">add_new_edit</span><span class="op">&lt;</span><span class="ident">F</span>: <span class="ident">Fn</span>(<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">ControlTrafficSignal</span>)<span class="op">&gt;</span>( <span class="kw">fn</span> <span class="ident">add_new_edit</span><span class="op">&lt;</span><span class="ident">F</span>: <span class="ident">Fn</span>(<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">ControlTrafficSignal</span>)<span class="op">&gt;</span>(
@ -1090,55 +1069,45 @@
<span class="self">self</span>.<span class="ident">change_stage</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">idx</span>); <span class="self">self</span>.<span class="ident">change_stage</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">idx</span>);
} }
<span class="kw">fn</span> <span class="ident">recalc_draw_current</span>(<span class="kw-2">&amp;</span><span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>) <span class="op">-</span><span class="op">&gt;</span> <span class="ident">Drawable</span> { <span class="kw">fn</span> <span class="ident">recalc_draw_current</span>(<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>) {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">batch</span> <span class="op">=</span> <span class="ident">GeomBatch</span>::<span class="ident">new</span>(); <span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">batch</span> <span class="op">=</span> <span class="ident">GeomBatch</span>::<span class="ident">new</span>();
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">movements</span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
<span class="kw">for</span> <span class="ident">i</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="self">self</span>.<span class="ident">members</span> { <span class="kw">for</span> <span class="ident">i</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="self">self</span>.<span class="ident">members</span> {
<span class="kw">let</span> <span class="ident">signal</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_traffic_signal</span>(<span class="kw-2">*</span><span class="ident">i</span>); <span class="kw">let</span> <span class="ident">stage</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_traffic_signal</span>(<span class="kw-2">*</span><span class="ident">i</span>).<span class="ident">stages</span>[<span class="self">self</span>.<span class="ident">current_stage</span>];
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">stage</span> <span class="op">=</span> <span class="ident">signal</span>.<span class="ident">stages</span>[<span class="self">self</span>.<span class="ident">current_stage</span>].<span class="ident">clone</span>(); <span class="kw">for</span> (<span class="ident">m</span>, <span class="ident">draw</span>) <span class="kw">in</span> <span class="ident">DrawMovement</span>::<span class="ident">for_i</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>, <span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">cs</span>, <span class="kw-2">*</span><span class="ident">i</span>, <span class="self">self</span>.<span class="ident">current_stage</span>)
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>((<span class="ident">id</span>, <span class="kw">_</span>)) <span class="op">=</span> <span class="self">self</span>.<span class="ident">movement_selected</span> { {
<span class="kw">if</span> <span class="ident">id</span>.<span class="ident">parent</span> <span class="op">=</span><span class="op">=</span> <span class="ident">signal</span>.<span class="ident">id</span> { <span class="kw">if</span> <span class="self">self</span>
<span class="ident">stage</span>.<span class="ident">edit_movement</span>(<span class="kw-2">&amp;</span><span class="ident">signal</span>.<span class="ident">movements</span>[<span class="kw-2">&amp;</span><span class="ident">id</span>], <span class="ident">TurnPriority</span>::<span class="ident">Banned</span>); .<span class="ident">movement_selected</span>
.<span class="ident">map</span>(<span class="op">|</span>(<span class="ident">x</span>, <span class="kw">_</span>)<span class="op">|</span> <span class="ident">x</span> <span class="op">!</span><span class="op">=</span> <span class="ident">m</span>.<span class="ident">id</span>)
.<span class="ident">unwrap_or</span>(<span class="bool-val">true</span>)
{
<span class="ident">batch</span>.<span class="ident">append</span>(<span class="ident">draw</span>);
} <span class="kw">else</span> <span class="kw">if</span> <span class="op">!</span><span class="ident">stage</span>.<span class="ident">protected_movements</span>.<span class="ident">contains</span>(<span class="kw-2">&amp;</span><span class="ident">m</span>.<span class="ident">id</span>)
<span class="kw-2">&amp;</span><span class="op">&amp;</span> <span class="op">!</span><span class="ident">stage</span>.<span class="ident">yield_movements</span>.<span class="ident">contains</span>(<span class="kw-2">&amp;</span><span class="ident">m</span>.<span class="ident">id</span>)
{
<span class="comment">// Still draw the icon, but highlight it</span>
<span class="ident">batch</span>.<span class="ident">append</span>(<span class="ident">draw</span>.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(
<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">&quot;#7C7C7C&quot;</span>),
<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">&quot;#72CE36&quot;</span>),
)));
}
<span class="ident">movements</span>.<span class="ident">push</span>(<span class="ident">m</span>);
}
<span class="ident">draw_stage_number</span>(<span class="ident">app</span>, <span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="kw-2">*</span><span class="ident">i</span>, <span class="self">self</span>.<span class="ident">current_stage</span>, <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">batch</span>);
}
<span class="comment">// Draw the selected thing on top of everything else</span>
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>((<span class="ident">selected</span>, <span class="ident">next_priority</span>)) <span class="op">=</span> <span class="self">self</span>.<span class="ident">movement_selected</span> {
<span class="kw">for</span> <span class="ident">m</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="ident">movements</span> {
<span class="kw">if</span> <span class="ident">m</span>.<span class="ident">id</span> <span class="op">=</span><span class="op">=</span> <span class="ident">selected</span> {
<span class="ident">m</span>.<span class="ident">draw_selected_movement</span>(<span class="ident">app</span>, <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">batch</span>, <span class="ident">next_priority</span>);
<span class="kw">break</span>;
} }
} }
<span class="ident">draw_signal_stage</span>(
<span class="ident">ctx</span>.<span class="ident">prerender</span>,
<span class="kw-2">&amp;</span><span class="ident">stage</span>,
<span class="self">self</span>.<span class="ident">current_stage</span>,
<span class="ident">signal</span>.<span class="ident">id</span>,
<span class="prelude-val">None</span>,
<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">batch</span>,
<span class="ident">app</span>,
<span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">traffic_signal_style</span>.<span class="ident">clone</span>(),
);
} }
<span class="kw">for</span> <span class="ident">m</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="self">self</span>.<span class="ident">movements</span> { <span class="self">self</span>.<span class="ident">draw_current</span> <span class="op">=</span> <span class="ident">ctx</span>.<span class="ident">upload</span>(<span class="ident">batch</span>);
<span class="kw">let</span> <span class="ident">signal</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_traffic_signal</span>(<span class="ident">m</span>.<span class="ident">id</span>.<span class="ident">parent</span>); <span class="self">self</span>.<span class="ident">movements</span> <span class="op">=</span> <span class="ident">movements</span>;
<span class="kw">if</span> <span class="self">self</span>
.<span class="ident">movement_selected</span>
.<span class="ident">as_ref</span>()
.<span class="ident">map</span>(<span class="op">|</span>(<span class="ident">id</span>, <span class="kw">_</span>)<span class="op">|</span> <span class="kw-2">*</span><span class="ident">id</span> <span class="op">=</span><span class="op">=</span> <span class="ident">m</span>.<span class="ident">id</span>)
.<span class="ident">unwrap_or</span>(<span class="bool-val">false</span>)
{
<span class="ident">m</span>.<span class="ident">draw_selected_movement</span>(
<span class="ident">app</span>,
<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">batch</span>,
<span class="kw-2">&amp;</span><span class="ident">signal</span>.<span class="ident">movements</span>[<span class="kw-2">&amp;</span><span class="ident">m</span>.<span class="ident">id</span>],
<span class="self">self</span>.<span class="ident">movement_selected</span>.<span class="ident">unwrap</span>().<span class="number">1</span>,
);
} <span class="kw">else</span> {
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">signal_turn_block_bg</span>, <span class="ident">m</span>.<span class="ident">block</span>.<span class="ident">clone</span>());
<span class="kw">let</span> <span class="ident">stage</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">signal</span>.<span class="ident">stages</span>[<span class="self">self</span>.<span class="ident">current_stage</span>];
<span class="kw">let</span> <span class="ident">arrow_color</span> <span class="op">=</span> <span class="kw">match</span> <span class="ident">stage</span>.<span class="ident">get_priority_of_movement</span>(<span class="ident">m</span>.<span class="ident">id</span>) {
<span class="ident">TurnPriority</span>::<span class="ident">Protected</span> <span class="op">=</span><span class="op">&gt;</span> <span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">signal_protected_turn</span>,
<span class="ident">TurnPriority</span>::<span class="ident">Yield</span> <span class="op">=</span><span class="op">&gt;</span> <span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">signal_permitted_turn</span>,
<span class="ident">TurnPriority</span>::<span class="ident">Banned</span> <span class="op">=</span><span class="op">&gt;</span> <span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">signal_banned_turn</span>,
};
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">arrow_color</span>, <span class="ident">m</span>.<span class="ident">arrow</span>.<span class="ident">clone</span>());
}
}
<span class="ident">ctx</span>.<span class="ident">upload</span>(<span class="ident">batch</span>)
} }
} }
@ -1356,7 +1325,7 @@
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">pt</span>) <span class="op">=</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">get_cursor_in_map_space</span>() { <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">pt</span>) <span class="op">=</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">get_cursor_in_map_space</span>() {
<span class="kw">for</span> <span class="ident">m</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="self">self</span>.<span class="ident">movements</span> { <span class="kw">for</span> <span class="ident">m</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="self">self</span>.<span class="ident">movements</span> {
<span class="kw">let</span> <span class="ident">signal</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_traffic_signal</span>(<span class="ident">m</span>.<span class="ident">id</span>.<span class="ident">parent</span>); <span class="kw">let</span> <span class="ident">signal</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_traffic_signal</span>(<span class="ident">m</span>.<span class="ident">id</span>.<span class="ident">parent</span>);
<span class="kw">if</span> <span class="ident">m</span>.<span class="ident">block</span>.<span class="ident">contains_pt</span>(<span class="ident">pt</span>) { <span class="kw">if</span> <span class="ident">m</span>.<span class="ident">hitbox</span>.<span class="ident">contains_pt</span>(<span class="ident">pt</span>) {
<span class="kw">let</span> <span class="ident">stage</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">signal</span>.<span class="ident">stages</span>[<span class="self">self</span>.<span class="ident">current_stage</span>]; <span class="kw">let</span> <span class="ident">stage</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">signal</span>.<span class="ident">stages</span>[<span class="self">self</span>.<span class="ident">current_stage</span>];
<span class="kw">let</span> <span class="ident">next_priority</span> <span class="op">=</span> <span class="kw">match</span> <span class="ident">stage</span>.<span class="ident">get_priority_of_movement</span>(<span class="ident">m</span>.<span class="ident">id</span>) { <span class="kw">let</span> <span class="ident">next_priority</span> <span class="op">=</span> <span class="kw">match</span> <span class="ident">stage</span>.<span class="ident">get_priority_of_movement</span>(<span class="ident">m</span>.<span class="ident">id</span>) {
<span class="ident">TurnPriority</span>::<span class="ident">Banned</span> <span class="op">=</span><span class="op">&gt;</span> { <span class="ident">TurnPriority</span>::<span class="ident">Banned</span> <span class="op">=</span><span class="op">&gt;</span> {
@ -1384,7 +1353,6 @@
} }
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">movement_selected</span> <span class="op">!</span><span class="op">=</span> <span class="ident">old</span> { <span class="kw">if</span> <span class="self">self</span>.<span class="ident">movement_selected</span> <span class="op">!</span><span class="op">=</span> <span class="ident">old</span> {
<span class="self">self</span>.<span class="ident">draw_current</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">recalc_draw_current</span>(<span class="ident">ctx</span>, <span class="ident">app</span>);
<span class="self">self</span>.<span class="ident">change_stage</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="self">self</span>.<span class="ident">current_stage</span>); <span class="self">self</span>.<span class="ident">change_stage</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="self">self</span>.<span class="ident">current_stage</span>);
} }
} }

View File

@ -111,7 +111,7 @@
<span class="doccomment">/// The output of `rustdoc -V`</span> <span class="doccomment">/// The output of `rustdoc -V`</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;rustdoc 1.46.0 (04488afe3 2020-08-24)&quot;</span>; <span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;rustdoc 1.46.0 (04488afe3 2020-08-24)&quot;</span>;
<span class="doccomment">/// The built-time in RFC2822, UTC</span> <span class="doccomment">/// The built-time in RFC2822, UTC</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;Thu, 17 Sep 2020 22:51:18 +0000&quot;</span>; <span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;Fri, 18 Sep 2020 00:38:46 +0000&quot;</span>;
<span class="doccomment">/// The target architecture, given by `cfg!(target_arch)`.</span> <span class="doccomment">/// The target architecture, given by `cfg!(target_arch)`.</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;x86_64&quot;</span>; <span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;x86_64&quot;</span>;
<span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span> <span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span>

View File

@ -109,7 +109,7 @@
<span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">render</span>::<span class="ident">intersection</span>::{<span class="ident">calculate_corners</span>, <span class="ident">DrawIntersection</span>}; <span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">render</span>::<span class="ident">intersection</span>::{<span class="ident">calculate_corners</span>, <span class="ident">DrawIntersection</span>};
<span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">render</span>::<span class="ident">map</span>::{<span class="ident">AgentCache</span>, <span class="ident">DrawMap</span>, <span class="ident">UnzoomedAgents</span>}; <span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">render</span>::<span class="ident">map</span>::{<span class="ident">AgentCache</span>, <span class="ident">DrawMap</span>, <span class="ident">UnzoomedAgents</span>};
<span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">render</span>::<span class="ident">pedestrian</span>::{<span class="ident">DrawPedCrowd</span>, <span class="ident">DrawPedestrian</span>}; <span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">render</span>::<span class="ident">pedestrian</span>::{<span class="ident">DrawPedCrowd</span>, <span class="ident">DrawPedestrian</span>};
<span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">render</span>::<span class="ident">traffic_signal</span>::<span class="ident">draw_signal_stage</span>; <span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">render</span>::<span class="ident">traffic_signal</span>::{<span class="ident">draw_signal_stage</span>, <span class="ident">draw_stage_number</span>};
<span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">render</span>::<span class="ident">turn</span>::{<span class="ident">DrawMovement</span>, <span class="ident">DrawUberTurnGroup</span>}; <span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">render</span>::<span class="ident">turn</span>::{<span class="ident">DrawMovement</span>, <span class="ident">DrawUberTurnGroup</span>};
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">Polygon</span>, <span class="ident">Pt2D</span>}; <span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">Polygon</span>, <span class="ident">Pt2D</span>};
<span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">IntersectionID</span>, <span class="ident">Map</span>}; <span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">IntersectionID</span>, <span class="ident">Map</span>};

View File

@ -241,6 +241,15 @@
<span id="241">241</span> <span id="241">241</span>
<span id="242">242</span> <span id="242">242</span>
<span id="243">243</span> <span id="243">243</span>
<span id="244">244</span>
<span id="245">245</span>
<span id="246">246</span>
<span id="247">247</span>
<span id="248">248</span>
<span id="249">249</span>
<span id="250">250</span>
<span id="251">251</span>
<span id="252">252</span>
</pre><div class="example-wrap"><pre class="rust "> </pre><div class="example-wrap"><pre class="rust ">
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">app</span>::<span class="ident">App</span>; <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">app</span>::<span class="ident">App</span>;
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">options</span>::<span class="ident">TrafficSignalStyle</span>; <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">options</span>::<span class="ident">TrafficSignalStyle</span>;
@ -363,19 +372,7 @@
), ),
); );
} }
<span class="ident">draw_stage_number</span>(<span class="ident">app</span>, <span class="ident">prerender</span>, <span class="ident">i</span>, <span class="ident">idx</span>, <span class="ident">batch</span>);
<span class="kw">let</span> <span class="ident">radius</span> <span class="op">=</span> <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">1.0</span>);
<span class="kw">let</span> <span class="ident">center</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">i</span>).<span class="ident">polygon</span>.<span class="ident">polylabel</span>();
<span class="ident">batch</span>.<span class="ident">push</span>(
<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">&quot;#5B5B5B&quot;</span>),
<span class="ident">Circle</span>::<span class="ident">new</span>(<span class="ident">center</span>, <span class="ident">radius</span>).<span class="ident">to_polygon</span>(),
);
<span class="ident">batch</span>.<span class="ident">append</span>(
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">&quot;{}&quot;</span>, <span class="ident">idx</span> <span class="op">+</span> <span class="number">1</span>)))
.<span class="ident">render_to_batch</span>(<span class="ident">prerender</span>)
.<span class="ident">scale</span>(<span class="number">0.075</span>)
.<span class="ident">centered_on</span>(<span class="ident">center</span>),
);
} }
<span class="ident">TrafficSignalStyle</span>::<span class="ident">Yuwen</span> <span class="op">=</span><span class="op">&gt;</span> { <span class="ident">TrafficSignalStyle</span>::<span class="ident">Yuwen</span> <span class="op">=</span><span class="op">&gt;</span> {
<span class="kw">for</span> <span class="ident">m</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="ident">stage</span>.<span class="ident">yield_movements</span> { <span class="kw">for</span> <span class="ident">m</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="ident">stage</span>.<span class="ident">yield_movements</span> {
@ -444,6 +441,27 @@
} }
} }
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">draw_stage_number</span>(
<span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>,
<span class="ident">prerender</span>: <span class="kw-2">&amp;</span><span class="ident">Prerender</span>,
<span class="ident">i</span>: <span class="ident">IntersectionID</span>,
<span class="ident">idx</span>: <span class="ident">usize</span>,
<span class="ident">batch</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">GeomBatch</span>,
) {
<span class="kw">let</span> <span class="ident">radius</span> <span class="op">=</span> <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">1.0</span>);
<span class="kw">let</span> <span class="ident">center</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">i</span>).<span class="ident">polygon</span>.<span class="ident">polylabel</span>();
<span class="ident">batch</span>.<span class="ident">push</span>(
<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">&quot;#5B5B5B&quot;</span>),
<span class="ident">Circle</span>::<span class="ident">new</span>(<span class="ident">center</span>, <span class="ident">radius</span>).<span class="ident">to_polygon</span>(),
);
<span class="ident">batch</span>.<span class="ident">append</span>(
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">&quot;{}&quot;</span>, <span class="ident">idx</span> <span class="op">+</span> <span class="number">1</span>)))
.<span class="ident">render_to_batch</span>(<span class="ident">prerender</span>)
.<span class="ident">scale</span>(<span class="number">0.075</span>)
.<span class="ident">centered_on</span>(<span class="ident">center</span>),
);
}
<span class="kw">fn</span> <span class="ident">draw_time_left</span>( <span class="kw">fn</span> <span class="ident">draw_time_left</span>(
<span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>, <span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>,
<span class="ident">prerender</span>: <span class="kw-2">&amp;</span><span class="ident">Prerender</span>, <span class="ident">prerender</span>: <span class="kw-2">&amp;</span><span class="ident">Prerender</span>,

View File

@ -171,13 +171,81 @@
<span id="171">171</span> <span id="171">171</span>
<span id="172">172</span> <span id="172">172</span>
<span id="173">173</span> <span id="173">173</span>
<span id="174">174</span>
<span id="175">175</span>
<span id="176">176</span>
<span id="177">177</span>
<span id="178">178</span>
<span id="179">179</span>
<span id="180">180</span>
<span id="181">181</span>
<span id="182">182</span>
<span id="183">183</span>
<span id="184">184</span>
<span id="185">185</span>
<span id="186">186</span>
<span id="187">187</span>
<span id="188">188</span>
<span id="189">189</span>
<span id="190">190</span>
<span id="191">191</span>
<span id="192">192</span>
<span id="193">193</span>
<span id="194">194</span>
<span id="195">195</span>
<span id="196">196</span>
<span id="197">197</span>
<span id="198">198</span>
<span id="199">199</span>
<span id="200">200</span>
<span id="201">201</span>
<span id="202">202</span>
<span id="203">203</span>
<span id="204">204</span>
<span id="205">205</span>
<span id="206">206</span>
<span id="207">207</span>
<span id="208">208</span>
<span id="209">209</span>
<span id="210">210</span>
<span id="211">211</span>
<span id="212">212</span>
<span id="213">213</span>
<span id="214">214</span>
<span id="215">215</span>
<span id="216">216</span>
<span id="217">217</span>
<span id="218">218</span>
<span id="219">219</span>
<span id="220">220</span>
<span id="221">221</span>
<span id="222">222</span>
<span id="223">223</span>
<span id="224">224</span>
<span id="225">225</span>
<span id="226">226</span>
<span id="227">227</span>
<span id="228">228</span>
<span id="229">229</span>
<span id="230">230</span>
<span id="231">231</span>
<span id="232">232</span>
<span id="233">233</span>
<span id="234">234</span>
<span id="235">235</span>
<span id="236">236</span>
<span id="237">237</span>
<span id="238">238</span>
<span id="239">239</span>
<span id="240">240</span>
</pre><div class="example-wrap"><pre class="rust "> </pre><div class="example-wrap"><pre class="rust ">
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">app</span>::<span class="ident">App</span>; <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">app</span>::<span class="ident">App</span>;
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">colors</span>::<span class="ident">ColorScheme</span>;
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">render</span>::<span class="ident">BIG_ARROW_THICKNESS</span>; <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">render</span>::<span class="ident">BIG_ARROW_THICKNESS</span>;
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Angle</span>, <span class="ident">ArrowCap</span>, <span class="ident">Distance</span>, <span class="ident">PolyLine</span>, <span class="ident">Polygon</span>}; <span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Angle</span>, <span class="ident">ArrowCap</span>, <span class="ident">Circle</span>, <span class="ident">Distance</span>, <span class="ident">PolyLine</span>, <span class="ident">Polygon</span>};
<span class="kw">use</span> <span class="ident">map_model</span>::{ <span class="kw">use</span> <span class="ident">map_model</span>::{
<span class="ident">IntersectionCluster</span>, <span class="ident">IntersectionID</span>, <span class="ident">LaneID</span>, <span class="ident">Map</span>, <span class="ident">Movement</span>, <span class="ident">MovementID</span>, <span class="ident">TurnPriority</span>, <span class="ident">IntersectionCluster</span>, <span class="ident">IntersectionID</span>, <span class="ident">LaneID</span>, <span class="ident">Map</span>, <span class="ident">MovementID</span>, <span class="ident">TurnPriority</span>, <span class="ident">UberTurnGroup</span>,
<span class="ident">UberTurnGroup</span>, <span class="ident">SIDEWALK_THICKNESS</span>,
}; };
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::{<span class="ident">HashMap</span>, <span class="ident">HashSet</span>}; <span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::{<span class="ident">HashMap</span>, <span class="ident">HashSet</span>};
<span class="kw">use</span> <span class="ident">widgetry</span>::{<span class="ident">Color</span>, <span class="ident">GeomBatch</span>}; <span class="kw">use</span> <span class="ident">widgetry</span>::{<span class="ident">Color</span>, <span class="ident">GeomBatch</span>};
@ -186,66 +254,117 @@
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">DrawMovement</span> { <span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">DrawMovement</span> {
<span class="kw">pub</span> <span class="ident">id</span>: <span class="ident">MovementID</span>, <span class="kw">pub</span> <span class="ident">id</span>: <span class="ident">MovementID</span>,
<span class="kw">pub</span> <span class="ident">block</span>: <span class="ident">Polygon</span>, <span class="kw">pub</span> <span class="ident">hitbox</span>: <span class="ident">Polygon</span>,
<span class="kw">pub</span> <span class="ident">arrow</span>: <span class="ident">Polygon</span>,
} }
<span class="kw">impl</span> <span class="ident">DrawMovement</span> { <span class="kw">impl</span> <span class="ident">DrawMovement</span> {
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">for_i</span>(<span class="ident">i</span>: <span class="ident">IntersectionID</span>, <span class="ident">map</span>: <span class="kw-2">&amp;</span><span class="ident">Map</span>) <span class="op">-</span><span class="op">&gt;</span> <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">DrawMovement</span><span class="op">&gt;</span> { <span class="comment">// Also returns the stuff to draw each movement</span>
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">for_i</span>(
<span class="ident">map</span>: <span class="kw-2">&amp;</span><span class="ident">Map</span>,
<span class="ident">cs</span>: <span class="kw-2">&amp;</span><span class="ident">ColorScheme</span>,
<span class="ident">i</span>: <span class="ident">IntersectionID</span>,
<span class="ident">idx</span>: <span class="ident">usize</span>,
) <span class="op">-</span><span class="op">&gt;</span> <span class="ident">Vec</span><span class="op">&lt;</span>(<span class="ident">DrawMovement</span>, <span class="ident">GeomBatch</span>)<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="ident">signal</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">get_traffic_signal</span>(<span class="ident">i</span>);
<span class="kw">let</span> <span class="ident">stage</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">signal</span>.<span class="ident">stages</span>[<span class="ident">idx</span>];
<span class="comment">// TODO Sort by angle here if we want some consistency</span> <span class="comment">// TODO Sort by angle here if we want some consistency</span>
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">offset_per_lane</span>: <span class="ident">HashMap</span><span class="op">&lt;</span><span class="ident">LaneID</span>, <span class="ident">usize</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">HashMap</span>::<span class="ident">new</span>(); <span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">offset_per_lane</span>: <span class="ident">HashMap</span><span class="op">&lt;</span><span class="ident">LaneID</span>, <span class="ident">usize</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">HashMap</span>::<span class="ident">new</span>();
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">draw</span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>(); <span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">results</span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
<span class="kw">for</span> <span class="ident">movement</span> <span class="kw">in</span> <span class="ident">map</span>.<span class="ident">get_traffic_signal</span>(<span class="ident">i</span>).<span class="ident">movements</span>.<span class="ident">values</span>() { <span class="kw">for</span> <span class="ident">movement</span> <span class="kw">in</span> <span class="ident">signal</span>.<span class="ident">movements</span>.<span class="ident">values</span>() {
<span class="kw">let</span> <span class="ident">offset</span> <span class="op">=</span> <span class="ident">movement</span> <span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">batch</span> <span class="op">=</span> <span class="ident">GeomBatch</span>::<span class="ident">new</span>();
.<span class="ident">members</span> <span class="comment">// TODO Refactor the slice_start/slice_end stuff from draw_signal_stage.</span>
.<span class="ident">iter</span>() <span class="kw">let</span> <span class="ident">hitbox</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">stage</span>.<span class="ident">protected_movements</span>.<span class="ident">contains</span>(<span class="kw-2">&amp;</span><span class="ident">movement</span>.<span class="ident">id</span>) {
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">t</span><span class="op">|</span> <span class="kw-2">*</span><span class="ident">offset_per_lane</span>.<span class="ident">entry</span>(<span class="ident">t</span>.<span class="ident">src</span>).<span class="ident">or_insert</span>(<span class="number">0</span>)) <span class="kw">let</span> <span class="ident">arrow</span> <span class="op">=</span> <span class="ident">movement</span>
.<span class="ident">max</span>() .<span class="ident">geom</span>
.<span class="ident">unwrap</span>(); .<span class="ident">make_arrow</span>(<span class="ident">BIG_ARROW_THICKNESS</span>, <span class="ident">ArrowCap</span>::<span class="ident">Triangle</span>);
<span class="kw">let</span> (<span class="ident">pl</span>, <span class="ident">width</span>) <span class="op">=</span> <span class="ident">movement</span>.<span class="ident">src_center_and_width</span>(<span class="ident">map</span>); <span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">cs</span>.<span class="ident">signal_protected_turn</span>, <span class="ident">arrow</span>.<span class="ident">clone</span>());
<span class="kw">let</span> (<span class="ident">block</span>, <span class="ident">arrow</span>) <span class="op">=</span> <span class="ident">make_geom</span>(<span class="ident">offset</span> <span class="kw">as</span> <span class="ident">f64</span>, <span class="ident">pl</span>, <span class="ident">width</span>, <span class="ident">movement</span>.<span class="ident">angle</span>); <span class="ident">arrow</span>
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">seen_lanes</span> <span class="op">=</span> <span class="ident">HashSet</span>::<span class="ident">new</span>(); } <span class="kw">else</span> <span class="kw">if</span> <span class="ident">stage</span>.<span class="ident">yield_movements</span>.<span class="ident">contains</span>(<span class="kw-2">&amp;</span><span class="ident">movement</span>.<span class="ident">id</span>) {
<span class="kw">for</span> <span class="ident">t</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="ident">movement</span>.<span class="ident">members</span> { <span class="kw">let</span> <span class="ident">pl</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">movement</span>.<span class="ident">geom</span>;
<span class="kw">if</span> <span class="op">!</span><span class="ident">seen_lanes</span>.<span class="ident">contains</span>(<span class="kw-2">&amp;</span><span class="ident">t</span>.<span class="ident">src</span>) { <span class="ident">batch</span>.<span class="ident">extend</span>(
<span class="kw-2">*</span><span class="ident">offset_per_lane</span>.<span class="ident">get_mut</span>(<span class="kw-2">&amp;</span><span class="ident">t</span>.<span class="ident">src</span>).<span class="ident">unwrap</span>() <span class="op">=</span> <span class="ident">offset</span> <span class="op">+</span> <span class="number">1</span>; <span class="ident">Color</span>::<span class="ident">BLACK</span>,
<span class="ident">seen_lanes</span>.<span class="ident">insert</span>(<span class="ident">t</span>.<span class="ident">src</span>); <span class="ident">pl</span>.<span class="ident">exact_slice</span>(
<span class="ident">SIDEWALK_THICKNESS</span> <span class="op">-</span> <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.1</span>),
<span class="ident">pl</span>.<span class="ident">length</span>() <span class="op">-</span> <span class="ident">SIDEWALK_THICKNESS</span> <span class="op">+</span> <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.1</span>),
)
.<span class="ident">dashed_arrow</span>(
<span class="ident">BIG_ARROW_THICKNESS</span>,
<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">1.2</span>),
<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.3</span>),
<span class="ident">ArrowCap</span>::<span class="ident">Triangle</span>,
),
);
<span class="kw">let</span> <span class="ident">arrow</span> <span class="op">=</span> <span class="ident">pl</span>
.<span class="ident">exact_slice</span>(<span class="ident">SIDEWALK_THICKNESS</span>, <span class="ident">pl</span>.<span class="ident">length</span>() <span class="op">-</span> <span class="ident">SIDEWALK_THICKNESS</span>)
.<span class="ident">dashed_arrow</span>(
<span class="ident">BIG_ARROW_THICKNESS</span> <span class="op">/</span> <span class="number">2.0</span>,
<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">1.0</span>),
<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.5</span>),
<span class="ident">ArrowCap</span>::<span class="ident">Triangle</span>,
);
<span class="ident">batch</span>.<span class="ident">extend</span>(<span class="ident">cs</span>.<span class="ident">signal_protected_turn</span>, <span class="ident">arrow</span>.<span class="ident">clone</span>());
<span class="comment">// Bit weird, but don&#39;t use the dashed arrow as the hitbox. The gaps in between</span>
<span class="comment">// should still be clickable.</span>
<span class="ident">movement</span>
.<span class="ident">geom</span>
.<span class="ident">make_arrow</span>(<span class="ident">BIG_ARROW_THICKNESS</span>, <span class="ident">ArrowCap</span>::<span class="ident">Triangle</span>)
} <span class="kw">else</span> {
<span class="comment">// Use circular icons for banned turns</span>
<span class="kw">let</span> <span class="ident">offset</span> <span class="op">=</span> <span class="ident">movement</span>
.<span class="ident">members</span>
.<span class="ident">iter</span>()
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">t</span><span class="op">|</span> <span class="kw-2">*</span><span class="ident">offset_per_lane</span>.<span class="ident">entry</span>(<span class="ident">t</span>.<span class="ident">src</span>).<span class="ident">or_insert</span>(<span class="number">0</span>))
.<span class="ident">max</span>()
.<span class="ident">unwrap</span>();
<span class="kw">let</span> (<span class="ident">pl</span>, <span class="kw">_</span>) <span class="op">=</span> <span class="ident">movement</span>.<span class="ident">src_center_and_width</span>(<span class="ident">map</span>);
<span class="kw">let</span> (<span class="ident">circle</span>, <span class="ident">arrow</span>) <span class="op">=</span> <span class="ident">make_circle_geom</span>(<span class="ident">offset</span> <span class="kw">as</span> <span class="ident">f64</span>, <span class="ident">pl</span>, <span class="ident">movement</span>.<span class="ident">angle</span>);
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">seen_lanes</span> <span class="op">=</span> <span class="ident">HashSet</span>::<span class="ident">new</span>();
<span class="kw">for</span> <span class="ident">t</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="ident">movement</span>.<span class="ident">members</span> {
<span class="kw">if</span> <span class="op">!</span><span class="ident">seen_lanes</span>.<span class="ident">contains</span>(<span class="kw-2">&amp;</span><span class="ident">t</span>.<span class="ident">src</span>) {
<span class="kw-2">*</span><span class="ident">offset_per_lane</span>.<span class="ident">get_mut</span>(<span class="kw-2">&amp;</span><span class="ident">t</span>.<span class="ident">src</span>).<span class="ident">unwrap</span>() <span class="op">=</span> <span class="ident">offset</span> <span class="op">+</span> <span class="number">1</span>;
<span class="ident">seen_lanes</span>.<span class="ident">insert</span>(<span class="ident">t</span>.<span class="ident">src</span>);
}
} }
} <span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">&quot;#7C7C7C&quot;</span>), <span class="ident">circle</span>.<span class="ident">clone</span>());
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">Color</span>::<span class="ident">WHITE</span>, <span class="ident">arrow</span>);
<span class="ident">draw</span>.<span class="ident">push</span>(<span class="ident">DrawMovement</span> { <span class="ident">circle</span>
<span class="ident">id</span>: <span class="ident">movement</span>.<span class="ident">id</span>, };
<span class="ident">block</span>, <span class="ident">results</span>.<span class="ident">push</span>((
<span class="ident">arrow</span>, <span class="ident">DrawMovement</span> {
}); <span class="ident">id</span>: <span class="ident">movement</span>.<span class="ident">id</span>,
<span class="ident">hitbox</span>,
},
<span class="ident">batch</span>,
));
} }
<span class="ident">draw</span> <span class="ident">results</span>
} }
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">draw_selected_movement</span>( <span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">draw_selected_movement</span>(
<span class="kw-2">&amp;</span><span class="self">self</span>, <span class="kw-2">&amp;</span><span class="self">self</span>,
<span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>, <span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>,
<span class="ident">batch</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">GeomBatch</span>, <span class="ident">batch</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">GeomBatch</span>,
<span class="ident">m</span>: <span class="kw-2">&amp;</span><span class="ident">Movement</span>,
<span class="ident">next_priority</span>: <span class="prelude-ty">Option</span><span class="op">&lt;</span><span class="ident">TurnPriority</span><span class="op">&gt;</span>, <span class="ident">next_priority</span>: <span class="prelude-ty">Option</span><span class="op">&lt;</span><span class="ident">TurnPriority</span><span class="op">&gt;</span>,
) { ) {
<span class="comment">// TODO Refactor this mess. Maybe after things like &quot;dashed with outline&quot; can be expressed</span> <span class="kw">let</span> <span class="ident">movement</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_traffic_signal</span>(<span class="self">self</span>.<span class="ident">id</span>.<span class="ident">parent</span>).<span class="ident">movements</span>[<span class="kw-2">&amp;</span><span class="self">self</span>.<span class="ident">id</span>];
<span class="comment">// more composably like SVG, using lyon.</span> <span class="kw">let</span> <span class="ident">pl</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">movement</span>.<span class="ident">geom</span>;
<span class="kw">let</span> <span class="ident">block_color</span> <span class="op">=</span> <span class="kw">match</span> <span class="ident">next_priority</span> {
<span class="kw">match</span> <span class="ident">next_priority</span> {
<span class="prelude-val">Some</span>(<span class="ident">TurnPriority</span>::<span class="ident">Protected</span>) <span class="op">=</span><span class="op">&gt;</span> { <span class="prelude-val">Some</span>(<span class="ident">TurnPriority</span>::<span class="ident">Protected</span>) <span class="op">=</span><span class="op">&gt;</span> {
<span class="kw">let</span> <span class="ident">green</span> <span class="op">=</span> <span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">&quot;#72CE36&quot;</span>); <span class="kw">let</span> <span class="ident">green</span> <span class="op">=</span> <span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">&quot;#72CE36&quot;</span>);
<span class="kw">let</span> <span class="ident">arrow</span> <span class="op">=</span> <span class="ident">m</span>.<span class="ident">geom</span>.<span class="ident">make_arrow</span>(<span class="ident">BIG_ARROW_THICKNESS</span>, <span class="ident">ArrowCap</span>::<span class="ident">Triangle</span>); <span class="kw">let</span> <span class="ident">arrow</span> <span class="op">=</span> <span class="ident">pl</span>.<span class="ident">make_arrow</span>(<span class="ident">BIG_ARROW_THICKNESS</span>, <span class="ident">ArrowCap</span>::<span class="ident">Triangle</span>);
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">green</span>.<span class="ident">alpha</span>(<span class="number">0.5</span>), <span class="ident">arrow</span>.<span class="ident">clone</span>()); <span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">green</span>.<span class="ident">alpha</span>(<span class="number">0.5</span>), <span class="ident">arrow</span>.<span class="ident">clone</span>());
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Ok</span>(<span class="ident">p</span>) <span class="op">=</span> <span class="ident">arrow</span>.<span class="ident">to_outline</span>(<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.1</span>)) { <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Ok</span>(<span class="ident">p</span>) <span class="op">=</span> <span class="ident">arrow</span>.<span class="ident">to_outline</span>(<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.1</span>)) {
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">green</span>, <span class="ident">p</span>); <span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">green</span>, <span class="ident">p</span>);
} }
<span class="ident">green</span>
} }
<span class="prelude-val">Some</span>(<span class="ident">TurnPriority</span>::<span class="ident">Yield</span>) <span class="op">=</span><span class="op">&gt;</span> { <span class="prelude-val">Some</span>(<span class="ident">TurnPriority</span>::<span class="ident">Yield</span>) <span class="op">=</span><span class="op">&gt;</span> {
<span class="ident">batch</span>.<span class="ident">extend</span>( <span class="ident">batch</span>.<span class="ident">extend</span>(
<span class="comment">// TODO Ideally the inner part would be the lower opacity blue, but can&#39;t yet</span> <span class="comment">// TODO Ideally the inner part would be the lower opacity blue, but can&#39;t yet</span>
<span class="comment">// express that it should cover up the thicker solid blue beneath it</span> <span class="comment">// express that it should cover up the thicker solid blue beneath it</span>
<span class="ident">Color</span>::<span class="ident">BLACK</span>.<span class="ident">alpha</span>(<span class="number">0.8</span>), <span class="ident">Color</span>::<span class="ident">BLACK</span>.<span class="ident">alpha</span>(<span class="number">0.8</span>),
<span class="ident">m</span>.<span class="ident">geom</span>.<span class="ident">dashed_arrow</span>( <span class="ident">pl</span>.<span class="ident">dashed_arrow</span>(
<span class="ident">BIG_ARROW_THICKNESS</span>, <span class="ident">BIG_ARROW_THICKNESS</span>,
<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">1.2</span>), <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">1.2</span>),
<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.3</span>), <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.3</span>),
@ -254,11 +373,7 @@
); );
<span class="ident">batch</span>.<span class="ident">extend</span>( <span class="ident">batch</span>.<span class="ident">extend</span>(
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">signal_permitted_turn</span>.<span class="ident">alpha</span>(<span class="number">0.8</span>), <span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">signal_permitted_turn</span>.<span class="ident">alpha</span>(<span class="number">0.8</span>),
<span class="ident">m</span>.<span class="ident">geom</span> <span class="ident">pl</span>.<span class="ident">exact_slice</span>(<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.1</span>), <span class="ident">pl</span>.<span class="ident">length</span>() <span class="op">-</span> <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.1</span>))
.<span class="ident">exact_slice</span>(
<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.1</span>),
<span class="ident">m</span>.<span class="ident">geom</span>.<span class="ident">length</span>() <span class="op">-</span> <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.1</span>),
)
.<span class="ident">dashed_arrow</span>( .<span class="ident">dashed_arrow</span>(
<span class="ident">BIG_ARROW_THICKNESS</span> <span class="op">/</span> <span class="number">2.0</span>, <span class="ident">BIG_ARROW_THICKNESS</span> <span class="op">/</span> <span class="number">2.0</span>,
<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">1.0</span>), <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">1.0</span>),
@ -266,21 +381,17 @@
<span class="ident">ArrowCap</span>::<span class="ident">Triangle</span>, <span class="ident">ArrowCap</span>::<span class="ident">Triangle</span>,
), ),
); );
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">signal_permitted_turn</span>
} }
<span class="prelude-val">Some</span>(<span class="ident">TurnPriority</span>::<span class="ident">Banned</span>) <span class="op">=</span><span class="op">&gt;</span> { <span class="prelude-val">Some</span>(<span class="ident">TurnPriority</span>::<span class="ident">Banned</span>) <span class="op">=</span><span class="op">&gt;</span> {
<span class="kw">let</span> <span class="ident">red</span> <span class="op">=</span> <span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">&quot;#EB3223&quot;</span>); <span class="kw">let</span> <span class="ident">red</span> <span class="op">=</span> <span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">&quot;#EB3223&quot;</span>);
<span class="kw">let</span> <span class="ident">arrow</span> <span class="op">=</span> <span class="ident">m</span>.<span class="ident">geom</span>.<span class="ident">make_arrow</span>(<span class="ident">BIG_ARROW_THICKNESS</span>, <span class="ident">ArrowCap</span>::<span class="ident">Triangle</span>); <span class="kw">let</span> <span class="ident">arrow</span> <span class="op">=</span> <span class="ident">pl</span>.<span class="ident">make_arrow</span>(<span class="ident">BIG_ARROW_THICKNESS</span>, <span class="ident">ArrowCap</span>::<span class="ident">Triangle</span>);
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">red</span>.<span class="ident">alpha</span>(<span class="number">0.5</span>), <span class="ident">arrow</span>.<span class="ident">clone</span>()); <span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">red</span>.<span class="ident">alpha</span>(<span class="number">0.5</span>), <span class="ident">arrow</span>.<span class="ident">clone</span>());
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Ok</span>(<span class="ident">p</span>) <span class="op">=</span> <span class="ident">arrow</span>.<span class="ident">to_outline</span>(<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.1</span>)) { <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Ok</span>(<span class="ident">p</span>) <span class="op">=</span> <span class="ident">arrow</span>.<span class="ident">to_outline</span>(<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.1</span>)) {
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">red</span>, <span class="ident">p</span>); <span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">red</span>, <span class="ident">p</span>);
} }
<span class="ident">red</span>
} }
<span class="prelude-val">None</span> <span class="op">=</span><span class="op">&gt;</span> <span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">signal_turn_block_bg</span>, <span class="prelude-val">None</span> <span class="op">=</span><span class="op">&gt;</span> {}
}; }
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">block_color</span>, <span class="self">self</span>.<span class="ident">block</span>.<span class="ident">clone</span>());
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">Color</span>::<span class="ident">WHITE</span>, <span class="self">self</span>.<span class="ident">arrow</span>.<span class="ident">clone</span>());
} }
} }
@ -302,7 +413,7 @@
.<span class="ident">max</span>() .<span class="ident">max</span>()
.<span class="ident">unwrap</span>(); .<span class="ident">unwrap</span>();
<span class="kw">let</span> (<span class="ident">pl</span>, <span class="ident">width</span>) <span class="op">=</span> <span class="ident">group</span>.<span class="ident">src_center_and_width</span>(<span class="ident">map</span>); <span class="kw">let</span> (<span class="ident">pl</span>, <span class="ident">width</span>) <span class="op">=</span> <span class="ident">group</span>.<span class="ident">src_center_and_width</span>(<span class="ident">map</span>);
<span class="kw">let</span> (<span class="ident">block</span>, <span class="ident">arrow</span>) <span class="op">=</span> <span class="ident">make_geom</span>(<span class="ident">offset</span> <span class="kw">as</span> <span class="ident">f64</span>, <span class="ident">pl</span>, <span class="ident">width</span>, <span class="ident">group</span>.<span class="ident">angle</span>()); <span class="kw">let</span> (<span class="ident">block</span>, <span class="ident">arrow</span>) <span class="op">=</span> <span class="ident">make_block_geom</span>(<span class="ident">offset</span> <span class="kw">as</span> <span class="ident">f64</span>, <span class="ident">pl</span>, <span class="ident">width</span>, <span class="ident">group</span>.<span class="ident">angle</span>());
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">seen_lanes</span> <span class="op">=</span> <span class="ident">HashSet</span>::<span class="ident">new</span>(); <span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">seen_lanes</span> <span class="op">=</span> <span class="ident">HashSet</span>::<span class="ident">new</span>();
<span class="kw">for</span> <span class="ident">ut</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="ident">group</span>.<span class="ident">members</span> { <span class="kw">for</span> <span class="ident">ut</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="ident">group</span>.<span class="ident">members</span> {
<span class="kw">if</span> <span class="op">!</span><span class="ident">seen_lanes</span>.<span class="ident">contains</span>(<span class="kw-2">&amp;</span><span class="ident">ut</span>.<span class="ident">entry</span>()) { <span class="kw">if</span> <span class="op">!</span><span class="ident">seen_lanes</span>.<span class="ident">contains</span>(<span class="kw-2">&amp;</span><span class="ident">ut</span>.<span class="ident">entry</span>()) {
@ -322,7 +433,7 @@
} }
<span class="comment">// Produces (block, arrow)</span> <span class="comment">// Produces (block, arrow)</span>
<span class="kw">fn</span> <span class="ident">make_geom</span>(<span class="ident">offset</span>: <span class="ident">f64</span>, <span class="ident">pl</span>: <span class="ident">PolyLine</span>, <span class="ident">width</span>: <span class="ident">Distance</span>, <span class="ident">angle</span>: <span class="ident">Angle</span>) <span class="op">-</span><span class="op">&gt;</span> (<span class="ident">Polygon</span>, <span class="ident">Polygon</span>) { <span class="kw">fn</span> <span class="ident">make_block_geom</span>(<span class="ident">offset</span>: <span class="ident">f64</span>, <span class="ident">pl</span>: <span class="ident">PolyLine</span>, <span class="ident">width</span>: <span class="ident">Distance</span>, <span class="ident">angle</span>: <span class="ident">Angle</span>) <span class="op">-</span><span class="op">&gt;</span> (<span class="ident">Polygon</span>, <span class="ident">Polygon</span>) {
<span class="kw">let</span> <span class="ident">height</span> <span class="op">=</span> <span class="ident">TURN_ICON_ARROW_LENGTH</span>; <span class="kw">let</span> <span class="ident">height</span> <span class="op">=</span> <span class="ident">TURN_ICON_ARROW_LENGTH</span>;
<span class="comment">// Always extend the pl first to handle short entry lanes</span> <span class="comment">// Always extend the pl first to handle short entry lanes</span>
<span class="kw">let</span> <span class="ident">extension</span> <span class="op">=</span> <span class="ident">PolyLine</span>::<span class="ident">must_new</span>(<span class="macro">vec</span><span class="macro">!</span>[ <span class="kw">let</span> <span class="ident">extension</span> <span class="op">=</span> <span class="ident">PolyLine</span>::<span class="ident">must_new</span>(<span class="macro">vec</span><span class="macro">!</span>[
@ -345,5 +456,28 @@
(<span class="ident">block</span>, <span class="ident">arrow</span>) (<span class="ident">block</span>, <span class="ident">arrow</span>)
} }
<span class="comment">// Produces (circle, arrow)</span>
<span class="kw">fn</span> <span class="ident">make_circle_geom</span>(<span class="ident">offset</span>: <span class="ident">f64</span>, <span class="ident">pl</span>: <span class="ident">PolyLine</span>, <span class="ident">angle</span>: <span class="ident">Angle</span>) <span class="op">-</span><span class="op">&gt;</span> (<span class="ident">Polygon</span>, <span class="ident">Polygon</span>) {
<span class="kw">let</span> <span class="ident">height</span> <span class="op">=</span> <span class="number">2.0</span> <span class="op">*</span> <span class="ident">TURN_ICON_ARROW_LENGTH</span>;
<span class="comment">// Always extend the pl first to handle short entry lanes</span>
<span class="kw">let</span> <span class="ident">extension</span> <span class="op">=</span> <span class="ident">PolyLine</span>::<span class="ident">must_new</span>(<span class="macro">vec</span><span class="macro">!</span>[
<span class="ident">pl</span>.<span class="ident">last_pt</span>(),
<span class="ident">pl</span>.<span class="ident">last_pt</span>()
.<span class="ident">project_away</span>(<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">500.0</span>), <span class="ident">pl</span>.<span class="ident">last_line</span>().<span class="ident">angle</span>()),
]);
<span class="kw">let</span> <span class="ident">pl</span> <span class="op">=</span> <span class="ident">pl</span>.<span class="ident">must_extend</span>(<span class="ident">extension</span>);
<span class="kw">let</span> <span class="ident">slice</span> <span class="op">=</span> <span class="ident">pl</span>.<span class="ident">exact_slice</span>(<span class="ident">offset</span> <span class="op">*</span> <span class="ident">height</span>, (<span class="ident">offset</span> <span class="op">+</span> <span class="number">1.0</span>) <span class="op">*</span> <span class="ident">height</span>);
<span class="kw">let</span> <span class="ident">center</span> <span class="op">=</span> <span class="ident">slice</span>.<span class="ident">middle</span>();
<span class="kw">let</span> <span class="ident">block</span> <span class="op">=</span> <span class="ident">Circle</span>::<span class="ident">new</span>(<span class="ident">center</span>, <span class="ident">TURN_ICON_ARROW_LENGTH</span>).<span class="ident">to_polygon</span>();
<span class="kw">let</span> <span class="ident">arrow</span> <span class="op">=</span> <span class="ident">PolyLine</span>::<span class="ident">must_new</span>(<span class="macro">vec</span><span class="macro">!</span>[
<span class="ident">center</span>.<span class="ident">project_away</span>(<span class="ident">TURN_ICON_ARROW_LENGTH</span> <span class="op">/</span> <span class="number">2.0</span>, <span class="ident">angle</span>.<span class="ident">opposite</span>()),
<span class="ident">center</span>.<span class="ident">project_away</span>(<span class="ident">TURN_ICON_ARROW_LENGTH</span> <span class="op">/</span> <span class="number">2.0</span>, <span class="ident">angle</span>),
])
.<span class="ident">make_arrow</span>(<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.5</span>), <span class="ident">ArrowCap</span>::<span class="ident">Triangle</span>);
(<span class="ident">block</span>, <span class="ident">arrow</span>)
}
</pre></div> </pre></div>
</section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script src="../../../source-script.js"></script><script src="../../../source-files.js"></script><script defer src="../../../search-index.js"></script></body></html> </section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script src="../../../source-script.js"></script><script src="../../../source-files.js"></script><script defer src="../../../search-index.js"></script></body></html>