var searchIndex = {}; searchIndex["amethyst"] = {"doc":"Amethyst is a free and open source game engine written in idiomatic\n[Rust][rs] for building video games and interactive multimedia applications.\nThe source code is available for download on [GitHub][gh]. See the online\n[online book][bk] for a complete guide to using Amethyst.","items":[[3,"SteadyTime","amethyst::engine","A structure representing a moment in time.",null,null],[3,"StateMachine","","A simple stack-based state machine (pushdown automaton).",null,null],[4,"Trans","","Types of state transitions.",null,null],[13,"None","","Continue as normal.",0,null],[13,"Pop","","Remove the active state and resume the next state on the stack or stop if there are none.",0,null],[13,"Push","","Pause the active state and push a new state onto the stack.",0,null],[13,"Switch","","Remove the current state on the stack and insert a different one.",0,null],[13,"Quit","","Stop and remove all states and shut down the engine.",0,null],[8,"State","","A trait which defines game states that can be used by the state machine.",null,null],[11,"on_start","","Executed when the game state begins.",1,null],[11,"on_stop","","Executed when the game state exits.",1,null],[11,"on_pause","","Executed when a different game state is pushed onto the stack.",1,null],[11,"on_resume","","Executed when the application returns to this game state once again.",1,null],[11,"handle_events","","Executed on every frame before updating, for use in reacting to events.",1,null],[11,"fixed_update","","Executed repeatedly at stable, predictable intervals (1/60th of a second\nby default).",1,null],[11,"update","","Executed on every frame immediately, as fast as the engine will allow.",1,null],[3,"Duration","","ISO 8601 time duration with nanosecond precision.\nThis also allows for the negative duration; see individual methods for details.",null,null],[3,"Application","","User-friendly facade for building games. Manages main loop.",null,null],[3,"Stopwatch","","Useful utility for accurately measuring elapsed time.",null,null],[3,"Frontend","amethyst::renderer","",null,null],[3,"Backend","","",null,null],[11,"now","amethyst::engine","Returns a `SteadyTime` representing the current moment in time.",2,{"inputs":[],"output":{"name":"steadytime"}}],[11,"fmt","","",3,null],[11,"cmp","","",3,null],[11,"partial_cmp","","",3,null],[11,"lt","","",3,null],[11,"le","","",3,null],[11,"gt","","",3,null],[11,"ge","","",3,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"clone","","",3,null],[11,"weeks","","Makes a new `Duration` with given number of weeks.\nEquivalent to `Duration::seconds(weeks * 7 * 24 * 60 * 60)` with overflow checks.\nPanics when the duration is out of bounds.",3,{"inputs":[{"name":"i64"}],"output":{"name":"duration"}}],[11,"days","","Makes a new `Duration` with given number of days.\nEquivalent to `Duration::seconds(days * 24 * 60 * 60)` with overflow checks.\nPanics when the duration is out of bounds.",3,{"inputs":[{"name":"i64"}],"output":{"name":"duration"}}],[11,"hours","","Makes a new `Duration` with given number of hours.\nEquivalent to `Duration::seconds(hours * 60 * 60)` with overflow checks.\nPanics when the duration is out of bounds.",3,{"inputs":[{"name":"i64"}],"output":{"name":"duration"}}],[11,"minutes","","Makes a new `Duration` with given number of minutes.\nEquivalent to `Duration::seconds(minutes * 60)` with overflow checks.\nPanics when the duration is out of bounds.",3,{"inputs":[{"name":"i64"}],"output":{"name":"duration"}}],[11,"seconds","","Makes a new `Duration` with given number of seconds.\nPanics when the duration is more than `i64::MAX` milliseconds\nor less than `i64::MIN` milliseconds.",3,{"inputs":[{"name":"i64"}],"output":{"name":"duration"}}],[11,"milliseconds","","Makes a new `Duration` with given number of milliseconds.",3,{"inputs":[{"name":"i64"}],"output":{"name":"duration"}}],[11,"microseconds","","Makes a new `Duration` with given number of microseconds.",3,{"inputs":[{"name":"i64"}],"output":{"name":"duration"}}],[11,"nanoseconds","","Makes a new `Duration` with given number of nanoseconds.",3,{"inputs":[{"name":"i64"}],"output":{"name":"duration"}}],[11,"span","","Runs a closure, returning the duration of time it took to run the\nclosure.",3,{"inputs":[{"name":"f"}],"output":{"name":"duration"}}],[11,"num_weeks","","Returns the total number of whole weeks in the duration.",3,null],[11,"num_days","","Returns the total number of whole days in the duration.",3,null],[11,"num_hours","","Returns the total number of whole hours in the duration.",3,null],[11,"num_minutes","","Returns the total number of whole minutes in the duration.",3,null],[11,"num_seconds","","Returns the total number of whole seconds in the duration.",3,null],[11,"num_milliseconds","","Returns the total number of whole milliseconds in the duration,",3,null],[11,"num_microseconds","","Returns the total number of whole microseconds in the duration,\nor `None` on overflow (exceeding 2^63 microseconds in either direction).",3,null],[11,"num_nanoseconds","","Returns the total number of whole nanoseconds in the duration,\nor `None` on overflow (exceeding 2^63 nanoseconds in either direction).",3,null],[11,"checked_add","","Add two durations, returning `None` if overflow occurred.",3,null],[11,"checked_sub","","Subtract two durations, returning `None` if overflow occurred.",3,null],[11,"min_value","","The minimum possible `Duration`: `i64::MIN` milliseconds.",3,{"inputs":[],"output":{"name":"duration"}}],[11,"max_value","","The maximum possible `Duration`: `i64::MAX` milliseconds.",3,{"inputs":[],"output":{"name":"duration"}}],[11,"zero","","A duration where the stored seconds and nanoseconds are equal to zero.",3,{"inputs":[],"output":{"name":"duration"}}],[11,"is_zero","","Returns `true` if the duration equals `Duration::zero()`.",3,null],[11,"from_std","","Creates a `time::Duration` object from `std::time::Duration`",3,{"inputs":[{"name":"duration"}],"output":{"name":"result"}}],[11,"to_std","","Creates a `std::time::Duration` object from `time::Duration`",3,null],[11,"neg","","",3,null],[11,"add","","",3,null],[11,"sub","","",3,null],[11,"mul","","",3,null],[11,"div","","",3,null],[11,"fmt","","",3,null],[11,"fmt","","",2,null],[11,"eq","","",2,null],[11,"ne","","",2,null],[11,"cmp","","",2,null],[11,"partial_cmp","","",2,null],[11,"lt","","",2,null],[11,"le","","",2,null],[11,"gt","","",2,null],[11,"ge","","",2,null],[11,"clone","","",2,null],[11,"fmt","","",2,null],[11,"sub","","",2,null],[11,"sub","","",2,null],[11,"add","","",2,null],[11,"new","","",4,{"inputs":[{"name":"t"}],"output":{"name":"statemachine"}}],[11,"is_running","","Checks whether the state machine is running.",4,null],[11,"start","","Initializes the state machine.\n# Panics\nPanics if no states are present in the stack.",4,null],[11,"handle_events","","Passes a vector of events to the active state to handle.",4,null],[11,"fixed_update","","Updates the currently active state at a steady, fixed interval.",4,null],[11,"update","","Updates the currently active state immediately.",4,null],[11,"new","","Creates a new Application with the given initial game state.",5,{"inputs":[{"name":"t"}],"output":{"name":"application"}}],[11,"run","","Starts the application and manages the game loop.",5,null],[11,"new","","",6,{"inputs":[],"output":{"name":"stopwatch"}}],[11,"elapsed","","Retrieves the elapsed time.",6,null],[11,"restart","","Stops, resets, and starts the stopwatch again.",6,null],[11,"start","","Starts, or resumes, measuring elapsed time. If the stopwatch has been\nstarted and stopped before, the new results are compounded onto the\nexisting elapsed time value.",6,null],[11,"stop","","Stops measuring elapsed time.",6,null],[11,"reset","","Clears the current elapsed time value.",6,null],[11,"new","amethyst::renderer","",7,{"inputs":[],"output":{"name":"frontend"}}],[11,"new","","",8,{"inputs":[],"output":{"name":"backend"}}]],"paths":[[4,"Trans"],[8,"State"],[3,"SteadyTime"],[3,"Duration"],[3,"StateMachine"],[3,"Application"],[3,"Stopwatch"],[3,"Frontend"],[3,"Backend"]]}; initSearch(searchIndex);