查看: 2326|回复: 1

[已经解决] 怎么制作自定义存档contents

[复制链接]
梦石
0
星屑
50
在线时间
210 小时
注册时间
2012-7-19
回帖
207
发表于 2015-4-13 16:12:30 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×

  1.     contents = {}
  2.     contents[:system]        = $game_system
  3.     contents[:timer]         = $game_timer
  4.     contents[:message]       = $game_message
  5.     contents[:switches]      = $game_switches
  6.     contents[:variables]     = $game_variables
  7.     contents[:self_switches] = $game_self_switches
  8.     contents[:actors]        = $game_actors
  9.     contents[:party]         = $game_party
  10.     contents[:troop]         = $game_troop
  11.     contents[:map]           = $game_map
  12.     contents[:player]        = $game_player
  13.     contents
复制代码


我刚才在这个代码下面增加了contents[:XXX]  可是一旦增加了之后就再也不能使用了,每次存档都是play_Buzzer,嘟嘟嘟,怎么改都不行,但是去掉我写的东西就马上能用了,难道contents不允许自定义内容吗?
梦石
0
星屑
166
在线时间
454 小时
注册时间
2015-2-25
回帖
358
发表于 2015-4-13 16:26:58 | 显示全部楼层
你會不會是加在contents下面了..contents要在最後一行

点评

另外 再问一下 contents 能存储位图对象吗?就是Bitmap类  发表于 2015-4-15 02:18
不是 是我定义了一个method 但是忘了传递参数 结果是DataManager 的contents增加了内容 而不是里面的contents  发表于 2015-4-13 17:08

评分

参与人数 1星屑 +150 收起 理由
VIPArcher + 150 我很赞同

查看全部评分

回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部