Class: RPG::BaseItem::Feature

Inherits:
Object
  • Object
show all
Defined in:
lib/R3EXS/RGSS3.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code = 0, data_id = 0, value = 0) ⇒ Feature

Returns a new instance of Feature.


933
934
935
936
937
# File 'lib/R3EXS/RGSS3.rb', line 933

def initialize(code = 0, data_id = 0, value = 0)
    @code    = code
    @data_id = data_id
    @value   = value
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.


939
940
941
# File 'lib/R3EXS/RGSS3.rb', line 939

def code
  @code
end

#data_idObject

Returns the value of attribute data_id.


940
941
942
# File 'lib/R3EXS/RGSS3.rb', line 940

def data_id
  @data_id
end

#valueObject

Returns the value of attribute value.


941
942
943
# File 'lib/R3EXS/RGSS3.rb', line 941

def value
  @value
end