本文整理汇总了C++中StaticArray::Create方法的典型用法代码示例。如果您正苦于以下问题:C++ StaticArray::Create方法的具体用法?C++ StaticArray::Create怎么用?C++ StaticArray::Create使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StaticArray
的用法示例。
在下文中一共展示了StaticArray::Create方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: init_and_register_game_objects
void init_and_register_game_objects()
{
init_and_register_characters();
init_and_register_hotspots();
init_and_register_regions();
init_and_register_invitems();
init_and_register_dialogs();
init_and_register_guis();
init_and_register_fonts();
play.fade_effect=game.options[OPT_FADETYPE];
our_eip=-21;
for (int ee = 0; ee < MAX_INIT_SPR; ee++) {
ccRegisterManagedObject(&scrObj[ee], &ccDynamicObject);
}
register_audio_script_objects();
ccRegisterManagedObject(&ccDialogOptionsRendering, &ccDialogOptionsRendering);
dialogOptionsRenderingSurface = new ScriptDrawingSurface();
dialogOptionsRenderingSurface->isLinkedBitmapOnly = true;
long dorsHandle = ccRegisterManagedObject(dialogOptionsRenderingSurface, dialogOptionsRenderingSurface);
ccAddObjectReference(dorsHandle);
StaticCharacterArray.Create(&ccDynamicCharacter, sizeof(CharacterInfo), sizeof(CharacterInfo));
StaticObjectArray.Create(&ccDynamicObject, sizeof(ScriptObject), sizeof(ScriptObject));
StaticGUIArray.Create(&ccDynamicGUI, sizeof(ScriptGUI), sizeof(ScriptGUI));
StaticHotspotArray.Create(&ccDynamicHotspot, sizeof(ScriptHotspot), sizeof(ScriptHotspot));
StaticRegionArray.Create(&ccDynamicRegion, sizeof(ScriptRegion), sizeof(ScriptRegion));
StaticInventoryArray.Create(&ccDynamicInv, sizeof(ScriptInvItem), sizeof(ScriptInvItem));
StaticDialogArray.Create(&ccDynamicDialog, sizeof(ScriptDialog), sizeof(ScriptDialog));
ccAddExternalStaticArray("character",&game.chars[0], &StaticCharacterArray);
setup_player_character(game.playercharacter);
if (loaded_game_file_version >= kGameVersion_270) {
ccAddExternalStaticObject("player", &_sc_PlayerCharPtr, &GlobalStaticManager);
}
ccAddExternalStaticArray("object",&scrObj[0], &StaticObjectArray);
ccAddExternalStaticArray("gui",&scrGui[0], &StaticGUIArray);
ccAddExternalStaticArray("hotspot",&scrHotspot[0], &StaticHotspotArray);
ccAddExternalStaticArray("region",&scrRegion[0], &StaticRegionArray);
ccAddExternalStaticArray("inventory",&scrInv[0], &StaticInventoryArray);
ccAddExternalStaticArray("dialog", &scrDialog[0], &StaticDialogArray);
}