前言
本类目前看到的实例出现在Game_Character中,作为其类变量@move_route存在。本类用于描述移动的路径。
RPG::MoveRoute
module RPG
class MoveRoute
def initialize
@repeat = true
@skippable = false
@list = [RPG::MoveCommand.new]
end
attr_accessor :repeat
attr_accessor :skippable
attr_accessor :list
end
end
RPG::MoveCommand
本类作为移动指令的数据类在RPG::MoveRoute中使用。(这里不知道为啥突然不上色了,很怪- -)
module RPG
class MoveCommand(code = 0, parameters = [])
def initialize
@code = code
@parameters = parameters
end
attr_accessor :code
attr_accessor :parameters
end
end
图片 事件-移动指令与RPG::MoveRoute类属性对应关系
联系 rxdata
无联系。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)