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.
1212 1213 1214 1215 1216 1217 1218 |
# File 'lib/R3EXS/RGSS3.rb', line 1212 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.
1228 1229 1230 |
# File 'lib/R3EXS/RGSS3.rb', line 1228 def id @id end |
#list ⇒ Object
Returns the value of attribute list.
1232 1233 1234 |
# File 'lib/R3EXS/RGSS3.rb', line 1232 def list @list end |
#name ⇒ Object
Returns the value of attribute name.
1229 1230 1231 |
# File 'lib/R3EXS/RGSS3.rb', line 1229 def name @name end |
#switch_id ⇒ Object
Returns the value of attribute switch_id.
1231 1232 1233 |
# File 'lib/R3EXS/RGSS3.rb', line 1231 def switch_id @switch_id end |
#trigger ⇒ Object
Returns the value of attribute trigger.
1230 1231 1232 |
# File 'lib/R3EXS/RGSS3.rb', line 1230 def trigger @trigger end |
Instance Method Details
#autorun? ⇒ Boolean
1220 1221 1222 |
# File 'lib/R3EXS/RGSS3.rb', line 1220 def autorun? @trigger == 1 end |
#parallel? ⇒ Boolean
1224 1225 1226 |
# File 'lib/R3EXS/RGSS3.rb', line 1224 def parallel? @trigger == 2 end |