Class: RPG::CommonEvent
- Inherits:
-
Object
- Object
- RPG::CommonEvent
- Defined in:
- lib/R3EXS/RGSS3.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#list ⇒ Object
Returns the value of attribute list.
-
#name ⇒ Object
Returns the value of attribute name.
-
#switch_id ⇒ Object
Returns the value of attribute switch_id.
-
#trigger ⇒ Object
Returns the value of attribute trigger.
Instance Method Summary collapse
- #autorun? ⇒ Boolean
-
#initialize ⇒ CommonEvent
constructor
A new instance of CommonEvent.
- #parallel? ⇒ Boolean
Constructor Details
#initialize ⇒ CommonEvent
Returns a new instance of CommonEvent.
1190 1191 1192 1193 1194 1195 1196 |
# File 'lib/R3EXS/RGSS3.rb', line 1190 def initialize @id = 0 @name = '' @trigger = 0 @switch_id = 1 @list = [RPG::EventCommand.new] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
1206 1207 1208 |
# File 'lib/R3EXS/RGSS3.rb', line 1206 def id @id end |
#list ⇒ Object
Returns the value of attribute list.
1210 1211 1212 |
# File 'lib/R3EXS/RGSS3.rb', line 1210 def list @list end |
#name ⇒ Object
Returns the value of attribute name.
1207 1208 1209 |
# File 'lib/R3EXS/RGSS3.rb', line 1207 def name @name end |
#switch_id ⇒ Object
Returns the value of attribute switch_id.
1209 1210 1211 |
# File 'lib/R3EXS/RGSS3.rb', line 1209 def switch_id @switch_id end |
#trigger ⇒ Object
Returns the value of attribute trigger.
1208 1209 1210 |
# File 'lib/R3EXS/RGSS3.rb', line 1208 def trigger @trigger end |
Instance Method Details
#autorun? ⇒ Boolean
1198 1199 1200 |
# File 'lib/R3EXS/RGSS3.rb', line 1198 def autorun? @trigger == 1 end |
#parallel? ⇒ Boolean
1202 1203 1204 |
# File 'lib/R3EXS/RGSS3.rb', line 1202 def parallel? @trigger == 2 end |