赞 | 0 |
VIP | 12 |
好人卡 | 1 |
积分 | 4 |
经验 | 30253 |
最后登录 | 2024-10-20 |
在线时间 | 555 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 418
- 在线时间
- 555 小时
- 注册时间
- 2014-2-9
- 帖子
- 276
|
6楼
楼主 |
发表于 2014-9-8 16:05:14
|
只看该作者
- commonevents = load_data("Data/CommonEvents.rxdata")
- actors = load_data("Data/Actors.rxdata")
- classes = load_data("Data/Classes.rxdata")
- items = load_data("Data/Items.rxdata")
- weapons = load_data("Data/Weapons.rxdata")
- armors = load_data("Data/Armors.rxdata")
- enemies = load_data("Data/Enemies.rxdata")
- classes = load_data("Data/Classes.rxdata")
- troops = load_data("Data/Troops.rxdata")
- for i in commonevents.size...commonevents.size+2000
- commonevents[i] = RPG::CommonEvent.new
- commonevents[i].id = i
- end
- for i in actors.size...actors.size+2000
- actors[i] = RPG::Actor.new
- actors[i].id = i
- end
- for i in classes.size...classes.size+2000
- classes[i] = RPG::Class.new
- classes[i].id = i
- end
- for i in items.size...items.size+2000
- items[i] = RPG::Item.new
- items[i].id = i
- end
- for i in weapons.size...weapons.size+2000
- weapons[i] = RPG::Weapon.new
- weapons[i].id = i
- end
- for i in armors.size...armors.size+2000
- armors[i] = RPG::Armor.new
- armors[i].id = i
- end
- for i in enemies.size...enemies.size+2000
- enemies[i] = RPG::Enemy.new
- enemies[i].id = i
- end
- for i in classes.size...classes.size+2000
- classes[i] = RPG::Class.new
- classes[i].id = i
- end
- for i in troops.size..troops.size+2000
- troops[i] = RPG::Troop.new
- troops[i].id = i
- end
- save_data(commonevents, "Data/CommonEvents.rxdata")
- save_data(actors, "Data/Actors.rxdata")
- save_data(classes, "Data/classes.rxdata")
- save_data(items, "Data/Items.rxdata")
- save_data(weapons, "Data/Weapons.rxdata")
- save_data(armors, "Data/Armors.rxdata")
- save_data(enemies, "Data/Enemies.rxdata")
- save_data(classes, "Data/Classes.rxdata")
- save_data(troops, "Data/Troops.rxdata")
- exit
复制代码 |
|