新增doc
This commit is contained in:
498
source/docs/classes/_tiled_layer_.es.tmxlayer.html
Normal file
498
source/docs/classes/_tiled_layer_.es.tmxlayer.html
Normal file
@@ -0,0 +1,498 @@
|
||||
<!doctype html>
|
||||
<html class="default no-js">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>TmxLayer | @esengine/egret-framework</title>
|
||||
<meta name="description" content="Documentation for @esengine/egret-framework">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../assets/css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="tsd-page-toolbar">
|
||||
<div class="container">
|
||||
<div class="table-wrap">
|
||||
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
|
||||
<div class="field">
|
||||
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
||||
<input id="tsd-search-field" type="text" />
|
||||
</div>
|
||||
<ul class="results">
|
||||
<li class="state loading">Preparing search index...</li>
|
||||
<li class="state failure">The search index is not available</li>
|
||||
</ul>
|
||||
<a href="../index.html" class="title">@esengine/egret-framework</a>
|
||||
</div>
|
||||
<div class="table-cell" id="tsd-widgets">
|
||||
<div id="tsd-filter">
|
||||
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
||||
<div class="tsd-filter-group">
|
||||
<div class="tsd-select" id="tsd-filter-visibility">
|
||||
<span class="tsd-select-label">All</span>
|
||||
<ul class="tsd-select-list">
|
||||
<li data-value="public">Public</li>
|
||||
<li data-value="protected">Public/Protected</li>
|
||||
<li data-value="private" class="selected">All</li>
|
||||
</ul>
|
||||
</div>
|
||||
<input type="checkbox" id="tsd-filter-inherited" checked />
|
||||
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
||||
<input type="checkbox" id="tsd-filter-externals" checked />
|
||||
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
|
||||
<input type="checkbox" id="tsd-filter-only-exported" />
|
||||
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tsd-page-title">
|
||||
<div class="container">
|
||||
<ul class="tsd-breadcrumb">
|
||||
<li>
|
||||
<a href="../globals.html">Globals</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="../modules/_tiled_layer_.html">"Tiled/Layer"</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="../modules/_tiled_layer_.es.html">es</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="_tiled_layer_.es.tmxlayer.html">TmxLayer</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h1>Class TmxLayer</h1>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container container-main">
|
||||
<div class="row">
|
||||
<div class="col-8 col-content">
|
||||
<section class="tsd-panel tsd-hierarchy">
|
||||
<h3>Hierarchy</h3>
|
||||
<ul class="tsd-hierarchy">
|
||||
<li>
|
||||
<span class="target">TmxLayer</span>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel">
|
||||
<h3>Implements</h3>
|
||||
<ul class="tsd-hierarchy">
|
||||
<li><a href="../interfaces/_tiled_itmxlayer_.es.itmxlayer.html" class="tsd-signature-type">ITmxLayer</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel-group tsd-index-group">
|
||||
<h2>Index</h2>
|
||||
<section class="tsd-panel tsd-index-panel">
|
||||
<div class="tsd-index-content">
|
||||
<section class="tsd-index-section ">
|
||||
<h3>Properties</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_tiled_layer_.es.tmxlayer.html#height" class="tsd-kind-icon">height</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_tiled_layer_.es.tmxlayer.html#map" class="tsd-kind-icon">map</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_tiled_layer_.es.tmxlayer.html#name" class="tsd-kind-icon">name</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_tiled_layer_.es.tmxlayer.html#offsetx" class="tsd-kind-icon">offsetX</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_tiled_layer_.es.tmxlayer.html#offsety" class="tsd-kind-icon">offsetY</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_tiled_layer_.es.tmxlayer.html#opacity" class="tsd-kind-icon">opacity</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_tiled_layer_.es.tmxlayer.html#properties" class="tsd-kind-icon">properties</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_tiled_layer_.es.tmxlayer.html#tiles" class="tsd-kind-icon">tiles</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_tiled_layer_.es.tmxlayer.html#visible" class="tsd-kind-icon">visible</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_tiled_layer_.es.tmxlayer.html#width" class="tsd-kind-icon">width</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-index-section ">
|
||||
<h3>Accessors</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="_tiled_layer_.es.tmxlayer.html#offset" class="tsd-kind-icon">offset</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-index-section ">
|
||||
<h3>Methods</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_tiled_layer_.es.tmxlayer.html#findboundsrect" class="tsd-kind-icon">find<wbr>Bounds<wbr>Rect</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_tiled_layer_.es.tmxlayer.html#getcollisionrectangles" class="tsd-kind-icon">get<wbr>Collision<wbr>Rectangles</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_tiled_layer_.es.tmxlayer.html#gettile" class="tsd-kind-icon">get<wbr>Tile</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_tiled_layer_.es.tmxlayer.html#gettilewithgid" class="tsd-kind-icon">get<wbr>Tile<wbr>With<wbr>Gid</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section class="tsd-panel-group tsd-member-group ">
|
||||
<h2>Properties</h2>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
||||
<a name="height" class="tsd-anchor"></a>
|
||||
<h3>height</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">height<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Tiled/Layer.ts#L21">src/Tiled/Layer.ts:21</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>这一层的tile高度。对于固定大小的地图,始终与地图高度相同。</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
||||
<a name="map" class="tsd-anchor"></a>
|
||||
<h3>map</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">map<span class="tsd-signature-symbol">:</span> <a href="_tiled_map_.es.tmxmap.html" class="tsd-signature-type">TmxMap</a></div>
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Tiled/Layer.ts#L3">src/Tiled/Layer.ts:3</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
||||
<a name="name" class="tsd-anchor"></a>
|
||||
<h3>name</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Tiled/Layer.ts#L4">src/Tiled/Layer.ts:4</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
||||
<a name="offsetx" class="tsd-anchor"></a>
|
||||
<h3>offsetX</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">offsetX<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
||||
<aside class="tsd-sources">
|
||||
<p>Implementation of <a href="../interfaces/_tiled_itmxlayer_.es.itmxlayer.html">ITmxLayer</a>.<a href="../interfaces/_tiled_itmxlayer_.es.itmxlayer.html#offsetx">offsetX</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Tiled/Layer.ts#L6">src/Tiled/Layer.ts:6</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
||||
<a name="offsety" class="tsd-anchor"></a>
|
||||
<h3>offsetY</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">offsetY<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
||||
<aside class="tsd-sources">
|
||||
<p>Implementation of <a href="../interfaces/_tiled_itmxlayer_.es.itmxlayer.html">ITmxLayer</a>.<a href="../interfaces/_tiled_itmxlayer_.es.itmxlayer.html#offsety">offsetY</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Tiled/Layer.ts#L7">src/Tiled/Layer.ts:7</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
||||
<a name="opacity" class="tsd-anchor"></a>
|
||||
<h3>opacity</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">opacity<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
||||
<aside class="tsd-sources">
|
||||
<p>Implementation of <a href="../interfaces/_tiled_itmxlayer_.es.itmxlayer.html">ITmxLayer</a>.<a href="../interfaces/_tiled_itmxlayer_.es.itmxlayer.html#opacity">opacity</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Tiled/Layer.ts#L5">src/Tiled/Layer.ts:5</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
||||
<a name="properties" class="tsd-anchor"></a>
|
||||
<h3>properties</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">properties<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></div>
|
||||
<aside class="tsd-sources">
|
||||
<p>Implementation of <a href="../interfaces/_tiled_itmxlayer_.es.itmxlayer.html">ITmxLayer</a>.<a href="../interfaces/_tiled_itmxlayer_.es.itmxlayer.html#properties">properties</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Tiled/Layer.ts#L8">src/Tiled/Layer.ts:8</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
||||
<a name="tiles" class="tsd-anchor"></a>
|
||||
<h3>tiles</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">tiles<span class="tsd-signature-symbol">:</span> <a href="_tiled_layer_.es.tmxlayertile.html" class="tsd-signature-type">TmxLayerTile</a><span class="tsd-signature-symbol">[]</span></div>
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Tiled/Layer.ts#L22">src/Tiled/Layer.ts:22</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
||||
<a name="visible" class="tsd-anchor"></a>
|
||||
<h3>visible</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">visible<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
|
||||
<aside class="tsd-sources">
|
||||
<p>Implementation of <a href="../interfaces/_tiled_itmxlayer_.es.itmxlayer.html">ITmxLayer</a>.<a href="../interfaces/_tiled_itmxlayer_.es.itmxlayer.html#visible">visible</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Tiled/Layer.ts#L9">src/Tiled/Layer.ts:9</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
||||
<a name="width" class="tsd-anchor"></a>
|
||||
<h3>width</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Tiled/Layer.ts#L17">src/Tiled/Layer.ts:17</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>这一层tile的宽度。对于固定大小的地图,始终与地图宽度相同。</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section class="tsd-panel-group tsd-member-group ">
|
||||
<h2>Accessors</h2>
|
||||
<section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
|
||||
<a name="offset" class="tsd-anchor"></a>
|
||||
<h3>offset</h3>
|
||||
<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> offset<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Tiled/Layer.ts#L10">src/Tiled/Layer.ts:10</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</section>
|
||||
<section class="tsd-panel-group tsd-member-group ">
|
||||
<h2>Methods</h2>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="findboundsrect" class="tsd-anchor"></a>
|
||||
<h3>find<wbr>Bounds<wbr>Rect</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">find<wbr>Bounds<wbr>Rect<span class="tsd-signature-symbol">(</span>startX<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, endX<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, startY<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, checkedIndexes<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_math_rectangle_.es.rectangle.html" class="tsd-signature-type">Rectangle</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Tiled/Layer.ts#L87">src/Tiled/Layer.ts:87</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>在startX和endX之间的tile周围找到最大的边界矩形,从startY开始,尽可能向下</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>startX: <span class="tsd-signature-type">number</span></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>endX: <span class="tsd-signature-type">number</span></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>startY: <span class="tsd-signature-type">number</span></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5><span class="tsd-flag ts-flagOptional">Optional</span> checkedIndexes: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">[]</span></h5>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <a href="_math_rectangle_.es.rectangle.html" class="tsd-signature-type">Rectangle</a></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="getcollisionrectangles" class="tsd-anchor"></a>
|
||||
<h3>get<wbr>Collision<wbr>Rectangles</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">get<wbr>Collision<wbr>Rectangles<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_math_rectangle_.es.rectangle.html" class="tsd-signature-type">Rectangle</a><span class="tsd-signature-symbol">[]</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Tiled/Layer.ts#L49">src/Tiled/Layer.ts:49</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>返回平铺空间中的矩形列表,其中任何非空平铺组合为边界区域</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-returns-title">Returns <a href="_math_rectangle_.es.rectangle.html" class="tsd-signature-type">Rectangle</a><span class="tsd-signature-symbol">[]</span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="gettile" class="tsd-anchor"></a>
|
||||
<h3>get<wbr>Tile</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">get<wbr>Tile<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_tiled_layer_.es.tmxlayertile.html" class="tsd-signature-type">TmxLayerTile</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Tiled/Layer.ts#L42">src/Tiled/Layer.ts:42</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>获取x/y坐标处的TmxLayerTile。注意,这些是平铺坐标而不是世界坐标!</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>x: <span class="tsd-signature-type">number</span></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>y: <span class="tsd-signature-type">number</span></h5>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <a href="_tiled_layer_.es.tmxlayertile.html" class="tsd-signature-type">TmxLayerTile</a></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="gettilewithgid" class="tsd-anchor"></a>
|
||||
<h3>get<wbr>Tile<wbr>With<wbr>Gid</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">get<wbr>Tile<wbr>With<wbr>Gid<span class="tsd-signature-symbol">(</span>gid<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_tiled_layer_.es.tmxlayertile.html" class="tsd-signature-type">TmxLayerTile</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Tiled/Layer.ts#L28">src/Tiled/Layer.ts:28</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>回带有gid的TmxLayerTile。这是一个慢查询,所以要缓存它</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>gid: <span class="tsd-signature-type">number</span></h5>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <a href="_tiled_layer_.es.tmxlayertile.html" class="tsd-signature-type">TmxLayerTile</a></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
||||
<nav class="tsd-navigation primary">
|
||||
<ul>
|
||||
<li class="globals ">
|
||||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class="current tsd-kind-module">
|
||||
<a href="../modules/_tiled_layer_.html">"<wbr>Tiled/<wbr>Layer"</a>
|
||||
<ul>
|
||||
<li class="current tsd-kind-namespace tsd-parent-kind-module">
|
||||
<a href="../modules/_tiled_layer_.es.html">es</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<nav class="tsd-navigation secondary menu-sticky">
|
||||
<ul class="before-current">
|
||||
</ul>
|
||||
<ul class="current">
|
||||
<li class="current tsd-kind-class tsd-parent-kind-namespace">
|
||||
<a href="_tiled_layer_.es.tmxlayer.html" class="tsd-kind-icon">Tmx<wbr>Layer</a>
|
||||
<ul>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_tiled_layer_.es.tmxlayer.html#height" class="tsd-kind-icon">height</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_tiled_layer_.es.tmxlayer.html#map" class="tsd-kind-icon">map</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_tiled_layer_.es.tmxlayer.html#name" class="tsd-kind-icon">name</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_tiled_layer_.es.tmxlayer.html#offsetx" class="tsd-kind-icon">offsetX</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_tiled_layer_.es.tmxlayer.html#offsety" class="tsd-kind-icon">offsetY</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_tiled_layer_.es.tmxlayer.html#opacity" class="tsd-kind-icon">opacity</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_tiled_layer_.es.tmxlayer.html#properties" class="tsd-kind-icon">properties</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_tiled_layer_.es.tmxlayer.html#tiles" class="tsd-kind-icon">tiles</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_tiled_layer_.es.tmxlayer.html#visible" class="tsd-kind-icon">visible</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_tiled_layer_.es.tmxlayer.html#width" class="tsd-kind-icon">width</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-get-signature tsd-parent-kind-class">
|
||||
<a href="_tiled_layer_.es.tmxlayer.html#offset" class="tsd-kind-icon">offset</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_tiled_layer_.es.tmxlayer.html#findboundsrect" class="tsd-kind-icon">find<wbr>Bounds<wbr>Rect</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_tiled_layer_.es.tmxlayer.html#getcollisionrectangles" class="tsd-kind-icon">get<wbr>Collision<wbr>Rectangles</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_tiled_layer_.es.tmxlayer.html#gettile" class="tsd-kind-icon">get<wbr>Tile</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_tiled_layer_.es.tmxlayer.html#gettilewithgid" class="tsd-kind-icon">get<wbr>Tile<wbr>With<wbr>Gid</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="after-current">
|
||||
<li class=" tsd-kind-class tsd-parent-kind-namespace">
|
||||
<a href="_tiled_layer_.es.tmxlayertile.html" class="tsd-kind-icon">Tmx<wbr>Layer<wbr>Tile</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="with-border-bottom">
|
||||
<div class="container">
|
||||
<h2>Legend</h2>
|
||||
<div class="tsd-legend-group">
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li>
|
||||
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<div class="container tsd-generator">
|
||||
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
||||
</div>
|
||||
<div class="overlay"></div>
|
||||
<script src="../assets/js/main.js"></script>
|
||||
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user