当前位置: 首页>>代码示例>>C++>>正文


C++ UpdateManager::push_back方法代码示例

本文整理汇总了C++中UpdateManager::push_back方法的典型用法代码示例。如果您正苦于以下问题:C++ UpdateManager::push_back方法的具体用法?C++ UpdateManager::push_back怎么用?C++ UpdateManager::push_back使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UpdateManager的用法示例。


在下文中一共展示了UpdateManager::push_back方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: version0018

void version0018()
{
	UpdateManager updateManager;
	Update* pUpdate:
	int version = 18


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Zone.inf 1374");
	pUpdate->setParam(1,"Data/Info/Zone.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Creature.inf 12254");
	pUpdate->setParam(1,"Data/Info/Creature.inf");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:28,代码来源:info.cpp

示例2: version15

void version15()
{
	UpdateManager updateManager;
	Update* pUpdate;
	int version = 15;


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Updater2.exe 950272");
	pUpdate->setParam(1,"Updater2.exe");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"UpdateClient.inf 94");
	pUpdate->setParam(1,"Data\\Info\\UpdateClient.inf");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:28,代码来源:p21.cpp

示例3: version12

void version12()
{
	UpdateManager updateManager;
	Update* pUpdate;
	int version = 12;


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_APPEND_SPRITE_PACK);
	pUpdate->setParam(0,"New12Effect.aspk 4199002");
	pUpdate->setParam(1,"Data\\Image\\Effect.aspk");
	pUpdate->setParam(2,"New12Effect.aspki 1014");
	pUpdate->setParam(3,"Data\\Image\\Effect.aspki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"DomainExp.inf 11236");
	pUpdate->setParam(1,"Data\\Info\\DomainExp.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"INTExp.inf 1204");
	pUpdate->setParam(1,"Data\\Info\\INTExp.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"STRExp.inf 1204");
	pUpdate->setParam(1,"Data\\Info\\STRExp.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"DEXExp.inf 1204");
	pUpdate->setParam(1,"Data\\Info\\DEXExp.inf");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:54,代码来源:p21.cpp

示例4: version0019

void version0019()
{
	UpdateManager updateManager;
	Update* pUpdate:
	int version = 19


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Progress.spk 3878880");
	pUpdate->setParam(1,"Data/UI/SPK/Progress.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"String.inf 2252");
	pUpdate->setParam(1,"Data/Info/String.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Chat.inf 10659");
	pUpdate->setParam(1,"Data/Info/Chat.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"DarkEden.exe 3874816");
	pUpdate->setParam(1,"DarkEden.exe");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:44,代码来源:info.cpp

示例5: version0013

void version0013()
{
	UpdateManager updateManager;
	Update* pUpdate:
	int version = 13


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"g2.spr 48870");
	pUpdate->setParam(1,"Data/Image/g2.spr");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"g3.spr 47444");
	pUpdate->setParam(1,"Data/Image/g3.spr");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ex3.spr 66564");
	pUpdate->setParam(1,"Data/Image/ex3.spr");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"g1.spr 49802");
	pUpdate->setParam(1,"Data/Image/g1.spr");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:44,代码来源:info.cpp

示例6: version16

void version16()
{

	UpdateManager updateManager;
	Update * pUpdate;
	int version = 16;

	//--------------------------------------------------------------------------------
	// save
	//--------------------------------------------------------------------------------
	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"DarkEden.exe 3796992");
	pUpdate->setParam(1,"DarkEden.exe");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Item.inf 20496");
	pUpdate->setParam(1,"Data\\Info\\Item.inf");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"bamp00.map 238828");
	pUpdate->setParam(1,"Data\\Image\\bamp00.map");
	updateManager.push_back(pUpdate);

	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR,version);
	remove(filename);
	updateManager.save(filename);

}
开发者ID:hillwah,项目名称:darkeden,代码行数:37,代码来源:semiup.cpp

示例7: version13

void version13()
{
	UpdateManager updateManager;
	Update* pUpdate;
	int version = 13;


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"InventoryBackColor.spk 122642");
	pUpdate->setParam(1,"Data\\UI\\spk\\InventoryBackColor.spk");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:20,代码来源:p21.cpp

示例8: version0006

void version0006()
{
	UpdateManager updateManager;
	Update* pUpdate:
	int version = 6


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"itemTile.ifpk 866");
	pUpdate->setParam(1,"Data/Image/itemTile.ifpk");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:20,代码来源:info.cpp

示例9: version0016

void version0016()
{
	UpdateManager updateManager;
	Update* pUpdate:
	int version = 16


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"bamp00.map 238828");
	pUpdate->setParam(1,"Data/Map/bamp00.map");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:20,代码来源:info.cpp

示例10: version8

void version8()
{
	UpdateManager updateManager;
	Update* pUpdate;
	int version = 8;


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Event_Fanfare.wav 746540");
	pUpdate->setParam(1,"Data\\Sound\\Event_Fanfare.wav");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:20,代码来源:p21.cpp

示例11: version15

void version15()
{

	UpdateManager updateManager;
	Update * pUpdate;
	int version = 15;

	//--------------------------------------------------------------------------------
	// save
	//--------------------------------------------------------------------------------
	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ex2.spr 66564");
	pUpdate->setParam(1,"Data\\Image\\ex2.spr");
	updateManager.push_back(pUpdate);

	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR,version);
	remove(filename);
	updateManager.save(filename);

}
开发者ID:hillwah,项目名称:darkeden,代码行数:23,代码来源:semiup.cpp

示例12: version0014

void version0014()
{
	UpdateManager updateManager;
	Update* pUpdate:
	int version = 14


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Exit-01.map 541650");
	pUpdate->setParam(1,"Data/Map/Exit-01.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Skill.inf 4626");
	pUpdate->setParam(1,"Data/Info/Skill.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"gb1.spr 47226");
	pUpdate->setParam(1,"Data/Image/gb1.spr");
	updateManager.push_back(pUpdate);


	// [Error] Not Exist Info. --> NewTile.spk
	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Exit-02.map 699632");
	pUpdate->setParam(1,"Data/Map/Exit-02.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemBroken.afpk 982");
	pUpdate->setParam(1,"Data/Image/ItemBroken.afpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild-B1.map 36636");
	pUpdate->setParam(1,"Data/Map/guild-B1.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_APPEND_SPRITE_PACK);
	pUpdate->setParam(0,"NewImageObject.spk 2133494");
	pUpdate->setParam(1,"Data/Image/ImageObject.spk");
	pUpdate->setParam(2,"NewImageObject.spki 314");
	pUpdate->setParam(3,"Data/Image/ImageObject.spki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_APPEND_SPRITE_PACK);
	pUpdate->setParam(0,"NewImageObject.sspk 5946");
	pUpdate->setParam(1,"Data/Image/ImageObject.sspk");
	pUpdate->setParam(2,"NewImageObject.sspki 314");
	pUpdate->setParam(3,"Data/Image/ImageObject.sspki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"bg00.spr 49234");
	pUpdate->setParam(1,"Data/Image/bg00.spr");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemOption.inf 2684");
	pUpdate->setParam(1,"Data/Info/ItemOption.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemBroken.spk 35130");
	pUpdate->setParam(1,"Data/Image/ItemBroken.spk");
	updateManager.push_back(pUpdate);


//.........这里部分代码省略.........
开发者ID:hillwah,项目名称:darkeden,代码行数:101,代码来源:info.cpp

示例13: version20

void version20()
{
	UpdateManager updateManager;
	Update* pUpdate;
	int version = 20;


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Effect.efpk 123088");
	pUpdate->setParam(1,"Data\\Image\\Effect.efpk");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Creature.inf 27443");
	pUpdate->setParam(1,"Data\\Info\\Creature.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"VD_drained.wav 179244");
	pUpdate->setParam(1,"Data\\Sound\\VD_drained.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"VD_damage.wav 16428");
	pUpdate->setParam(1,"Data\\Sound\\VD_damage.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Help.rpk 10740");
	pUpdate->setParam(1,"Data\\UI\\txt\\Help.rpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"CreatureSprite.inf 1246");
	pUpdate->setParam(1,"Data\\Info\\CreatureSprite.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"VD_die.wav 116780");
	pUpdate->setParam(1,"Data\\Sound\\VD_die.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"UICreature.cfpk 1578");
	pUpdate->setParam(1,"Data\\UI\\frame\\UICreature.cfpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_knight_3F.map 40710");
	pUpdate->setParam(1,"Data\\Map\\guild_knight_3F.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ShopTemplate.inf 1204");
	pUpdate->setParam(1,"Data\\Info\\ShopTemplate.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Slayer_blade_TS.wav 69292");
	pUpdate->setParam(1,"Data\\Sound\\Slayer_blade_TS.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"BF_drain.wav 225580");
	pUpdate->setParam(1,"Data\\Sound\\BF_drain.wav");
	updateManager.push_back(pUpdate);
//.........这里部分代码省略.........
开发者ID:hillwah,项目名称:darkeden,代码行数:101,代码来源:p21.cpp

示例14: version2

void version2()
{
	UpdateManager updateManager;
	Update* pUpdate;
	int version = 2;


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"common_button.spk 22184");
	pUpdate->setParam(1,"Data\\UI\\spk\\common_button.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"AddonShadow.cfpk 1413570");
	pUpdate->setParam(1,"Data\\Image\\AddonShadow.cfpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"MousePointer.spk 16350");
	pUpdate->setParam(1,"Data\\UI\\spk\\MousePointer.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"AssembleMessageBoxCommon.spk 123968");
	pUpdate->setParam(1,"Data\\UI\\spk\\AssembleMessageBoxCommon.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"VampireGameMenu.spk 142870");
	pUpdate->setParam(1,"Data\\UI\\spk\\VampireGameMenu.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"AssembleMessageBox.spk 120510");
	pUpdate->setParam(1,"Data\\UI\\spk\\AssembleMessageBox.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ClientConfig.inf 263");
	pUpdate->setParam(1,"Data\\Info\\ClientConfig.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"AssembleMessageBoxButton.spk 41814");
	pUpdate->setParam(1,"Data\\UI\\spk\\AssembleMessageBoxButton.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"tutorial_heliport.mip 61");
	pUpdate->setParam(1,"Data\\Map\\tutorial_heliport.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Addon.cfpk 1413570");
	pUpdate->setParam(1,"Data\\Image\\Addon.cfpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"tutorial_bokdo.mip 110");
	pUpdate->setParam(1,"Data\\Map\\tutorial_bokdo.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Tutorial_Book.spk 563728");
	pUpdate->setParam(1,"Data\\UI\\spk\\Tutorial_Book.spk");
//.........这里部分代码省略.........
开发者ID:hillwah,项目名称:darkeden,代码行数:101,代码来源:p21.cpp

示例15: version4

void version4()
{
	UpdateManager updateManager;
	Update* pUpdate;
	int version = 4;


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"limbo_dungeon.mip 299");
	pUpdate->setParam(1,"Data\\Map\\limbo_dungeon.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"UI.spk 73662");
	pUpdate->setParam(1,"Data\\Image\\UI.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"UI.spki 14");
	pUpdate->setParam(1,"Data\\Image\\UI.spki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_knight_2F.mip 160");
	pUpdate->setParam(1,"Data\\Map\\guild_knight_2F.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"VampireSkillView.spk 375782");
	pUpdate->setParam(1,"Data\\UI\\spk\\VampireSkillView.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"eslania_dungeon.mip 320");
	pUpdate->setParam(1,"Data\\Map\\eslania_dungeon.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Book.rpk 20349");
	pUpdate->setParam(1,"Data\\UI\\txt\\Book.rpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"TutorialEtc.rpk 3452");
	pUpdate->setParam(1,"Data\\UI\\txt\\TutorialEtc.rpk");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:76,代码来源:p21.cpp


注:本文中的UpdateManager::push_back方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。