Class: R3EXS::Item

Inherits:
UsableItem show all
Defined in:
lib/R3EXS/RGSS3_R3EXS.rb

Overview

物品类

Instance Attribute Summary

Attributes inherited from BaseItem

#description, #index, #name, #note

Instance Method Summary collapse

Constructor Details

#initialize(item, index, with_note) ⇒ R3EXS::Item

用 RPG::Item 初始化

Parameters:

  • item (RPG::Item)

    待处理的 RPG::Item 对象

  • index (Integer)

    在原始数组中的索引

  • with_note (Boolean)

    是否处理 note 字段



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

def initialize(item, index, with_note)
    super(item, index, with_note)
end

Instance Method Details

#empty?Boolean

判断是否为空

Returns:

  • (Boolean)


968
969
970
# File 'lib/R3EXS/RGSS3_R3EXS.rb', line 968

def empty?
    super
end

#ex_stringsArray<String>

提取所有的字符串

Returns:

  • (Array<String>)


953
954
955
# File 'lib/R3EXS/RGSS3_R3EXS.rb', line 953

def ex_strings
    super
end

#in_strings(hash) ⇒ void

This method returns an undefined value.

将所有的字符串替换为指定的字符串

Parameters:

  • hash (Hash<String, String>)

    字符串翻译表



961
962
963
# File 'lib/R3EXS/RGSS3_R3EXS.rb', line 961

def in_strings(hash)
    super(hash)
end

#inject_to(item) ⇒ void

This method returns an undefined value.

注入到 RPG::Item 对象

Parameters:

  • item (RPG::Item)

    待注入的 RPG::Item 对象



946
947
948
# File 'lib/R3EXS/RGSS3_R3EXS.rb', line 946

def inject_to(item)
    super
end