felflame 1.0.1 → 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 +60 -5
- data/Gemfile +2 -3
- data/Gemfile.lock +4 -4
- data/README.mdown +127 -74
- data/Rakefile +30 -10
- data/bin/console +3 -3
- data/docs/FelFlame/ComponentManager.html +131 -519
- data/docs/FelFlame/Components.html +29 -119
- data/docs/FelFlame/Entities.html +125 -387
- data/docs/FelFlame/Order.html +251 -0
- data/docs/FelFlame/Scenes.html +72 -68
- data/docs/FelFlame/Stage.html +30 -56
- data/docs/FelFlame/Systems.html +208 -244
- data/docs/FelFlame.html +34 -32
- data/docs/Felflame_.html +143 -0
- data/docs/_index.html +24 -4
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +145 -83
- data/docs/file.version.html +74 -0
- data/docs/index.html +145 -83
- data/docs/method_list.html +52 -108
- data/docs/top-level-namespace.html +5 -5
- data/felflame.gemspec +22 -22
- data/lib/felflame/component_manager.rb +99 -71
- data/lib/felflame/entity_manager.rb +84 -59
- 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 +5 -1
- data/lib/felflame.rb +23 -15
- metadata +34 -53
- data/.yardopts +0 -13
- data/codeclimate/env.rb +0 -1
- data/codeclimate/export-coverage.rb +0 -16
- data/codeclimate/test-reporter-latest-linux-amd64 +0 -0
- data/deprecated/components/00_renderable.rb +0 -19
- data/deprecated/components/01_sprite.rb +0 -57
- data/deprecated/components/02_label.rb +0 -32
- data/deprecated/components/03_player_control.rb +0 -26
- data/deprecated/components/04_map.rb +0 -21
- data/deprecated/components/05_interactable.rb +0 -16
- data/deprecated/components/06_collidable.rb +0 -22
- data/deprecated/components/07_battle.rb +0 -4
- data/deprecated/components/07_indoor.rb +0 -4
- data/deprecated/components/07_overworld.rb +0 -16
- data/deprecated/components/debug_singleton.rb +0 -13
- data/deprecated/helpers/00_tileset.rb +0 -56
- data/deprecated/helpers/01_component.rb +0 -74
- data/deprecated/systems/00_update_levels.rb +0 -34
- data/deprecated/systems/10_player.rb +0 -41
- data/deprecated/systems/99_render.rb +0 -37
- data/logos/felflame-logo-text.png +0 -0
- data/logos/felflame-logo-text.svg +0 -172
- data/logos/felflame-logo.png +0 -0
- data/logos/felflame-logo.svg +0 -97
data/docs/FelFlame/Systems.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">Systems</span>
|
43
43
|
|
@@ -85,11 +85,6 @@
|
|
85
85
|
|
86
86
|
|
87
87
|
|
88
|
-
<dl>
|
89
|
-
<dt>Extended by:</dt>
|
90
|
-
<dd>Enumerable</dd>
|
91
|
-
</dl>
|
92
|
-
|
93
88
|
|
94
89
|
|
95
90
|
|
@@ -99,8 +94,8 @@
|
|
99
94
|
|
100
95
|
<dl>
|
101
96
|
<dt>Defined in:</dt>
|
102
|
-
<dd>felflame.rb<span class="defines">,<br />
|
103
|
-
system_manager.rb</span>
|
97
|
+
<dd>lib/felflame.rb<span class="defines">,<br />
|
98
|
+
lib/felflame/system_manager.rb</span>
|
104
99
|
</dd>
|
105
100
|
</dl>
|
106
101
|
|
@@ -109,9 +104,7 @@
|
|
109
104
|
<h2>Overview</h2><div class="docstring">
|
110
105
|
<div class="discussion">
|
111
106
|
|
112
|
-
<p>Creates
|
113
|
-
|
114
|
-
<p>TODO: Improve Systems overview</p>
|
107
|
+
<p>Creates and manages Systems. Systems are the logic of the game and do not contain any data within them. Any systems you create are accessable under the <span class='object_link'><a href="" title="FelFlame::Systems (class)">Systems</a></span> namespace as Constants. You can use array methods directly on this class to access Systems.</p>
|
115
108
|
|
116
109
|
|
117
110
|
</div>
|
@@ -187,7 +180,7 @@
|
|
187
180
|
<li class="public ">
|
188
181
|
<span class="summary_signature">
|
189
182
|
|
190
|
-
<a href="#
|
183
|
+
<a href="#priority-instance_method" title="#priority (instance method)">#<strong>priority</strong> ⇒ Object </a>
|
191
184
|
|
192
185
|
|
193
186
|
|
@@ -196,8 +189,6 @@
|
|
196
189
|
|
197
190
|
|
198
191
|
|
199
|
-
<span class="note title readonly">readonly</span>
|
200
|
-
|
201
192
|
|
202
193
|
|
203
194
|
|
@@ -207,7 +198,7 @@
|
|
207
198
|
|
208
199
|
|
209
200
|
<span class="summary_desc"><div class='inline'>
|
210
|
-
<p>
|
201
|
+
<p>How early this System should be executed in a list of Systems.</p>
|
211
202
|
</div></span>
|
212
203
|
|
213
204
|
</li>
|
@@ -216,7 +207,7 @@
|
|
216
207
|
<li class="public ">
|
217
208
|
<span class="summary_signature">
|
218
209
|
|
219
|
-
<a href="#
|
210
|
+
<a href="#removal_triggers-instance_method" title="#removal_triggers (instance method)">#<strong>removal_triggers</strong> ⇒ Array<Component> </a>
|
220
211
|
|
221
212
|
|
222
213
|
|
@@ -225,6 +216,8 @@
|
|
225
216
|
|
226
217
|
|
227
218
|
|
219
|
+
<span class="note title readonly">readonly</span>
|
220
|
+
|
228
221
|
|
229
222
|
|
230
223
|
|
@@ -234,7 +227,7 @@
|
|
234
227
|
|
235
228
|
|
236
229
|
<span class="summary_desc"><div class='inline'>
|
237
|
-
<p>
|
230
|
+
<p>Stores references to components or their managers that trigger this component when a component or component from that manager is removed from an entity.</p>
|
238
231
|
</div></span>
|
239
232
|
|
240
233
|
</li>
|
@@ -243,7 +236,7 @@
|
|
243
236
|
<li class="public ">
|
244
237
|
<span class="summary_signature">
|
245
238
|
|
246
|
-
<a href="#
|
239
|
+
<a href="#scenes-instance_method" title="#scenes (instance method)">#<strong>scenes</strong> ⇒ Object </a>
|
247
240
|
|
248
241
|
|
249
242
|
|
@@ -252,8 +245,6 @@
|
|
252
245
|
|
253
246
|
|
254
247
|
|
255
|
-
<span class="note title readonly">readonly</span>
|
256
|
-
|
257
248
|
|
258
249
|
|
259
250
|
|
@@ -262,9 +253,7 @@
|
|
262
253
|
|
263
254
|
|
264
255
|
|
265
|
-
<span class="summary_desc"><div class='inline'>
|
266
|
-
<p>Stores references to components or their managers that trigger this component when a component or component from that manager is removed from an entity.</p>
|
267
|
-
</div></span>
|
256
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
268
257
|
|
269
258
|
</li>
|
270
259
|
|
@@ -285,7 +274,7 @@
|
|
285
274
|
<li class="public ">
|
286
275
|
<span class="summary_signature">
|
287
276
|
|
288
|
-
<a href="#
|
277
|
+
<a href="#const_cache-class_method" title="const_cache (class method)">.<strong>const_cache</strong> ⇒ Object </a>
|
289
278
|
|
290
279
|
|
291
280
|
|
@@ -300,7 +289,7 @@
|
|
300
289
|
|
301
290
|
|
302
291
|
<span class="summary_desc"><div class='inline'>
|
303
|
-
<p>
|
292
|
+
<p>Stores the systems in <span class='object_link'><a href="Components.html" title="FelFlame::Components (module)">Components</a></span>.</p>
|
304
293
|
</div></span>
|
305
294
|
|
306
295
|
</li>
|
@@ -488,8 +477,7 @@
|
|
488
477
|
</ul>
|
489
478
|
|
490
479
|
|
491
|
-
|
492
|
-
<div id="constructor_details" class="method_details_list">
|
480
|
+
<div id="constructor_details" class="method_details_list">
|
493
481
|
<h2>Constructor Details</h2>
|
494
482
|
|
495
483
|
<div class="method_details first">
|
@@ -515,8 +503,8 @@
|
|
515
503
|
<p class="tag_title">Examples:</p>
|
516
504
|
|
517
505
|
|
518
|
-
<pre class="example code"><code><span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (
|
519
|
-
<span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (
|
506
|
+
<pre class="example code"><code><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::Systems (class)">Systems</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>PassiveHeal</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>priority:</span> <span class='op'>-</span><span class='int'>2</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
507
|
+
<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="Components.html" title="FelFlame::Components (module)">Components</a></span></span><span class='op'>::</span><span class='const'>Health</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_component'>component</span><span class='op'>|</span>
|
520
508
|
<span class='id identifier rubyid_component'>component</span><span class='period'>.</span><span class='id identifier rubyid_hp'>hp</span> <span class='op'>+=</span> <span class='int'>5</span>
|
521
509
|
<span class='kw'>end</span>
|
522
510
|
<span class='kw'>end</span>
|
@@ -586,21 +574,23 @@
|
|
586
574
|
<pre class="lines">
|
587
575
|
|
588
576
|
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
577
|
+
115
|
578
|
+
116
|
579
|
+
117
|
580
|
+
118
|
581
|
+
119
|
582
|
+
120
|
583
|
+
121</pre>
|
595
584
|
</td>
|
596
585
|
<td>
|
597
|
-
<pre class="code"><span class="info file"># File 'system_manager.rb', line
|
586
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/system_manager.rb', line 115</span>
|
598
587
|
|
599
588
|
<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='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
600
|
-
<span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (
|
601
|
-
<span class='
|
589
|
+
<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::Systems (class)">Systems</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>
|
590
|
+
<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::Systems (class)">Systems</a></span></span><span class='period'>.</span><span class='id identifier rubyid_update_const_cache'>update_const_cache</span>
|
602
591
|
<span class='ivar'>@priority</span> <span class='op'>=</span> <span class='id identifier rubyid_priority'>priority</span>
|
603
592
|
<span class='ivar'>@block</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
593
|
+
<span class='ivar'>@scenes</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
604
594
|
<span class='kw'>end</span></pre>
|
605
595
|
</td>
|
606
596
|
</tr>
|
@@ -653,12 +643,12 @@
|
|
653
643
|
<pre class="lines">
|
654
644
|
|
655
645
|
|
656
|
-
|
657
|
-
|
658
|
-
|
646
|
+
35
|
647
|
+
36
|
648
|
+
37</pre>
|
659
649
|
</td>
|
660
650
|
<td>
|
661
|
-
<pre class="code"><span class="info file"># File 'system_manager.rb', line
|
651
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/system_manager.rb', line 35</span>
|
662
652
|
|
663
653
|
<span class='kw'>def</span> <span class='id identifier rubyid_addition_triggers'>addition_triggers</span>
|
664
654
|
<span class='ivar'>@addition_triggers</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -709,12 +699,12 @@
|
|
709
699
|
<pre class="lines">
|
710
700
|
|
711
701
|
|
712
|
-
|
713
|
-
|
714
|
-
|
702
|
+
52
|
703
|
+
53
|
704
|
+
54</pre>
|
715
705
|
</td>
|
716
706
|
<td>
|
717
|
-
<pre class="code"><span class="info file"># File 'system_manager.rb', line
|
707
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/system_manager.rb', line 52</span>
|
718
708
|
|
719
709
|
<span class='kw'>def</span> <span class='id identifier rubyid_attr_triggers'>attr_triggers</span>
|
720
710
|
<span class='ivar'>@attr_triggers</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
@@ -725,49 +715,6 @@
|
|
725
715
|
</div>
|
726
716
|
|
727
717
|
|
728
|
-
<span id=""></span>
|
729
|
-
<div class="method_details ">
|
730
|
-
<h3 class="signature " id="const_name-instance_method">
|
731
|
-
|
732
|
-
#<strong>const_name</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
</h3><div class="docstring">
|
739
|
-
<div class="discussion">
|
740
|
-
|
741
|
-
<p>The Constant name assigned to this System</p>
|
742
|
-
|
743
|
-
|
744
|
-
</div>
|
745
|
-
</div>
|
746
|
-
<div class="tags">
|
747
|
-
|
748
|
-
|
749
|
-
</div><table class="source_code">
|
750
|
-
<tr>
|
751
|
-
<td>
|
752
|
-
<pre class="lines">
|
753
|
-
|
754
|
-
|
755
|
-
7
|
756
|
-
8
|
757
|
-
9</pre>
|
758
|
-
</td>
|
759
|
-
<td>
|
760
|
-
<pre class="code"><span class="info file"># File 'system_manager.rb', line 7</span>
|
761
|
-
|
762
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_const_name'>const_name</span>
|
763
|
-
<span class='ivar'>@const_name</span>
|
764
|
-
<span class='kw'>end</span></pre>
|
765
|
-
</td>
|
766
|
-
</tr>
|
767
|
-
</table>
|
768
|
-
</div>
|
769
|
-
|
770
|
-
|
771
718
|
<span id="priority=-instance_method"></span>
|
772
719
|
<div class="method_details ">
|
773
720
|
<h3 class="signature " id="priority-instance_method">
|
@@ -795,12 +742,12 @@
|
|
795
742
|
<pre class="lines">
|
796
743
|
|
797
744
|
|
798
|
-
|
799
|
-
|
800
|
-
|
745
|
+
6
|
746
|
+
7
|
747
|
+
8</pre>
|
801
748
|
</td>
|
802
749
|
<td>
|
803
|
-
<pre class="code"><span class="info file"># File 'system_manager.rb', line
|
750
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/system_manager.rb', line 6</span>
|
804
751
|
|
805
752
|
<span class='kw'>def</span> <span class='id identifier rubyid_priority'>priority</span>
|
806
753
|
<span class='ivar'>@priority</span>
|
@@ -851,12 +798,12 @@
|
|
851
798
|
<pre class="lines">
|
852
799
|
|
853
800
|
|
854
|
-
|
855
|
-
|
856
|
-
|
801
|
+
44
|
802
|
+
45
|
803
|
+
46</pre>
|
857
804
|
</td>
|
858
805
|
<td>
|
859
|
-
<pre class="code"><span class="info file"># File 'system_manager.rb', line
|
806
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/system_manager.rb', line 44</span>
|
860
807
|
|
861
808
|
<span class='kw'>def</span> <span class='id identifier rubyid_removal_triggers'>removal_triggers</span>
|
862
809
|
<span class='ivar'>@removal_triggers</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -866,6 +813,38 @@
|
|
866
813
|
</table>
|
867
814
|
</div>
|
868
815
|
|
816
|
+
|
817
|
+
<span id="scenes=-instance_method"></span>
|
818
|
+
<div class="method_details ">
|
819
|
+
<h3 class="signature " id="scenes-instance_method">
|
820
|
+
|
821
|
+
#<strong>scenes</strong> ⇒ <tt>Object</tt>
|
822
|
+
|
823
|
+
|
824
|
+
|
825
|
+
|
826
|
+
|
827
|
+
</h3><table class="source_code">
|
828
|
+
<tr>
|
829
|
+
<td>
|
830
|
+
<pre class="lines">
|
831
|
+
|
832
|
+
|
833
|
+
19
|
834
|
+
20
|
835
|
+
21</pre>
|
836
|
+
</td>
|
837
|
+
<td>
|
838
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/system_manager.rb', line 19</span>
|
839
|
+
|
840
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_scenes'>scenes</span>
|
841
|
+
<span class='ivar'>@scenes</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
842
|
+
<span class='kw'>end</span></pre>
|
843
|
+
</td>
|
844
|
+
</tr>
|
845
|
+
</table>
|
846
|
+
</div>
|
847
|
+
|
869
848
|
</div>
|
870
849
|
|
871
850
|
|
@@ -874,9 +853,9 @@
|
|
874
853
|
|
875
854
|
|
876
855
|
<div class="method_details first">
|
877
|
-
<h3 class="signature first" id="
|
856
|
+
<h3 class="signature first" id="const_cache-class_method">
|
878
857
|
|
879
|
-
.<strong>
|
858
|
+
.<strong>const_cache</strong> ⇒ <tt>Object</tt>
|
880
859
|
|
881
860
|
|
882
861
|
|
@@ -885,26 +864,13 @@
|
|
885
864
|
</h3><div class="docstring">
|
886
865
|
<div class="discussion">
|
887
866
|
|
888
|
-
<p>
|
867
|
+
<p>Stores the systems in <span class='object_link'><a href="Components.html" title="FelFlame::Components (module)">Components</a></span>. This is needed because calling `FelFlame::Components.constants` will not let you iterate over the value of the constants but will instead give you an array of symbols. This caches the convertion of those symbols to the actual value of the constants</p>
|
889
868
|
|
890
869
|
|
891
870
|
</div>
|
892
871
|
</div>
|
893
872
|
<div class="tags">
|
894
873
|
|
895
|
-
<p class="tag_title">Returns:</p>
|
896
|
-
<ul class="return">
|
897
|
-
|
898
|
-
<li>
|
899
|
-
|
900
|
-
|
901
|
-
<span class='type'>(<tt>Enumerator</tt>)</span>
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
</li>
|
906
|
-
|
907
|
-
</ul>
|
908
874
|
|
909
875
|
</div><table class="source_code">
|
910
876
|
<tr>
|
@@ -912,15 +878,15 @@
|
|
912
878
|
<pre class="lines">
|
913
879
|
|
914
880
|
|
915
|
-
|
916
|
-
|
917
|
-
|
881
|
+
63
|
882
|
+
64
|
883
|
+
65</pre>
|
918
884
|
</td>
|
919
885
|
<td>
|
920
|
-
<pre class="code"><span class="info file"># File 'system_manager.rb', line
|
886
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/system_manager.rb', line 63</span>
|
921
887
|
|
922
|
-
<span class='kw'>def</span> <span class='id identifier
|
923
|
-
<span class='
|
888
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_const_cache'>const_cache</span>
|
889
|
+
<span class='ivar'>@const_cache</span> <span class='op'>||</span> <span class='id identifier rubyid_update_const_cache'>update_const_cache</span>
|
924
890
|
<span class='kw'>end</span></pre>
|
925
891
|
</td>
|
926
892
|
</tr>
|
@@ -959,12 +925,12 @@
|
|
959
925
|
<pre class="lines">
|
960
926
|
|
961
927
|
|
962
|
-
|
963
|
-
|
964
|
-
|
928
|
+
124
|
929
|
+
125
|
930
|
+
126</pre>
|
965
931
|
</td>
|
966
932
|
<td>
|
967
|
-
<pre class="code"><span class="info file"># File 'system_manager.rb', line
|
933
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/system_manager.rb', line 124</span>
|
968
934
|
|
969
935
|
<span class='kw'>def</span> <span class='id identifier rubyid_call'>call</span>
|
970
936
|
<span class='ivar'>@block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
|
@@ -998,19 +964,19 @@
|
|
998
964
|
|
999
965
|
|
1000
966
|
<pre class="example code"><code><span class='comment'># To clear all triggers that execute this system when a component is added:
|
1001
|
-
</span><span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (
|
967
|
+
</span><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::Systems (class)">Systems</a></span></span><span class='op'>::</span><span class='const'>ExampleSystem</span><span class='period'>.</span><span class='id identifier rubyid_clear_triggers'>clear_triggers</span> <span class='symbol'>:addition_triggers</span>
|
1002
968
|
<span class='comment'># Same as above but for when a component is removed instead
|
1003
|
-
</span><span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (
|
969
|
+
</span><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::Systems (class)">Systems</a></span></span><span class='op'>::</span><span class='const'>ExampleSystem</span><span class='period'>.</span><span class='id identifier rubyid_clear_triggers'>clear_triggers</span> <span class='symbol'>:removal_triggers</span>
|
1004
970
|
<span class='comment'># Same as above but for when a component has a certain attribute changed
|
1005
|
-
</span><span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (
|
971
|
+
</span><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::Systems (class)">Systems</a></span></span><span class='op'>::</span><span class='const'>ExampleSystem</span><span class='period'>.</span><span class='id identifier rubyid_clear_triggers'>clear_triggers</span> <span class='symbol'>:attr_triggers</span>
|
1006
972
|
|
1007
973
|
<span class='comment'># Clear a trigger from a specific component
|
1008
|
-
</span><span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (
|
974
|
+
</span><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::Systems (class)">Systems</a></span></span><span class='op'>::</span><span class='const'>ExampleSystem</span><span class='period'>.</span><span class='id identifier rubyid_clear_triggers'>clear_triggers</span> <span class='symbol'>:addition_triggers</span><span class='comma'>,</span> <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'>Component</span><span class='op'>::</span><span class='const'>ExampleComponent</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
1009
975
|
<span class='comment'># Clear a trigger from a specific component manager
|
1010
|
-
</span><span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (
|
976
|
+
</span><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::Systems (class)">Systems</a></span></span><span class='op'>::</span><span class='const'>ExampleSystem</span><span class='period'>.</span><span class='id identifier rubyid_clear_triggers'>clear_triggers</span> <span class='symbol'>:addition_triggers</span><span class='comma'>,</span> <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'>Component</span><span class='op'>::</span><span class='const'>ExampleComponent</span>
|
1011
977
|
|
1012
978
|
<span class='comment'># Clear the trigger that executes a system when the ':example_attr' is changes
|
1013
|
-
</span><span class='const'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (
|
979
|
+
</span><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::Systems (class)">Systems</a></span></span><span class='op'>::</span><span class='const'>ExampleSystem</span><span class='period'>.</span><span class='id identifier rubyid_clear_triggers'>clear_triggers</span> <span class='symbol'>:attr_triggers</span><span class='comma'>,</span> <span class='symbol'>:example_attr</span></code></pre>
|
1014
980
|
|
1015
981
|
</div>
|
1016
982
|
<p class="tag_title">Parameters:</p>
|
@@ -1077,52 +1043,6 @@
|
|
1077
1043
|
<pre class="lines">
|
1078
1044
|
|
1079
1045
|
|
1080
|
-
111
|
1081
|
-
112
|
1082
|
-
113
|
1083
|
-
114
|
1084
|
-
115
|
1085
|
-
116
|
1086
|
-
117
|
1087
|
-
118
|
1088
|
-
119
|
1089
|
-
120
|
1090
|
-
121
|
1091
|
-
122
|
1092
|
-
123
|
1093
|
-
124
|
1094
|
-
125
|
1095
|
-
126
|
1096
|
-
127
|
1097
|
-
128
|
1098
|
-
129
|
1099
|
-
130
|
1100
|
-
131
|
1101
|
-
132
|
1102
|
-
133
|
1103
|
-
134
|
1104
|
-
135
|
1105
|
-
136
|
1106
|
-
137
|
1107
|
-
138
|
1108
|
-
139
|
1109
|
-
140
|
1110
|
-
141
|
1111
|
-
142
|
1112
|
-
143
|
1113
|
-
144
|
1114
|
-
145
|
1115
|
-
146
|
1116
|
-
147
|
1117
|
-
148
|
1118
|
-
149
|
1119
|
-
150
|
1120
|
-
151
|
1121
|
-
152
|
1122
|
-
153
|
1123
|
-
154
|
1124
|
-
155
|
1125
|
-
156
|
1126
1046
|
157
|
1127
1047
|
158
|
1128
1048
|
159
|
@@ -1143,22 +1063,67 @@
|
|
1143
1063
|
174
|
1144
1064
|
175
|
1145
1065
|
176
|
1146
|
-
177
|
1066
|
+
177
|
1067
|
+
178
|
1068
|
+
179
|
1069
|
+
180
|
1070
|
+
181
|
1071
|
+
182
|
1072
|
+
183
|
1073
|
+
184
|
1074
|
+
185
|
1075
|
+
186
|
1076
|
+
187
|
1077
|
+
188
|
1078
|
+
189
|
1079
|
+
190
|
1080
|
+
191
|
1081
|
+
192
|
1082
|
+
193
|
1083
|
+
194
|
1084
|
+
195
|
1085
|
+
196
|
1086
|
+
197
|
1087
|
+
198
|
1088
|
+
199
|
1089
|
+
200
|
1090
|
+
201
|
1091
|
+
202
|
1092
|
+
203
|
1093
|
+
204
|
1094
|
+
205
|
1095
|
+
206
|
1096
|
+
207
|
1097
|
+
208
|
1098
|
+
209
|
1099
|
+
210
|
1100
|
+
211
|
1101
|
+
212
|
1102
|
+
213
|
1103
|
+
214
|
1104
|
+
215
|
1105
|
+
216
|
1106
|
+
217
|
1107
|
+
218
|
1108
|
+
219
|
1109
|
+
220
|
1110
|
+
221
|
1111
|
+
222</pre>
|
1147
1112
|
</td>
|
1148
1113
|
<td>
|
1149
|
-
<pre class="code"><span class="info file"># File 'system_manager.rb', line
|
1114
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/system_manager.rb', line 157</span>
|
1150
1115
|
|
1151
1116
|
<span class='kw'>def</span> <span class='id identifier rubyid_clear_triggers'>clear_triggers</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_trigger_types'>trigger_types</span><span class='comma'>,</span> <span class='label'>component_or_manager:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1152
|
-
<span class='id identifier rubyid_trigger_types'>trigger_types</span> <span class='op'>=</span> <span class='
|
1117
|
+
<span class='id identifier rubyid_trigger_types'>trigger_types</span> <span class='op'>=</span> <span class='qsymbols_beg'>%i[</span><span class='tstring_content'>addition_triggers</span><span class='words_sep'> </span><span class='tstring_content'>removal_triggers</span><span class='words_sep'> </span><span class='tstring_content'>attr_triggers</span><span class='tstring_end'>]</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_trigger_types'>trigger_types</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
1153
1118
|
|
1154
1119
|
<span class='kw'>if</span> <span class='id identifier rubyid_trigger_types'>trigger_types</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='symbol'>:attr_triggers</span>
|
1155
|
-
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_trigger_types'>trigger_types</span> <span class='op'>-</span> <span class='
|
1156
|
-
|
1157
|
-
|
1120
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_trigger_types'>trigger_types</span> <span class='op'>-</span> <span class='qsymbols_beg'>%i[</span><span class='tstring_content'>addition_triggers</span><span class='words_sep'>
|
1121
|
+
</span><span class='tstring_content'>removal_triggers</span><span class='words_sep'>
|
1122
|
+
</span><span class='tstring_content'>attr_triggers</span><span class='tstring_end'>]</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
1158
1123
|
|
1159
1124
|
<span class='kw'>if</span> <span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1160
|
-
<span class='comment'>#remove all attrs
|
1161
|
-
</span> <span class='
|
1125
|
+
<span class='comment'># remove all attrs
|
1126
|
+
</span> <span class='id identifier rubyid_attr_triggers'>attr_triggers</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_cmp_or_mgr'>cmp_or_mgr</span><span class='comma'>,</span> <span class='id identifier rubyid_attrs'>attrs</span><span class='op'>|</span>
|
1162
1127
|
<span class='id identifier rubyid_attrs'>attrs</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_attr'>attr</span><span class='op'>|</span>
|
1163
1128
|
<span class='kw'>next</span> <span class='kw'>if</span> <span class='id identifier rubyid_cmp_or_mgr'>cmp_or_mgr</span><span class='period'>.</span><span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_attr'>attr</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1164
1129
|
|
@@ -1167,49 +1132,48 @@
|
|
1167
1132
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_attr_triggers'>attr_triggers</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
1168
1133
|
<span class='kw'>end</span>
|
1169
1134
|
<span class='kw'>else</span>
|
1170
|
-
<span class='comment'>#remove attrs relevant to comp_or_man
|
1171
|
-
</span> <span class='kw'>unless</span> <span class='
|
1172
|
-
<span class='
|
1135
|
+
<span class='comment'># remove attrs relevant to comp_or_man
|
1136
|
+
</span> <span class='kw'>unless</span> <span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1137
|
+
<span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='rbracket'>]</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_attr'>attr</span><span class='op'>|</span>
|
1173
1138
|
<span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='period'>.</span><span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_attr'>attr</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span> <span class='kw'>self</span>
|
1174
1139
|
<span class='kw'>end</span>
|
1175
|
-
<span class='
|
1140
|
+
<span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
1176
1141
|
<span class='kw'>end</span>
|
1177
1142
|
<span class='kw'>end</span>
|
1178
1143
|
|
1179
|
-
<span class='kw'>
|
1144
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1180
1145
|
|
1181
|
-
<span class='
|
1182
|
-
<span class='
|
1183
|
-
|
1184
|
-
|
1185
|
-
<span class='id identifier rubyid_cmp_or_mgr'>cmp_or_mgr</span><span class='period'>.</span><span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_attr'>attr</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span> <span class='kw'>self</span>
|
1186
|
-
<span class='kw'>end</span>
|
1187
|
-
<span class='kw'>end</span>
|
1188
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span> <span class='lparen'>(</span><span class='id identifier rubyid_trigger_types'>trigger_types</span> <span class='op'>-</span> <span class='lbracket'>[</span><span class='symbol'>:addition_triggers</span><span class='comma'>,</span>
|
1189
|
-
<span class='symbol'>:removal_triggers</span><span class='comma'>,</span>
|
1190
|
-
<span class='symbol'>:attr_triggers</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1191
|
-
<span class='kw'>else</span>
|
1192
|
-
<span class='comment'>#remove attr from component_or_manager
|
1193
|
-
</span> <span class='lparen'>(</span><span class='id identifier rubyid_trigger_types'>trigger_types</span> <span class='op'>-</span> <span class='lbracket'>[</span><span class='symbol'>:addition_triggers</span><span class='comma'>,</span> <span class='symbol'>:removal_triggers</span><span class='comma'>,</span> <span class='symbol'>:attr_triggers</span><span class='rbracket'>]</span><span class='rparen'>)</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_attr'>attr</span><span class='op'>|</span>
|
1194
|
-
<span class='kw'>next</span> <span class='kw'>if</span> <span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='period'>.</span><span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_attr'>attr</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1195
|
-
<span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='period'>.</span><span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_attr'>attr</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span> <span class='kw'>self</span>
|
1146
|
+
<span class='lparen'>(</span><span class='id identifier rubyid_trigger_types'>trigger_types</span> <span class='op'>-</span> <span class='qsymbols_beg'>%i[</span><span class='tstring_content'>addition_triggers</span><span class='words_sep'> </span><span class='tstring_content'>removal_triggers</span><span class='words_sep'> </span><span class='tstring_content'>attr_triggers</span><span class='tstring_end'>]</span></span><span class='rparen'>)</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_attr'>attr</span><span class='op'>|</span>
|
1147
|
+
<span class='comment'># remove attr
|
1148
|
+
</span> <span class='id identifier rubyid_attr_triggers'>attr_triggers</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_cmp_or_mgr'>cmp_or_mgr</span><span class='comma'>,</span> <span class='id identifier rubyid__attrs'>_attrs</span><span class='op'>|</span>
|
1149
|
+
<span class='id identifier rubyid_cmp_or_mgr'>cmp_or_mgr</span><span class='period'>.</span><span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_attr'>attr</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span> <span class='kw'>self</span>
|
1196
1150
|
<span class='kw'>end</span>
|
1197
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='rbracket'>]</span> <span class='op'>-=</span> <span class='id identifier rubyid_trigger_types'>trigger_types</span> <span class='kw'>unless</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1198
1151
|
<span class='kw'>end</span>
|
1152
|
+
<span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_trigger_types'>trigger_types</span> <span class='op'>-</span> <span class='qsymbols_beg'>%i[</span><span class='tstring_content'>addition_triggers</span><span class='words_sep'>
|
1153
|
+
</span><span class='tstring_content'>removal_triggers</span><span class='words_sep'>
|
1154
|
+
</span><span class='tstring_content'>attr_triggers</span><span class='tstring_end'>]</span></span><span class='rparen'>)</span>
|
1155
|
+
<span class='kw'>else</span>
|
1156
|
+
<span class='comment'># remove attr from component_or_manager
|
1157
|
+
</span> <span class='lparen'>(</span><span class='id identifier rubyid_trigger_types'>trigger_types</span> <span class='op'>-</span> <span class='qsymbols_beg'>%i[</span><span class='tstring_content'>addition_triggers</span><span class='words_sep'> </span><span class='tstring_content'>removal_triggers</span><span class='words_sep'> </span><span class='tstring_content'>attr_triggers</span><span class='tstring_end'>]</span></span><span class='rparen'>)</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_attr'>attr</span><span class='op'>|</span>
|
1158
|
+
<span class='kw'>next</span> <span class='kw'>if</span> <span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='period'>.</span><span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_attr'>attr</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1159
|
+
|
1160
|
+
<span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='period'>.</span><span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_attr'>attr</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span> <span class='kw'>self</span>
|
1161
|
+
<span class='kw'>end</span>
|
1162
|
+
<span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='rbracket'>]</span> <span class='op'>-=</span> <span class='id identifier rubyid_trigger_types'>trigger_types</span> <span class='kw'>unless</span> <span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1199
1163
|
|
1200
1164
|
<span class='kw'>end</span>
|
1201
1165
|
<span class='kw'>end</span>
|
1202
1166
|
|
1203
|
-
<span class='lparen'>(</span><span class='id identifier rubyid_trigger_types'>trigger_types</span> <span class='op'>&</span> <span class='
|
1167
|
+
<span class='lparen'>(</span><span class='id identifier rubyid_trigger_types'>trigger_types</span> <span class='op'>&</span> <span class='qsymbols_beg'>%i[</span><span class='tstring_content'>removal_triggers</span><span class='words_sep'> </span><span class='tstring_content'>addition_triggers</span><span class='tstring_end'>]</span></span> <span class='op'>-</span> <span class='lbracket'>[</span><span class='symbol'>:attr_triggers</span><span class='rbracket'>]</span><span class='rparen'>)</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_trigger_type'>trigger_type</span><span class='op'>|</span>
|
1204
1168
|
<span class='kw'>if</span> <span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1205
|
-
<span class='comment'>#remove all removal triggers
|
1206
|
-
</span> <span class='
|
1169
|
+
<span class='comment'># remove all removal triggers
|
1170
|
+
</span> <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_trigger_type'>trigger_type</span><span class='rparen'>)</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_trigger'>trigger</span><span class='op'>|</span>
|
1207
1171
|
<span class='id identifier rubyid_trigger'>trigger</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_trigger_type'>trigger_type</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span> <span class='kw'>self</span>
|
1208
1172
|
<span class='kw'>end</span>
|
1209
|
-
<span class='
|
1173
|
+
<span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_trigger_type'>trigger_type</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1210
1174
|
<span class='kw'>else</span>
|
1211
|
-
<span class='comment'>#remove removal trigger relevant to comp/man
|
1212
|
-
</span> <span class='
|
1175
|
+
<span class='comment'># remove removal trigger relevant to comp/man
|
1176
|
+
</span> <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_trigger_type'>trigger_type</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span> <span class='id identifier rubyid_component_or_manager'>component_or_manager</span>
|
1213
1177
|
<span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_trigger_type'>trigger_type</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span> <span class='kw'>self</span>
|
1214
1178
|
<span class='kw'>end</span>
|
1215
1179
|
<span class='kw'>end</span>
|
@@ -1266,12 +1230,12 @@
|
|
1266
1230
|
<pre class="lines">
|
1267
1231
|
|
1268
1232
|
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1233
|
+
130
|
1234
|
+
131
|
1235
|
+
132</pre>
|
1272
1236
|
</td>
|
1273
1237
|
<td>
|
1274
|
-
<pre class="code"><span class="info file"># File 'system_manager.rb', line
|
1238
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/system_manager.rb', line 130</span>
|
1275
1239
|
|
1276
1240
|
<span class='kw'>def</span> <span class='id identifier rubyid_redefine'>redefine</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1277
1241
|
<span class='ivar'>@block</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
@@ -1345,14 +1309,14 @@
|
|
1345
1309
|
<pre class="lines">
|
1346
1310
|
|
1347
1311
|
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
1352
|
-
|
1312
|
+
227
|
1313
|
+
228
|
1314
|
+
229
|
1315
|
+
230
|
1316
|
+
231</pre>
|
1353
1317
|
</td>
|
1354
1318
|
<td>
|
1355
|
-
<pre class="code"><span class="info file"># File 'system_manager.rb', line
|
1319
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/system_manager.rb', line 227</span>
|
1356
1320
|
|
1357
1321
|
<span class='kw'>def</span> <span class='id identifier rubyid_trigger_when_added'>trigger_when_added</span><span class='lparen'>(</span><span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='rparen'>)</span>
|
1358
1322
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_addition_triggers'>addition_triggers</span> <span class='op'>|=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='rbracket'>]</span>
|
@@ -1408,22 +1372,22 @@
|
|
1408
1372
|
<pre class="lines">
|
1409
1373
|
|
1410
1374
|
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1414
|
-
|
1415
|
-
|
1416
|
-
|
1417
|
-
|
1418
|
-
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
|
1375
|
+
244
|
1376
|
+
245
|
1377
|
+
246
|
1378
|
+
247
|
1379
|
+
248
|
1380
|
+
249
|
1381
|
+
250
|
1382
|
+
251
|
1383
|
+
252
|
1384
|
+
253
|
1385
|
+
254
|
1386
|
+
255
|
1387
|
+
256</pre>
|
1424
1388
|
</td>
|
1425
1389
|
<td>
|
1426
|
-
<pre class="code"><span class="info file"># File 'system_manager.rb', line
|
1390
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/system_manager.rb', line 244</span>
|
1427
1391
|
|
1428
1392
|
<span class='kw'>def</span> <span class='id identifier rubyid_trigger_when_is_changed'>trigger_when_is_changed</span><span class='lparen'>(</span><span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='comma'>,</span> <span class='id identifier rubyid_attr'>attr</span><span class='rparen'>)</span>
|
1429
1393
|
<span class='kw'>if</span> <span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='period'>.</span><span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_attr'>attr</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
@@ -1431,10 +1395,10 @@
|
|
1431
1395
|
<span class='kw'>else</span>
|
1432
1396
|
<span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='period'>.</span><span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_attr'>attr</span><span class='rbracket'>]</span> <span class='op'>|=</span> <span class='lbracket'>[</span><span class='kw'>self</span><span class='rbracket'>]</span>
|
1433
1397
|
<span class='kw'>end</span>
|
1434
|
-
<span class='kw'>if</span> <span class='
|
1435
|
-
<span class='
|
1398
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1399
|
+
<span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_attr'>attr</span><span class='rbracket'>]</span>
|
1436
1400
|
<span class='kw'>else</span>
|
1437
|
-
<span class='
|
1401
|
+
<span class='id identifier rubyid_attr_triggers'>attr_triggers</span><span class='lbracket'>[</span><span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='rbracket'>]</span> <span class='op'>|=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_attr'>attr</span><span class='rbracket'>]</span>
|
1438
1402
|
<span class='kw'>end</span>
|
1439
1403
|
<span class='kw'>true</span>
|
1440
1404
|
<span class='kw'>end</span></pre>
|
@@ -1507,14 +1471,14 @@
|
|
1507
1471
|
<pre class="lines">
|
1508
1472
|
|
1509
1473
|
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1474
|
+
236
|
1475
|
+
237
|
1476
|
+
238
|
1477
|
+
239
|
1478
|
+
240</pre>
|
1515
1479
|
</td>
|
1516
1480
|
<td>
|
1517
|
-
<pre class="code"><span class="info file"># File 'system_manager.rb', line
|
1481
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/system_manager.rb', line 236</span>
|
1518
1482
|
|
1519
1483
|
<span class='kw'>def</span> <span class='id identifier rubyid_trigger_when_removed'>trigger_when_removed</span><span class='lparen'>(</span><span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='rparen'>)</span>
|
1520
1484
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_removal_triggers'>removal_triggers</span> <span class='op'>|=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_component_or_manager'>component_or_manager</span><span class='rbracket'>]</span>
|
@@ -1531,7 +1495,7 @@
|
|
1531
1495
|
</div>
|
1532
1496
|
|
1533
1497
|
<div id="footer">
|
1534
|
-
Generated on
|
1498
|
+
Generated on Mon Jan 3 08:23:04 2022 by
|
1535
1499
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1536
1500
|
0.9.26 (ruby-2.7.3).
|
1537
1501
|
</div>
|