Class: RPG::EventCommand

Inherits:
Object
  • Object
show all
Extended by:
RgssDb::JsonableConstructor
Includes:
RgssDb::Jsonable
Defined in:
lib/rgss_db/model/rpg_maker_data/vx/rpg/event_command.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/event_command.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/event_command.rb

Overview

The data class for the Event command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

Constructor Details

#initialize(code = 0, indent = 0, parameters = []) ⇒ EventCommand

Returns a new instance of EventCommand.



11
12
13
14
15
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/event_command.rb', line 11

def initialize(code = 0, indent = 0, parameters = [])
  @code = code
  @indent = indent
  @parameters = parameters
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



17
18
19
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/event_command.rb', line 17

def code
  @code
end

#indentObject

Returns the value of attribute indent.



17
18
19
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/event_command.rb', line 17

def indent
  @indent
end

#parametersObject

Returns the value of attribute parameters.



17
18
19
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/event_command.rb', line 17

def parameters
  @parameters
end