felflame 3.0.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -2
- data/.ruby-version +1 -0
- data/CHANGELOG.mdown +47 -27
- data/Gemfile +2 -3
- data/Gemfile.lock +1 -1
- data/README.mdown +116 -81
- data/Rakefile +29 -9
- data/bin/console +3 -3
- data/docs/FelFlame/ComponentManager.html +129 -519
- data/docs/FelFlame/Components.html +22 -120
- data/docs/FelFlame/Entities.html +117 -377
- data/docs/FelFlame/Order.html +251 -0
- data/docs/FelFlame/Scenes.html +68 -66
- data/docs/FelFlame/Stage.html +28 -54
- data/docs/FelFlame/Systems.html +206 -242
- data/docs/FelFlame.html +32 -30
- data/docs/Felflame_.html +2 -2
- data/docs/_index.html +19 -4
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +125 -87
- data/docs/index.html +125 -87
- data/docs/method_list.html +37 -93
- data/docs/top-level-namespace.html +4 -6
- data/felflame.gemspec +21 -21
- data/lib/felflame/component_manager.rb +98 -71
- data/lib/felflame/entity_manager.rb +75 -49
- data/lib/felflame/order.rb +24 -0
- data/lib/felflame/scene_manager.rb +23 -12
- data/lib/felflame/stage_manager.rb +10 -33
- data/lib/felflame/system_manager.rb +92 -47
- data/lib/felflame/version.rb +1 -1
- data/lib/felflame.rb +22 -14
- metadata +32 -29
@@ -0,0 +1,251 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Module: FelFlame::Order
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.26
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
pathId = "FelFlame::Order";
|
19
|
+
relpath = '../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../_index.html">Index (O)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (module)">FelFlame</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Order</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Module: FelFlame::Order
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/felflame.rb<span class="defines">,<br />
|
82
|
+
lib/felflame/order.rb</span>
|
83
|
+
</dd>
|
84
|
+
</dl>
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<h2>Overview</h2><div class="docstring">
|
89
|
+
<div class="discussion">
|
90
|
+
|
91
|
+
<p>Sets the priority of a list of Systems or Scenes for you in the order you pass them to this class.</p>
|
92
|
+
|
93
|
+
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
<div class="tags">
|
97
|
+
|
98
|
+
|
99
|
+
</div>
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<h2>
|
108
|
+
Class Method Summary
|
109
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
110
|
+
</h2>
|
111
|
+
|
112
|
+
<ul class="summary">
|
113
|
+
|
114
|
+
<li class="public ">
|
115
|
+
<span class="summary_signature">
|
116
|
+
|
117
|
+
<a href="#sort-class_method" title="sort (class method)">.<strong>sort</strong>(*sortables) ⇒ Boolean </a>
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
</span>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
<span class="summary_desc"><div class='inline'>
|
132
|
+
<p>Sets the priority of all items passed into this method according to the order they were passed.</p>
|
133
|
+
</div></span>
|
134
|
+
|
135
|
+
</li>
|
136
|
+
|
137
|
+
|
138
|
+
</ul>
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<div id="class_method_details" class="method_details_list">
|
144
|
+
<h2>Class Method Details</h2>
|
145
|
+
|
146
|
+
|
147
|
+
<div class="method_details first">
|
148
|
+
<h3 class="signature first" id="sort-class_method">
|
149
|
+
|
150
|
+
.<strong>sort</strong>(*sortables) ⇒ <tt>Boolean</tt>
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
</h3><div class="docstring">
|
157
|
+
<div class="discussion">
|
158
|
+
|
159
|
+
<p>Sets the priority of all items passed into this method according to the order they were passed. If an array is one of the elements then it will give all of those elements in the array the same priority.</p>
|
160
|
+
|
161
|
+
|
162
|
+
</div>
|
163
|
+
</div>
|
164
|
+
<div class="tags">
|
165
|
+
<p class="tag_title">Parameters:</p>
|
166
|
+
<ul class="param">
|
167
|
+
|
168
|
+
<li>
|
169
|
+
|
170
|
+
<span class='name'>sortables</span>
|
171
|
+
|
172
|
+
|
173
|
+
<span class='type'>(<tt>(<span class='object_link'><a href="Systems.html" title="FelFlame::Systems (class)">Systems</a></span> and Array<<span class='object_link'><a href="Systems.html" title="FelFlame::Systems (class)">Systems</a></span>>) or (<span class='object_link'><a href="Scenes.html" title="FelFlame::Scenes (class)">Scenes</a></span> and Array<<span class='object_link'><a href="Scenes.html" title="FelFlame::Scenes (class)">Scenes</a></span>>)</tt>)</span>
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
</li>
|
178
|
+
|
179
|
+
</ul>
|
180
|
+
|
181
|
+
<p class="tag_title">Returns:</p>
|
182
|
+
<ul class="return">
|
183
|
+
|
184
|
+
<li>
|
185
|
+
|
186
|
+
|
187
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
—
|
192
|
+
<div class='inline'>
|
193
|
+
<p><code>true</code>.</p>
|
194
|
+
</div>
|
195
|
+
|
196
|
+
</li>
|
197
|
+
|
198
|
+
</ul>
|
199
|
+
|
200
|
+
</div><table class="source_code">
|
201
|
+
<tr>
|
202
|
+
<td>
|
203
|
+
<pre class="lines">
|
204
|
+
|
205
|
+
|
206
|
+
11
|
207
|
+
12
|
208
|
+
13
|
209
|
+
14
|
210
|
+
15
|
211
|
+
16
|
212
|
+
17
|
213
|
+
18
|
214
|
+
19
|
215
|
+
20
|
216
|
+
21
|
217
|
+
22</pre>
|
218
|
+
</td>
|
219
|
+
<td>
|
220
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/order.rb', line 11</span>
|
221
|
+
|
222
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_sort'>sort</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_sortables'>sortables</span><span class='rparen'>)</span>
|
223
|
+
<span class='id identifier rubyid_sortables'>sortables</span><span class='period'>.</span><span class='id identifier rubyid_each_with_index'>each_with_index</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_sorted'>sorted</span><span class='comma'>,</span> <span class='id identifier rubyid_index'>index</span><span class='op'>|</span>
|
224
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_sorted'>sorted</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span> <span class='symbol'>:priority</span>
|
225
|
+
<span class='id identifier rubyid_sorted'>sorted</span><span class='period'>.</span><span class='id identifier rubyid_priority'>priority</span> <span class='op'>=</span> <span class='id identifier rubyid_index'>index</span>
|
226
|
+
<span class='kw'>else</span>
|
227
|
+
<span class='id identifier rubyid_sorted'>sorted</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_item'>item</span><span class='op'>|</span>
|
228
|
+
<span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_priority'>priority</span> <span class='op'>=</span> <span class='id identifier rubyid_index'>index</span>
|
229
|
+
<span class='kw'>end</span>
|
230
|
+
<span class='kw'>end</span>
|
231
|
+
<span class='kw'>end</span>
|
232
|
+
<span class='kw'>true</span>
|
233
|
+
<span class='kw'>end</span></pre>
|
234
|
+
</td>
|
235
|
+
</tr>
|
236
|
+
</table>
|
237
|
+
</div>
|
238
|
+
|
239
|
+
</div>
|
240
|
+
|
241
|
+
</div>
|
242
|
+
|
243
|
+
<div id="footer">
|
244
|
+
Generated on Mon Jan 3 08:23:04 2022 by
|
245
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
246
|
+
0.9.26 (ruby-2.7.3).
|
247
|
+
</div>
|
248
|
+
|
249
|
+
</div>
|
250
|
+
</body>
|
251
|
+
</html>
|
data/docs/FelFlame/Scenes.html
CHANGED
@@ -37,7 +37,7 @@
|
|
37
37
|
<div id="menu">
|
38
38
|
|
39
39
|
<a href="../_index.html">Index (S)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (
|
40
|
+
<span class='title'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (module)">FelFlame</a></span></span>
|
41
41
|
»
|
42
42
|
<span class="title">Scenes</span>
|
43
43
|
|
@@ -104,9 +104,7 @@
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
106
106
|
|
107
|
-
<p>Creates and manages Scenes. Scenes are collections of Systems, and execute all the Systems when called upon.</p>
|
108
|
-
|
109
|
-
<p>TODO: Improve Scenes overview</p>
|
107
|
+
<p>Creates and manages Scenes. Scenes are collections of Systems, and execute all the Systems when called upon. Any scenes you create are accessable under the <span class='object_link'><a href="" title="FelFlame::Scenes (class)">Scenes</a></span> namespace as Constants.</p>
|
110
108
|
|
111
109
|
|
112
110
|
</div>
|
@@ -124,7 +122,7 @@
|
|
124
122
|
<li class="public ">
|
125
123
|
<span class="summary_signature">
|
126
124
|
|
127
|
-
<a href="#
|
125
|
+
<a href="#priority-instance_method" title="#priority (instance method)">#<strong>priority</strong> ⇒ Object </a>
|
128
126
|
|
129
127
|
|
130
128
|
|
@@ -133,8 +131,6 @@
|
|
133
131
|
|
134
132
|
|
135
133
|
|
136
|
-
<span class="note title readonly">readonly</span>
|
137
|
-
|
138
134
|
|
139
135
|
|
140
136
|
|
@@ -144,7 +140,7 @@
|
|
144
140
|
|
145
141
|
|
146
142
|
<span class="summary_desc"><div class='inline'>
|
147
|
-
<p>
|
143
|
+
<p>How early this Scene should be executed in a list of Scenes.</p>
|
148
144
|
</div></span>
|
149
145
|
|
150
146
|
</li>
|
@@ -267,7 +263,7 @@
|
|
267
263
|
<li class="public ">
|
268
264
|
<span class="summary_signature">
|
269
265
|
|
270
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(name) ⇒ Scenes </a>
|
266
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(name, priority: 0) ⇒ Scenes </a>
|
271
267
|
|
272
268
|
|
273
269
|
|
@@ -308,7 +304,7 @@
|
|
308
304
|
|
309
305
|
|
310
306
|
<span class="summary_desc"><div class='inline'>
|
311
|
-
<p>Removes any number of
|
307
|
+
<p>Removes any number of Systems from this Scene.</p>
|
312
308
|
</div></span>
|
313
309
|
|
314
310
|
</li>
|
@@ -323,7 +319,7 @@
|
|
323
319
|
<div class="method_details first">
|
324
320
|
<h3 class="signature first" id="initialize-instance_method">
|
325
321
|
|
326
|
-
#<strong>initialize</strong>(name) ⇒ <tt><span class='object_link'><a href="" title="FelFlame::Scenes (class)">Scenes</a></span></tt>
|
322
|
+
#<strong>initialize</strong>(name, priority: 0) ⇒ <tt><span class='object_link'><a href="" title="FelFlame::Scenes (class)">Scenes</a></span></tt>
|
327
323
|
|
328
324
|
|
329
325
|
|
@@ -366,17 +362,17 @@
|
|
366
362
|
<pre class="lines">
|
367
363
|
|
368
364
|
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
365
|
+
22
|
366
|
+
23
|
367
|
+
24
|
368
|
+
25</pre>
|
373
369
|
</td>
|
374
370
|
<td>
|
375
|
-
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line
|
371
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line 22</span>
|
376
372
|
|
377
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
378
|
-
<span class='
|
379
|
-
<span class='
|
373
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='label'>priority:</span> <span class='int'>0</span><span class='rparen'>)</span>
|
374
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_priority'>priority</span> <span class='op'>=</span> <span class='id identifier rubyid_priority'>priority</span>
|
375
|
+
<span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (module)">FelFlame</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="FelFlame::Scenes (class)">Scenes</a></span></span><span class='period'>.</span><span class='id identifier rubyid_const_set'>const_set</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='kw'>self</span><span class='rparen'>)</span>
|
380
376
|
<span class='kw'>end</span></pre>
|
381
377
|
</td>
|
382
378
|
</tr>
|
@@ -389,11 +385,11 @@
|
|
389
385
|
<h2>Instance Attribute Details</h2>
|
390
386
|
|
391
387
|
|
392
|
-
<span id=""></span>
|
388
|
+
<span id="priority=-instance_method"></span>
|
393
389
|
<div class="method_details first">
|
394
|
-
<h3 class="signature first" id="
|
390
|
+
<h3 class="signature first" id="priority-instance_method">
|
395
391
|
|
396
|
-
#<strong>
|
392
|
+
#<strong>priority</strong> ⇒ <tt>Object</tt>
|
397
393
|
|
398
394
|
|
399
395
|
|
@@ -402,7 +398,7 @@
|
|
402
398
|
</h3><div class="docstring">
|
403
399
|
<div class="discussion">
|
404
400
|
|
405
|
-
<p>
|
401
|
+
<p>How early this Scene should be executed in a list of Scenes</p>
|
406
402
|
|
407
403
|
|
408
404
|
</div>
|
@@ -416,15 +412,15 @@
|
|
416
412
|
<pre class="lines">
|
417
413
|
|
418
414
|
|
419
|
-
|
420
|
-
|
421
|
-
|
415
|
+
12
|
416
|
+
13
|
417
|
+
14</pre>
|
422
418
|
</td>
|
423
419
|
<td>
|
424
|
-
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line
|
420
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line 12</span>
|
425
421
|
|
426
|
-
<span class='kw'>def</span> <span class='id identifier
|
427
|
-
<span class='ivar'>@
|
422
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_priority'>priority</span>
|
423
|
+
<span class='ivar'>@priority</span>
|
428
424
|
<span class='kw'>end</span></pre>
|
429
425
|
</td>
|
430
426
|
</tr>
|
@@ -472,12 +468,12 @@
|
|
472
468
|
<pre class="lines">
|
473
469
|
|
474
470
|
|
475
|
-
|
476
|
-
|
477
|
-
|
471
|
+
29
|
472
|
+
30
|
473
|
+
31</pre>
|
478
474
|
</td>
|
479
475
|
<td>
|
480
|
-
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line
|
476
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line 29</span>
|
481
477
|
|
482
478
|
<span class='kw'>def</span> <span class='id identifier rubyid_systems'>systems</span>
|
483
479
|
<span class='ivar'>@systems</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -538,20 +534,24 @@
|
|
538
534
|
<pre class="lines">
|
539
535
|
|
540
536
|
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
537
|
+
42
|
538
|
+
43
|
539
|
+
44
|
540
|
+
45
|
541
|
+
46
|
542
|
+
47
|
543
|
+
48
|
544
|
+
49</pre>
|
547
545
|
</td>
|
548
546
|
<td>
|
549
|
-
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line
|
547
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line 42</span>
|
550
548
|
|
551
549
|
<span class='kw'>def</span> <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_systems_to_add'>systems_to_add</span><span class='rparen'>)</span>
|
552
550
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_systems'>systems</span> <span class='op'>|=</span> <span class='id identifier rubyid_systems_to_add'>systems_to_add</span>
|
553
|
-
<span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_sort_by
|
554
|
-
<span class='
|
551
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_systems'>systems</span> <span class='op'>=</span> <span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_sort_by'>sort_by</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:priority</span><span class='rparen'>)</span>
|
552
|
+
<span class='id identifier rubyid_systems_to_add'>systems_to_add</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_system'>system</span><span class='op'>|</span>
|
553
|
+
<span class='id identifier rubyid_system'>system</span><span class='period'>.</span><span class='id identifier rubyid_scenes'>scenes</span> <span class='op'>|=</span> <span class='lbracket'>[</span><span class='kw'>self</span><span class='rbracket'>]</span>
|
554
|
+
<span class='kw'>end</span>
|
555
555
|
<span class='kw'>true</span>
|
556
556
|
<span class='kw'>end</span></pre>
|
557
557
|
</td>
|
@@ -603,13 +603,13 @@
|
|
603
603
|
<pre class="lines">
|
604
604
|
|
605
605
|
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
606
|
+
35
|
607
|
+
36
|
608
|
+
37
|
609
|
+
38</pre>
|
610
610
|
</td>
|
611
611
|
<td>
|
612
|
-
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line
|
612
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line 35</span>
|
613
613
|
|
614
614
|
<span class='kw'>def</span> <span class='id identifier rubyid_call'>call</span>
|
615
615
|
<span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:call</span><span class='rparen'>)</span>
|
@@ -664,19 +664,25 @@
|
|
664
664
|
<pre class="lines">
|
665
665
|
|
666
666
|
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
667
|
+
60
|
668
|
+
61
|
669
|
+
62
|
670
|
+
63
|
671
|
+
64
|
672
|
+
65
|
673
|
+
66
|
674
|
+
67</pre>
|
672
675
|
</td>
|
673
676
|
<td>
|
674
|
-
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line
|
677
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line 60</span>
|
675
678
|
|
676
679
|
<span class='kw'>def</span> <span class='id identifier rubyid_clear'>clear</span>
|
680
|
+
<span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_system'>system</span><span class='op'>|</span>
|
681
|
+
<span class='id identifier rubyid_system'>system</span><span class='period'>.</span><span class='id identifier rubyid_scenes'>scenes</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span> <span class='kw'>self</span>
|
682
|
+
<span class='kw'>end</span>
|
677
683
|
<span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_clear'>clear</span>
|
678
|
-
<span class='
|
679
|
-
<span class='kw'>true</span>
|
684
|
+
<span class='comment'># FelFlame::Stage.update_systems_list if FelFlame::Stage.scenes.include? self
|
685
|
+
</span> <span class='kw'>true</span>
|
680
686
|
<span class='kw'>end</span></pre>
|
681
687
|
</td>
|
682
688
|
</tr>
|
@@ -695,7 +701,7 @@
|
|
695
701
|
</h3><div class="docstring">
|
696
702
|
<div class="discussion">
|
697
703
|
|
698
|
-
<p>Removes any number of
|
704
|
+
<p>Removes any number of Systems from this Scene</p>
|
699
705
|
|
700
706
|
|
701
707
|
</div>
|
@@ -727,20 +733,16 @@
|
|
727
733
|
<pre class="lines">
|
728
734
|
|
729
735
|
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
47
|
735
|
-
48</pre>
|
736
|
+
53
|
737
|
+
54
|
738
|
+
55
|
739
|
+
56</pre>
|
736
740
|
</td>
|
737
741
|
<td>
|
738
|
-
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line
|
742
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/scene_manager.rb', line 53</span>
|
739
743
|
|
740
744
|
<span class='kw'>def</span> <span class='id identifier rubyid_remove'>remove</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_systems_to_remove'>systems_to_remove</span><span class='rparen'>)</span>
|
741
745
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_systems'>systems</span> <span class='op'>-=</span> <span class='id identifier rubyid_systems_to_remove'>systems_to_remove</span>
|
742
|
-
<span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_sort_by!'>sort_by!</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:priority</span><span class='rparen'>)</span>
|
743
|
-
<span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (class)">FelFlame</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Stage.html" title="FelFlame::Stage (class)">Stage</a></span></span><span class='period'>.</span><span class='id identifier rubyid_update_systems_list'>update_systems_list</span> <span class='kw'>if</span> <span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (class)">FelFlame</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Stage.html" title="FelFlame::Stage (class)">Stage</a></span></span><span class='period'>.</span><span class='id identifier rubyid_scenes'><span class='object_link'><a href="Stage.html#scenes-class_method" title="FelFlame::Stage.scenes (method)">scenes</a></span></span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='kw'>self</span>
|
744
746
|
<span class='kw'>true</span>
|
745
747
|
<span class='kw'>end</span></pre>
|
746
748
|
</td>
|
@@ -753,7 +755,7 @@
|
|
753
755
|
</div>
|
754
756
|
|
755
757
|
<div id="footer">
|
756
|
-
Generated on Mon
|
758
|
+
Generated on Mon Jan 3 08:23:04 2022 by
|
757
759
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
758
760
|
0.9.26 (ruby-2.7.3).
|
759
761
|
</div>
|