mirror of
https://github.com/Steffo99/lihzahrd.git
synced 2024-11-28 19:14:22 +00:00
393 lines
No EOL
16 KiB
HTML
393 lines
No EOL
16 KiB
HTML
|
||
|
||
<!DOCTYPE html>
|
||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||
<head>
|
||
<meta charset="utf-8">
|
||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
||
<title>lihzahrd.World — lihzahrd documentation</title>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<script type="text/javascript" src="_static/js/modernizr.min.js"></script>
|
||
|
||
|
||
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
|
||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||
<script type="text/javascript" src="_static/language_data.js"></script>
|
||
|
||
<script type="text/javascript" src="_static/js/theme.js"></script>
|
||
|
||
|
||
|
||
|
||
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
|
||
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
||
<link rel="index" title="Index" href="genindex.html" />
|
||
<link rel="search" title="Search" href="search.html" />
|
||
<link rel="next" title="lihzahrd.header" href="header.html" />
|
||
<link rel="prev" title="lihzahrd" href="index.html" />
|
||
</head>
|
||
|
||
<body class="wy-body-for-nav">
|
||
|
||
|
||
<div class="wy-grid-for-nav">
|
||
|
||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||
<div class="wy-side-scroll">
|
||
<div class="wy-side-nav-search" >
|
||
|
||
|
||
|
||
<a href="index.html" class="icon icon-home"> lihzahrd
|
||
|
||
|
||
|
||
</a>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div role="search">
|
||
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
|
||
<input type="text" name="q" placeholder="Search docs" />
|
||
<input type="hidden" name="check_keywords" value="yes" />
|
||
<input type="hidden" name="area" value="default" />
|
||
</form>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<ul class="current">
|
||
<li class="toctree-l1 current"><a class="current reference internal" href="#">lihzahrd.World</a><ul class="simple">
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="header.html">lihzahrd.header</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="tiles.html">lihzahrd.tiles</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="chests.html">lihzahrd.chests</a></li>
|
||
</ul>
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
|
||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||
|
||
|
||
<nav class="wy-nav-top" aria-label="top navigation">
|
||
|
||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||
<a href="index.html">lihzahrd</a>
|
||
|
||
</nav>
|
||
|
||
|
||
<div class="wy-nav-content">
|
||
|
||
<div class="rst-content">
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div role="navigation" aria-label="breadcrumbs navigation">
|
||
|
||
<ul class="wy-breadcrumbs">
|
||
|
||
<li><a href="index.html">Docs</a> »</li>
|
||
|
||
<li>lihzahrd.World</li>
|
||
|
||
|
||
<li class="wy-breadcrumbs-aside">
|
||
|
||
|
||
<a href="_sources/world.rst.txt" rel="nofollow"> View page source</a>
|
||
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
|
||
|
||
<hr/>
|
||
</div>
|
||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||
<div itemprop="articleBody">
|
||
|
||
<div class="section" id="lihzahrd-world">
|
||
<h1>lihzahrd.World<a class="headerlink" href="#lihzahrd-world" title="Permalink to this headline">¶</a></h1>
|
||
<div class="toctree-wrapper compound">
|
||
</div>
|
||
<dl class="class">
|
||
<dt id="lihzahrd.World">
|
||
<em class="property">class </em><code class="sig-prename descclassname">lihzahrd.</code><code class="sig-name descname">World</code><span class="sig-paren">(</span><em class="sig-param">version: lihzahrd.header.version.Version, savefile_type: int, revision: int, is_favorite: bool, name: str, generator: lihzahrd.header.generatorinfo.GeneratorInfo, uuid_: uuid.UUID, id_: int, bounds: lihzahrd.fileutils.rect.Rect, size: lihzahrd.fileutils.coordinates.Coordinates, is_expert: bool, created_on, styles: lihzahrd.header.styles.Styles, backgrounds: lihzahrd.header.backgrounds.Backgrounds, spawn_point: lihzahrd.fileutils.coordinates.Coordinates, underground_level: float, cavern_level: float, time: lihzahrd.header.time.Time, events: lihzahrd.header.events.Events, dungeon_point: lihzahrd.fileutils.coordinates.Coordinates, world_evil: lihzahrd.header.worldeviltype.WorldEvilType, saved_npcs: lihzahrd.header.savednpcs.SavedNPCs, altars_smashed: lihzahrd.header.altarssmashed.AltarsSmashed, is_hardmode: bool, shadow_orbs: lihzahrd.header.shadoworbs.ShadowOrbs, bosses_defeated: lihzahrd.header.bossesdefeated.BossesDefeated, anglers_quest: lihzahrd.header.anglerquest.AnglerQuest, clouds: lihzahrd.header.clouds.Clouds, cultist_delay: int, tiles: List[List[lihzahrd.tiles.tile.Tile]], chests: List[lihzahrd.chests.chest.Chest], unknown_file_format_data: bytearray, unknown_world_header_data: bytearray, unknown_world_tiles_data: bytearray, unknown_chests_data: bytearray</em><span class="sig-paren">)</span><a class="headerlink" href="#lihzahrd.World" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The Python representation of a Terraria world.</p>
|
||
<dl class="method">
|
||
<dt id="lihzahrd.World._read_tiles">
|
||
<em class="property">static </em><code class="sig-name descname">_read_tiles</code><span class="sig-paren">(</span><em class="sig-param">fr: lihzahrd.fileutils.filereader.FileReader</em>, <em class="sig-param">tileframeimportant</em><span class="sig-paren">)</span> → List<a class="headerlink" href="#lihzahrd.World._read_tiles" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.altars_smashed">
|
||
<code class="sig-name descname">altars_smashed</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.altars_smashed" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Information related to the destruction of Demon Altars with a Pwnhammer.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.anglers_quest">
|
||
<code class="sig-name descname">anglers_quest</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.anglers_quest" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Information about today’s Angler’s Quest.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.backgrounds">
|
||
<code class="sig-name descname">backgrounds</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.backgrounds" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The backgrounds of the various biomes.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.bosses_defeated">
|
||
<code class="sig-name descname">bosses_defeated</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.bosses_defeated" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Which bosses have been defeated in the world.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.bounds">
|
||
<code class="sig-name descname">bounds</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.bounds" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The world size in pixels.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.cavern_level">
|
||
<code class="sig-name descname">cavern_level</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.cavern_level" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The depth at which the cavern biome starts.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="lihzahrd.World.create_from_file">
|
||
<em class="property">classmethod </em><code class="sig-name descname">create_from_file</code><span class="sig-paren">(</span><em class="sig-param">file</em><span class="sig-paren">)</span><a class="headerlink" href="#lihzahrd.World.create_from_file" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Create a World object from a .wld file.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.created_on">
|
||
<code class="sig-name descname">created_on</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.created_on" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The date and time this world was created in.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="lihzahrd.World.crimson_hearts">
|
||
<em class="property">property </em><code class="sig-name descname">crimson_hearts</code><a class="headerlink" href="#lihzahrd.World.crimson_hearts" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.dungeon_point">
|
||
<code class="sig-name descname">dungeon_point</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.dungeon_point" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The Old Man spawn point.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.events">
|
||
<code class="sig-name descname">events</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.events" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Currently ongoing world events.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.generator">
|
||
<code class="sig-name descname">generator</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.generator" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Information about the generation of this world.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.id">
|
||
<code class="sig-name descname">id</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The world id. Used to name the minimap file.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.is_expert">
|
||
<code class="sig-name descname">is_expert</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.is_expert" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>If the world is in expert mode or not.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.is_favorite">
|
||
<code class="sig-name descname">is_favorite</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.is_favorite" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>If the world is marked as favorite or not.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.is_hardmode">
|
||
<code class="sig-name descname">is_hardmode</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.is_hardmode" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Whether or not the world is in hardmode.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.name">
|
||
<code class="sig-name descname">name</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.name" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The name the world was given at creation. Doesn’t always match the filename.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.revision">
|
||
<code class="sig-name descname">revision</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.revision" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The number of times this world was saved.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.saved_npcs">
|
||
<code class="sig-name descname">saved_npcs</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.saved_npcs" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The NPCs that were rescued by the player.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.savefile_type">
|
||
<code class="sig-name descname">savefile_type</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.savefile_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The format of the save file. Should be 2 for all versions following 1.2.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.shadow_orbs">
|
||
<code class="sig-name descname">shadow_orbs</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.shadow_orbs" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Information related to the Shadow Orbs or Crimson Hearts in the world.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.size">
|
||
<code class="sig-name descname">size</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.size" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The world size in tiles.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.spawn_point">
|
||
<code class="sig-name descname">spawn_point</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.spawn_point" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The coordinates of the spawn point.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.styles">
|
||
<code class="sig-name descname">styles</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.styles" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The styles of various world elements.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.time">
|
||
<code class="sig-name descname">time</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.time" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Game time related information.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.underground_level">
|
||
<code class="sig-name descname">underground_level</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.underground_level" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The depth at which the underground biome starts.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.uuid">
|
||
<code class="sig-name descname">uuid</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.uuid" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The Universally Unique ID of this world.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.version">
|
||
<code class="sig-name descname">version</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.version" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The game version when this savefile was last saved.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="lihzahrd.World.world_evil">
|
||
<code class="sig-name descname">world_evil</code><em class="property"> = None</em><a class="headerlink" href="#lihzahrd.World.world_evil" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Whether the world has Corruption or Crimson.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
</div>
|
||
<footer>
|
||
|
||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
||
|
||
<a href="header.html" class="btn btn-neutral float-right" title="lihzahrd.header" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
|
||
|
||
|
||
<a href="index.html" class="btn btn-neutral float-left" title="lihzahrd" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
|
||
|
||
</div>
|
||
|
||
|
||
<hr/>
|
||
|
||
<div role="contentinfo">
|
||
<p>
|
||
© Copyright 2019, Stefano Pigozzi
|
||
|
||
</p>
|
||
</div>
|
||
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
|
||
|
||
</footer>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
</section>
|
||
|
||
</div>
|
||
|
||
|
||
|
||
<script type="text/javascript">
|
||
jQuery(function () {
|
||
SphinxRtdTheme.Navigation.enable(true);
|
||
});
|
||
</script>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</body>
|
||
</html> |