设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
楼主: DeathKing
打印 上一主题 下一主题

[RMVA发布] RGSS3小探——更智能的选择窗体

[复制链接]

Lv6.析梦学徒

Fuzzy Ginkgo
Taciturn Knight

梦石
0
星屑
60779
在线时间
1934 小时
注册时间
2010-6-26
帖子
1605

烫烫烫开拓者

1
发表于 2012-1-22 22:21:31 | 显示全部楼层
忧雪の伤 发表于 2012-1-22 12:09
喵,
就是看了 RGSS3 才意识到以前用 eval 简直弱爆了。

ACE里的Interpreter
  1.   #--------------------------------------------------------------------------
  2.   # ● 执行事件指令
  3.   #--------------------------------------------------------------------------
  4.   def execute_command
  5.     command = @list[@index]
  6.     @params = command.parameters
  7.     @indent = command.indent
  8.     method_name = "command_#{command.code}"
  9.     send(method_name) if respond_to?(method_name)
  10.   end
复制代码
喵~send(method_name) if respond_to?(method_name)
我的言论只代表我个人的观点,不代表雇主及/或任何第三方的立场。
Opinions expressed are solely my own and do not express the views or opinions of my employer and/or any third parties.
捐赠 | GitHub
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-9-21 06:21

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表