Class: R3EXS::Item
- Inherits:
-
UsableItem
- Object
- BaseItem
- UsableItem
- R3EXS::Item
- Defined in:
- lib/R3EXS/RGSS3_R3EXS.rb
Overview
物品类
Instance Attribute Summary
Attributes inherited from BaseItem
#description, #index, #name, #note
Instance Method Summary collapse
-
#empty? ⇒ Boolean
判断是否为空.
-
#ex_glossary ⇒ Array<GlossaryItem>
提取术语表.
-
#ex_strings ⇒ Array<String>
提取所有的字符串.
-
#in_strings(hash) ⇒ void
将所有的字符串替换为指定的字符串.
-
#initialize(item, index, with_note) ⇒ R3EXS::Item
constructor
用 RPG::Item 初始化.
-
#inject_to(item) ⇒ void
注入到 RPG::Item 对象.
Constructor Details
#initialize(item, index, with_note) ⇒ R3EXS::Item
用 RPG::Item 初始化
1015 1016 1017 |
# File 'lib/R3EXS/RGSS3_R3EXS.rb', line 1015 def initialize(item, index, with_note) super(item, index, with_note) end |
Instance Method Details
#empty? ⇒ Boolean
判断是否为空
1056 1057 1058 |
# File 'lib/R3EXS/RGSS3_R3EXS.rb', line 1056 def empty? super end |
#ex_glossary ⇒ Array<GlossaryItem>
提取术语表
1038 1039 1040 1041 1042 |
# File 'lib/R3EXS/RGSS3_R3EXS.rb', line 1038 def ex_glossary glossary = [] glossary << GlossaryItem.new(@name, '物品名称') glossary end |
#ex_strings ⇒ Array<String>
提取所有的字符串
1031 1032 1033 |
# File 'lib/R3EXS/RGSS3_R3EXS.rb', line 1031 def ex_strings super end |
#in_strings(hash) ⇒ void
This method returns an undefined value.
将所有的字符串替换为指定的字符串
1049 1050 1051 |
# File 'lib/R3EXS/RGSS3_R3EXS.rb', line 1049 def in_strings(hash) super(hash) end |
#inject_to(item) ⇒ void
This method returns an undefined value.
注入到 RPG::Item 对象
1024 1025 1026 |
# File 'lib/R3EXS/RGSS3_R3EXS.rb', line 1024 def inject_to(item) super end |