2634 lines
97 KiB
C++
2634 lines
97 KiB
C++
#include "pch.h"
|
|
#include "Camera_Debug.h"
|
|
#include "Client_Struct.h"
|
|
#include "GameInstance.h"
|
|
#include "Light_Main.h"
|
|
#include "Loader.h"
|
|
#include "MainApp.h"
|
|
#include "Model.h"
|
|
|
|
#include "Broom.h"
|
|
#include "Camera_Gaze.h"
|
|
#include "CamPosition_Arm.h"
|
|
#include "CamPosition_Shoulder.h"
|
|
#include "CamPosition_Socket.h"
|
|
#include "CamPosition_Target.h"
|
|
#include "SkyBox.h"
|
|
#include "Troll_Weapon.h"
|
|
#include "Troll_Rock.h"
|
|
#include "Goblin_Dagger.h"
|
|
#include "Wand.h"
|
|
#include "Item_Potion.h"
|
|
#include "RaceRing.h"
|
|
#include "Goblin_BattleAxe.h"
|
|
#include "BroomRaceManager.h"
|
|
|
|
#pragma region ACTOR
|
|
|
|
#include "Player.h"
|
|
#include "Goblin.h"
|
|
#include "Goblin_Mage.h"
|
|
#include "Goblin_Spector.h"
|
|
#include "Troll.h"
|
|
#include "NPC_Ollivander.h"
|
|
#include "BroomRacerAI.h"
|
|
|
|
#pragma endregion
|
|
|
|
|
|
#pragma region UI
|
|
|
|
#include "UI_Manager.h"
|
|
|
|
#include "Damage_Font.h"
|
|
|
|
#include "Logo.h"
|
|
#include "Logo_Text.h"
|
|
#include "Logo_Glow.h"
|
|
|
|
#include "Mouse_Cursor.h"
|
|
#include "CameraLockOn.h"
|
|
|
|
#include "Loding_Panel.h"
|
|
|
|
#include "GamePlay_Canvas.h"
|
|
|
|
#include "Mission_Panel.h"
|
|
//#include "MissionBanner_Border.h"
|
|
//#include "MissionBanner_Key.h"
|
|
//#include "Mission_Icon.h"
|
|
//#include "Mouse_Cursor.h"
|
|
#include "MiniMap_TrimBorder.h"
|
|
|
|
#include "MiniMap_Panel.h"
|
|
#include "NoMountIcon.h"
|
|
|
|
#include "Loading_Panel.h"
|
|
#include "LoadingWidget_Flame.h"
|
|
|
|
#include "Action_Panel.h"
|
|
#include "Spell_Slot.h"
|
|
#include "Spell_Overlay.h"
|
|
#include "Slot_Number.h"
|
|
#include "HpBarBG.h"
|
|
#include "Potion.h"
|
|
#include "Magic_Meter.h"
|
|
#include "Magic_Icon.h"
|
|
#include "Spell_UI.h"
|
|
#include "Magic_Item.h"
|
|
|
|
#include "Enemy_Panel.h"
|
|
#include "Enemy_HpBar.h"
|
|
#include "Enemy_Info.h"
|
|
#include "Boss_HpBar.h"
|
|
#include "Enemy_Detection.h"
|
|
|
|
#include "Spell_Canvas.h"
|
|
#include "Spell_Panel.h"
|
|
#include "Current_Spell_Slot.h"
|
|
#include "Spell_List.h"
|
|
#include "Eessential_Spell_Slot.h"
|
|
#include "Eessential_Spell.h"
|
|
#include "Spell_List_Image.h"
|
|
#include "Spell_State.h"
|
|
#include "Spell_Hover.h"
|
|
#include "Spell_Hover_Effect.h"
|
|
#include "Spell_Preview.h"
|
|
#include "Spell_Header.h"
|
|
#include "Spell_Header_Line.h"
|
|
#include "Spell_Vidio_Border.h"
|
|
#include "Spell_Anim.h"
|
|
#include "Current_Slot_Number.h"
|
|
#include "Spell_Drag.h"
|
|
|
|
#include "Quest_Canvas.h"
|
|
#include "Quest_Panel.h"
|
|
#include "Quest_Border.h"
|
|
#include "Quest_Header.h"
|
|
#include "Quest_HeaderLine.h"
|
|
#include "Quest_List.h"
|
|
#include "Quest_Info.h"
|
|
#include "Quest_Info_Header.h"
|
|
#include "Quest_Info_Line.h"
|
|
#include "Quest_Entry_Line.h"
|
|
|
|
#pragma endregion
|
|
|
|
#pragma region PHYSX
|
|
|
|
#include "Dummy_PhysXWall.h"
|
|
#include "Dummy_PhysXPlayable.h"
|
|
#include "PhysXEffectHitBox.h"
|
|
|
|
#pragma endregion
|
|
|
|
#pragma region EFFECT
|
|
|
|
#include "EffectParts.h"
|
|
#include "Bombard.h"
|
|
#include "Decendo.h"
|
|
#include "NomalJap.h"
|
|
#include "Protego.h"
|
|
#include "Revelio.h"
|
|
#include "NomalJapSide.h"
|
|
#include "DecendoSide.h"
|
|
#include "BombardSide.h"
|
|
#include "LeviosoSide.h"
|
|
|
|
#include "TrailObject.h"
|
|
#include "Instance_Model.h"
|
|
#include "Trail.h"
|
|
#include "EffectPool.h"
|
|
#include "Levioso.h"
|
|
#include "Lumos.h"
|
|
#include "Accio.h"
|
|
#include "Goblin_Teleport.h"
|
|
|
|
|
|
#include "TrollSwing.h"
|
|
#include "Troll_Nomal_Smoke.h"
|
|
#include "Troll_Rush_Hit.h"
|
|
|
|
#include "WandEnd.h"
|
|
#include "Goblin_Protego.h"
|
|
#include "Goblin_Attack.h"
|
|
|
|
#include "Mage_Down_Attack.h"
|
|
#include "Mage_Nomal_Attack.h"
|
|
#include "MageSide.h"
|
|
|
|
#include "StunEffect.h"
|
|
#include "Box_Splesh.h"
|
|
#include "Chair_Splesh.h"
|
|
#include "Barral_Splesh.h"
|
|
#include "Screen_Wind.h"
|
|
|
|
#pragma endregion
|
|
|
|
#pragma region MAP
|
|
|
|
#include "Terrain.h"
|
|
#include "VIBuffer_Terrain.h"
|
|
#include "VIBuffer_Model_Instance.h"
|
|
#include "BuildingContainer.h"
|
|
#include "StreetContainer.h"
|
|
#include "MapObject_Render.h"
|
|
#include "MapObject_Collision.h"
|
|
#include "InstancedProp.h"
|
|
#include "MapElement_Light.h"
|
|
#include "MapElement_Interactable.h"
|
|
#include "MapElement_Lake.h"
|
|
#include "MapElement_Door.h"
|
|
#include "Land.h"
|
|
#include "Unified.h"
|
|
#include "MapElement_Chest.h"
|
|
#include "MapElement_Chest_Lid.h"
|
|
|
|
#pragma endregion
|
|
|
|
|
|
CLoader::CLoader(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
|
: m_pDevice{ pDevice }
|
|
, m_pContext{ pContext }
|
|
, m_pGameInstance{ CGameInstance::GetInstance() }
|
|
{
|
|
SAFE_ADDREF(m_pGameInstance);
|
|
SAFE_ADDREF(m_pDevice);
|
|
SAFE_ADDREF(m_pContext);
|
|
}
|
|
|
|
unsigned int APIENTRY LoadingMain(void* pArg)
|
|
{
|
|
CLoader* pLoader = static_cast<CLoader*>(pArg);
|
|
|
|
if (FAILED(pLoader->Loading())) {
|
|
assert(false);
|
|
int a = 0;
|
|
return 1;
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
HRESULT CLoader::Initialize(LEVEL eNextLevelID)
|
|
{
|
|
m_eNextLevelID = eNextLevelID;
|
|
|
|
m_pGameInstance->EnqueueJob(&LoadingMain, this);
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
HRESULT CLoader::Loading()
|
|
{
|
|
|
|
if (FAILED(CoInitializeEx(nullptr, 0))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
HRESULT hr = {};
|
|
|
|
switch (m_eNextLevelID)
|
|
{
|
|
case LEVEL::LOGO:
|
|
hr = Loading_For_Logo();
|
|
break;
|
|
case LEVEL::GAMEPLAY:
|
|
hr = Loading_For_GamePlay();
|
|
break;
|
|
case LEVEL::FIELD:
|
|
hr = Loading_For_Field();
|
|
break;
|
|
case LEVEL::RESTART:
|
|
hr = Loading_For_Restart();
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
|
|
CoUninitialize();
|
|
|
|
if (FAILED(hr)){
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
void CLoader::Output()
|
|
{
|
|
SetWindowText(g_hWnd, m_strMessage.c_str());
|
|
}
|
|
|
|
HRESULT CLoader::Loading_For_Logo()
|
|
{
|
|
m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다.");
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Dororong"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/DororongDoro.png"), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/Logo", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
|
{
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
m_strMessage = TEXT("사운드를(을) 로딩 중 입니다.");
|
|
|
|
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
|
|
|
|
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
|
|
|
|
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CCamera_Debug>(g_iStaticLevel, CCamera_Debug::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CLight_Main>(g_iStaticLevel, CLight_Main::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CLogo>(g_iStaticLevel, CLogo::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CLogo_Text>(g_iStaticLevel, CLogo_Text::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CLogo_Glow>(g_iStaticLevel, CLogo_Glow::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
m_strMessage = TEXT("로딩이 완료되었습니다..");
|
|
|
|
m_isFinished = true;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
HRESULT CLoader::Loading_For_GamePlay()
|
|
{
|
|
m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다.");
|
|
|
|
_bool isLoad_Background = { true };
|
|
|
|
#ifdef gimch
|
|
isLoad_Background = true;
|
|
#endif // gimch
|
|
#ifdef Bin
|
|
isLoad_Background = false;
|
|
#endif //
|
|
#ifdef 진우
|
|
isLoad_Background = true;
|
|
#endif //
|
|
#ifdef 기무리
|
|
isLoad_Background = true;
|
|
#endif //
|
|
#ifdef 인혁
|
|
isLoad_Background = true;
|
|
#endif //
|
|
|
|
#pragma region MAP_MODELS
|
|
vector<future<vector<FOLDER_LOAD*>*>> jobMapModels;
|
|
{
|
|
{ /* Terrain */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Terrain",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Terrain",
|
|
".bin", false
|
|
));
|
|
}
|
|
|
|
{ /* Ollivanders*/
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
|
|
{ /* Gatehouse*/
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Gatehouse/Meshes",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* Hogwart LOD */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/",
|
|
".bin", false
|
|
));
|
|
}
|
|
|
|
if (true == isLoad_Background)
|
|
{
|
|
{ /* TScrolls */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Collisions",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* 3BroomStick*/
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Collision",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes/3Broom_Kit",
|
|
".bin", false
|
|
));
|
|
}
|
|
|
|
|
|
{ /* BLDG_QuidditchShop */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* BLDG_HogsheadInn */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* BLDG_Honeydukes */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* BLDG_OwlPost */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* BLDG_TeaShop */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* BLDG_Zonkos */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* BLDG_DB_GR */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* BLDG_Potions */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Collisions",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* BLDG_Salon */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* Hengist_Tree */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Vegetation/Hengist_Tree",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Vegetation",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* GEN A*/
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* GEN B*/
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* GEN C*/
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* GEN E*/
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* GEN F*/
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* GEN G*/
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* GEN H*/
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
{ /* GEN J*/
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Meshes",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Collision",
|
|
".bin", false
|
|
));
|
|
}
|
|
{/* Light Objects */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/LightPosts",
|
|
".bin", false
|
|
));
|
|
}
|
|
{/* Doors */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Doors",
|
|
".bin", false
|
|
));
|
|
}
|
|
{/* Step and Stair */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/GroundSurfaces",
|
|
".bin", false
|
|
));
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/GroundSurfaces",
|
|
".bin", false
|
|
));
|
|
}
|
|
{/* Barrel */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Meshes",
|
|
".bin", false
|
|
));
|
|
/* Box */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/MiscProps",
|
|
".bin", false
|
|
));
|
|
/* TeaShop Table */
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Tables",
|
|
".bin", false
|
|
));
|
|
/* TeaShop Chair*/
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Chairs",
|
|
".bin", false
|
|
));
|
|
/* Object Interactables (Chest)*/
|
|
jobMapModels.emplace_back(Deferred_FolderLoad(
|
|
"../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Interactables",
|
|
".bin", false
|
|
));
|
|
}
|
|
}
|
|
}
|
|
|
|
#pragma endregion
|
|
|
|
|
|
#pragma region UI
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/Keyboard", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
|
{
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/Action", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
|
{
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/Mission", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
|
{
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/SpellWidget", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
|
{
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/Enemy", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
|
{
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Mission_Icon"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Mission/Mission_Icon_%d.png"), 2)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("ActiveMission_Icon"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Mission/ActiveMission_Icon_%d.png"), 2)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Megic_Metar"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Action/Megic_Meter%d.png"), 3)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Screen_BG"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/LoadingScreen/UI_T_Loding_Screen_BG.png"), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LoadingScreen"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_%d.png"), 2)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/MiniMap", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
|
{
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/Loading", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
|
{
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/Spells", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
|
{
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/Spells/SpellMeters", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
|
{
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/Potions", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
|
{
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/GadgetWheel", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
|
{
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/GadgetWheel", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
|
{
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/Cursor", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
|
{
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/Quest", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
|
{
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Item"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/GadgetWheel/Item%d.png"), 8)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Accio"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Accio\\Accio%d.png"), 151))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
#pragma region Global_SRV
|
|
{
|
|
m_pGameInstance->Load_GlobalSRV(TEXT("GLOBAL_DISOLVE_NOISE_05"), "../Bin/Resources/Textures/Effect/Noises/VFX_T_Noise05_D.png");
|
|
m_pGameInstance->Load_GlobalSRV(TEXT("GLOBAL_DISOLVE_BURN_VERTICAL"), "../Bin/Resources/Textures/Effect/Diffuse/drp_fire_Line_Vertical.png");
|
|
}
|
|
#pragma endregion
|
|
#if 진우
|
|
#else
|
|
#pragma region UI_ANI
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Altering_Spell"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Altering_Spell\\Altering_Spell%d.png"), 349))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Alohomora"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Alohomora\\Alohomora%d.png"), 394))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Ancient_Magic"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic\\Ancient_Magic%d.png"), 152))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Ancient_Magic_Throw"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic_Throw\\Ancient_Magic_Throw%d.png"), 89))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Arresto_Momentum"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Arresto_Momentum\\Arresto_Momentum%d.png"), 120))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Avada_Kedavra"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Avada_Kedavra\\Avada_Kedavra%d.png"), 208))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Basic_Cast"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Basic_Cast\\Basic_Cast%d.png"), 308))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Beast_Feed"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Feed\\Beast_Feed%d.png"), 378))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Beast_Petting_Brush"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Petting_Brush\\Beast_Petting_Brush%d.png"), 327))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Bombarda"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Bombarda\\Bombarda%d.png"), 262))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Confringo"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Confringo\\Confringo%d.png"), 157))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Conjuring_Spell"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Conjuring_Spell\\Conjuring_Spell%d.png"), 115))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Descendo"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Descendo\\Descendo%d.png"), 155))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Depulso"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Depulso\\Depulso%d.png"), 152))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Diffindo"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Diffindo\\Diffindo%d.png"), 150))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Disillusionment"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Disillusionment\\Disillusionment%d.png"), 260))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Evanesco"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Evanesco\\Evanesco%d.png"), 136))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Expelliarmus"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Expelliarmus\\Expelliarmus%d.png"), 146))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Flipendo"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Flipendo\\Flipendo%d.png"), 188))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Glacius"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Glacius\\Glacius%d.png"), 156))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Imperio"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Imperio\\Imperio%d.png"), 462))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Incendio"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Incendio\\Incendio%d.png"), 213))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Levioso"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Levioso\\Levioso%d.png"), 180))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lumos"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Lumos\\Lumos%d.png"), 365))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Nab_Sack"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Nab_Sack\\Nab_Sack%d.png"), 235))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Petrificus_Totalus"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Petrificus_Totalus\\Petrificus_Totalus%d.png"), 275))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Protego"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Protego\\Protego%d.png"), 285))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Reparo"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Reparo\\Reparo%d.png"), 385))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Revelio"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Revelio\\Revelio%d.png"), 227))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Stupefy"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Stupefy\\Stupefy%d.png"), 222))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Transformation"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Transformation\\Transformation%d.png"), 146))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Wingardium_Leviosa"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Wingardium_Leviosa\\Wingardium_Leviosa%d.png"), 273))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Crucio"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Crucio\\Crucio%d.png"), 216))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
#pragma endregion
|
|
#endif
|
|
|
|
#pragma region TERRAIN_TEXTURE
|
|
/* Terrain_Diffuse */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Terrain_Diffuse"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Terrain/Terrain_D_%d.dds"), 4)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* Terrain_Normal */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Terrain_Normal"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Terrain/Terrain_N_%d.dds"), 4)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* Terrain_MRO */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Terrain_MRO"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Terrain/Terrain_MRO_%d.dds"), 4)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* HogsmeadeAlphaMap */
|
|
if(FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Hogsmeade_AlphaMap"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Terrain/Hogsmeade_AlphaMap.dds"), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* HogwartAlphaMap */
|
|
if(FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Hogwart_AlphaMap"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Terrain/Hogwart_AlphaMap.dds"), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
/* For.Prototype_Component_LightPost_Emissive */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LightPost_Emissive"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
|
|
TEXT("C:/MeshTable/Game/Environment/Hogsmeade/Common/Textures/LightPosts/T_HM_LampPost_Glass_E.png"), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
/* For.Prototype_Component_LightPost_Mask */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LightPost_Mask"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
|
|
TEXT("C:/MeshTable/Game/Environment/Hogsmeade/Common/Textures/LightPosts/T_HM_LampPost_Glass_D.png"), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
/* For.Prototype_Component_LightPost_Base */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LightPost_Base"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
|
|
TEXT("C:/MeshTable/Game/Environment/Hogsmeade/Common/Textures/LightPosts/T_HM_LampPost_Glass_Dark_D.png"), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
#pragma endregion
|
|
|
|
#pragma region LAKE_TEXTURE
|
|
/* For.Prototype_Component_Water_Noise_D */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Noises_D"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
|
|
TEXT("../Bin/Resources/Models/Lake/T_Noises_D.dds"), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_Component_T_Water_Normal_Large_N */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Water_Normal_Large_N"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
|
|
TEXT("../Bin/Resources/Models/Lake/T_Water_Normal_Large_N.dds"), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_Component_T_Water_Normal_Subtle_N */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Water_Normal_Subtle_N"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
|
|
TEXT("../Bin/Resources/Models/Lake/T_Water_Normal_Subtle_N.dds"), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_Component_T_Caustics_D */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Caustics_D"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
|
|
TEXT("../Bin/Resources/Models/Lake/T_Caustics_D.dds"), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_Component_T_Water_N */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Water_N"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
|
|
TEXT("../Bin/Resources/Models/Lake/T_Water_N.dds"), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* Lake_Cube_D */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lake_Cube_D"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Models/Lake/SkyCube.dds"), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
/* Lake_Cube_D */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lake_Refraction"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Models/Lake/T_MudSmallRocks_A_D.dds"), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
#pragma endregion
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Levioso_Noise"),
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics02_Color_D.png"), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
#pragma region EFFECT
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/Effect/Trails", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::GAMEPLAY), wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/Effect/Noises", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/Effect/Diffuse", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/Effect/Flipbooks", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Textures/Effect/Gradients", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
|
|
|
_string strFilePath = pFilePath;
|
|
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
|
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
#pragma endregion
|
|
|
|
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIEDITOR,
|
|
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"),
|
|
VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIINSTANCE,
|
|
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"),
|
|
VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_MODEL,
|
|
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"),
|
|
VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_PROP_MODEL,
|
|
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"),
|
|
VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements)))) {
|
|
return E_FAIL;
|
|
}
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_VTXPOS,
|
|
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"),
|
|
VTXPOS::Elements, VTXPOS::iNumElements)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NPC_PBR_ANIM,
|
|
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"),
|
|
VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_MESH,
|
|
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"),
|
|
VTXMESH::Elements, VTXMESH::iNumElements)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_ANIMMESH,
|
|
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl"),
|
|
VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_POSTEX,
|
|
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"),
|
|
VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NORTEX,
|
|
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl"),
|
|
VTXNORTEX::Elements, VTXNORTEX::iNumElements)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
|
|
|
|
CVIBuffer_UI_Instance::UI_INSTANCE_DESC SpellSlotUIDesc{};
|
|
|
|
SpellSlotUIDesc.iNum = 4;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_Slot"),
|
|
CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &SpellSlotUIDesc)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
CVIBuffer_UI_Instance::UI_INSTANCE_DESC CurrentSpellSlotUIDesc{};
|
|
|
|
CurrentSpellSlotUIDesc.iNum = 16;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Current_Spell_Slot"),
|
|
CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &CurrentSpellSlotUIDesc)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
CVIBuffer_UI_Instance::UI_INSTANCE_DESC Spell_List{};
|
|
|
|
Spell_List.iNum = 26;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_List"),
|
|
CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Spell_List)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
CVIBuffer_UI_Instance::UI_INSTANCE_DESC Eessential_Spell_Slot{};
|
|
|
|
Eessential_Spell_Slot.iNum = 8;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Eessential_Spell_Slot"),
|
|
CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Eessential_Spell_Slot)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
CVIBuffer_UI_Instance::UI_INSTANCE_DESC Eessential_Spell{};
|
|
|
|
Eessential_Spell.iNum = 8;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Eessential_Spell"),
|
|
CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Eessential_Spell)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
CVIBuffer_UI_Instance::UI_INSTANCE_DESC Spell_List_Image{};
|
|
|
|
Spell_List_Image.iNum = 26;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_List_Image"),
|
|
CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Spell_List_Image)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
CVIBuffer_UI_Instance::UI_INSTANCE_DESC SlotNumberUIDesc{};
|
|
|
|
SlotNumberUIDesc.iNum = 4;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Slot_Number_UI_Instance"),
|
|
CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &SlotNumberUIDesc)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
CVIBuffer_UI_Instance::UI_INSTANCE_DESC Magic_MeterDesc{};
|
|
|
|
Magic_MeterDesc.iNum = 5;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Magic_Meter_UI_Instance"),
|
|
CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Magic_MeterDesc)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
CVIBuffer_UI_Instance::UI_INSTANCE_DESC Spell_Slot_PreviewDesc{};
|
|
|
|
Spell_Slot_PreviewDesc.iNum = 4;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Spell_Slot_Previe_UI_Instance"),
|
|
CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Spell_Slot_PreviewDesc)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
|
|
{ // LIGHT PHYSX DYNAMIC
|
|
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
|
|
{
|
|
Desc.eType = ACTOR::BOX;
|
|
Desc.ePxRigidBodyFlags = { /*PSX::PxRigidBodyFlag::eKINEMATIC*/ };
|
|
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
|
|
Desc.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
|
|
Desc.vMatInfo = { 0.5f, 0.5f, 0.6f };
|
|
Desc.fContactOffset = { 0.05f };
|
|
Desc.vhalfGeometryInfo = { 0.5f, 0.5f, 0.5f };
|
|
Desc.fDensity = 1.f;
|
|
Desc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY());
|
|
Desc.eLockFlag = {};
|
|
Desc.vAutoDamping = { 1.f, 1.f };
|
|
Desc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
|
|
Desc.vLocalTranslation = { 0.f, 0.f, 0.f };
|
|
}
|
|
|
|
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc1{};
|
|
{
|
|
Desc1.eType = ACTOR::BOX;
|
|
Desc1.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
|
|
Desc1.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE };
|
|
Desc1.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
|
|
Desc1.vMatInfo = { 0.5f, 0.5f, 0.6f };
|
|
Desc1.fContactOffset = { 0.05f };
|
|
Desc1.vhalfGeometryInfo = { 1.f, 1.f, 1.f };
|
|
Desc1.fDensity = 1.f;
|
|
Desc1.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY());
|
|
Desc1.eLockFlag = {};
|
|
Desc1.vAutoDamping = { 1.f, 1.f };
|
|
Desc1.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
|
|
Desc1.vLocalTranslation = { 0.f, 0.f, 0.f };
|
|
}
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_HEAVY_WALL"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
|
|
return E_FAIL;
|
|
}
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc1)))) {
|
|
return E_FAIL;
|
|
}
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
Desc.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX_KIN"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
|
|
return E_FAIL;
|
|
}
|
|
}
|
|
{ // DOOR PHYSX
|
|
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
|
|
{
|
|
Desc.eType = ACTOR::BOX;
|
|
Desc.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
|
|
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
|
|
Desc.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
|
|
Desc.vMatInfo = { 0.5f, 0.5f, 0.6f };
|
|
Desc.fContactOffset = { 0.05f };
|
|
Desc.vhalfGeometryInfo = { 0.35f, 0.65f, 0.15f };
|
|
Desc.fDensity = 1.f;
|
|
PSX::PxTransform pxPivotTransform = PSX::PxTransform(PSX::PxVec3(0.f, 1.f, 0.f));
|
|
Desc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
|
|
Desc.vLocalTranslation = { 0.5f, 0.f, 0.f };
|
|
|
|
Desc.pxMassCenter = pxPivotTransform;
|
|
Desc.eLockFlag = {
|
|
PSX::PxRigidDynamicLockFlag::eLOCK_ANGULAR_X |
|
|
//PSX::PxRigidDynamicLockFlag::eLOCK_ANGULAR_Y |
|
|
PSX::PxRigidDynamicLockFlag::eLOCK_ANGULAR_Z |
|
|
PSX::PxRigidDynamicLockFlag::eLOCK_LINEAR_Y |
|
|
PSX::PxRigidDynamicLockFlag::eLOCK_LINEAR_X |
|
|
PSX::PxRigidDynamicLockFlag::eLOCK_LINEAR_Z
|
|
};
|
|
Desc.vAutoDamping = { 10.f, 10.f };
|
|
}
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_DOOR"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
|
|
return E_FAIL;
|
|
}
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Box"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
#pragma region ACTOR
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Npc_Model"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Model"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/Goblin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Mage_Model"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin_Mage/GoblinMage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
|
return E_FAIL;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Spector_Model"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
|
return E_FAIL;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GerboldOlivander_Model"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
|
|
return E_FAIL;
|
|
}
|
|
|
|
#pragma endregion
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Wand_Model"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity()))))
|
|
return E_FAIL;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Potion_Model"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/Potion/SM_Bottle_EmptyCapOff.bin", XMMatrixIdentity()))))
|
|
return E_FAIL;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_RaceRing_Model"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/RaceRing/SM_BRR_RaceRing_01.bin", XMMatrixIdentity()))))
|
|
return E_FAIL;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Broom_Model"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
|
return E_FAIL;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Weapon_Model"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity()))))
|
|
return E_FAIL;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Rock_Big_Model"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/Troll_Rock/VFX_SM_Rock_01.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
|
return E_FAIL;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Dagger_Model"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Dagger/SK_WPN_GOB_SmallSword.bin", XMMatrixIdentity()))))
|
|
return E_FAIL;
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_BattleAxe_Model"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_BattleAxe/SK_WPN_GOB_BattleAxe01.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity()))))
|
|
return E_FAIL;
|
|
|
|
|
|
|
|
/* For.Prototype_Component_SkyboxModel */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SkyboxModel"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.bin", XMMatrixIdentity()))))
|
|
return E_FAIL;
|
|
|
|
|
|
m_strMessage = TEXT("이펙트를(을) 로딩 중 입니다.");
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CTrail>(g_iStaticLevel, CTrail::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CEffectParts>(g_iStaticLevel, CEffectParts::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CTrailObject>(g_iStaticLevel, CTrailObject::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CBombard>(NEXT_LEVEL, CBombard::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CDecendo>(NEXT_LEVEL, CDecendo::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CNomalJap>(NEXT_LEVEL, CNomalJap::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CProtego>(NEXT_LEVEL, CProtego::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CRevelio>(NEXT_LEVEL, CRevelio::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CNomalJapSide>(NEXT_LEVEL, CNomalJapSide::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CLevioso>(NEXT_LEVEL, CLevioso::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CLumos>(NEXT_LEVEL, CLumos::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CAccio>(NEXT_LEVEL, CAccio::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CLeviosoSide>(NEXT_LEVEL, CLeviosoSide::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CBombardSide>(NEXT_LEVEL, CBombardSide::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CDecendoSide>(NEXT_LEVEL, CDecendoSide::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CTrollSwing>(NEXT_LEVEL, CTrollSwing::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CTroll_Nomal_Smoke>(NEXT_LEVEL, CTroll_Nomal_Smoke::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CTroll_Rush_Hit>(NEXT_LEVEL, CTroll_Rush_Hit::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Protego>(NEXT_LEVEL, CGoblin_Protego::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Attack>(NEXT_LEVEL, CGoblin_Attack::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMage_Down_Attack>(NEXT_LEVEL, CMage_Down_Attack::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMage_Nomal_Attack>(NEXT_LEVEL, CMage_Nomal_Attack::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMageSide>(NEXT_LEVEL, CMageSide::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CStunEffect>(NEXT_LEVEL, CStunEffect::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CBox_Splesh>(NEXT_LEVEL, CBox_Splesh::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CBarral_Splesh>(NEXT_LEVEL, CBarral_Splesh::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CChair_Splesh>(NEXT_LEVEL, CChair_Splesh::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CWandEnd>(NEXT_LEVEL, CWandEnd::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Teleport>(NEXT_LEVEL, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CScreen_Wind>(NEXT_LEVEL, CScreen_Wind::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CEffectPool>(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
|
|
m_strMessage = TEXT("Model Loading..");
|
|
|
|
|
|
Asset_FileLoad("../Bin/Resources/Models/Effect/Box", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
|
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
|
|
return E_FAIL;
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Models/Effect/ParticleMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
|
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
|
|
return E_FAIL;
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Models/Effect/Goo", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
|
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
|
|
return E_FAIL;
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
Asset_FileLoad("../Bin/Resources/Models/Effect/NomalMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
|
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
|
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
|
|
return E_FAIL;
|
|
|
|
return S_OK;
|
|
|
|
});
|
|
|
|
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
|
|
|
|
#pragma region UI
|
|
/* For.Prototype_GameObject_UI_Manager*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CUI_Manager>(g_iStaticLevel, CUI_Manager::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
/* For.Prototype_GameObject_Mouse_Cursor*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMouse_Cursor>(g_iStaticLevel, CMouse_Cursor::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
/* For.Prototype_GameObject_CameraLockOn*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CCameraLockOn>(g_iStaticLevel, CCameraLockOn::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
/* For.Prototype_GameObject_GamePlay_Canvas*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CGamePlay_Canvas>(g_iStaticLevel, CGamePlay_Canvas::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
/* For.Prototype_GameObject_Action_Panel*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CAction_Panel>(g_iStaticLevel, CAction_Panel::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Spell_Slot*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_Slot>(g_iStaticLevel, CSpell_Slot::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Spell_Overlay*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_Overlay>(g_iStaticLevel, CSpell_Overlay::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Slot_Number*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSlot_Number>(g_iStaticLevel, CSlot_Number::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_HpBarBG*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CHpBarBG>(g_iStaticLevel, CHpBarBG::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Potion*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CPotion>(g_iStaticLevel, CPotion::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Magic_Meter*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMagic_Meter>(g_iStaticLevel, CMagic_Meter::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Magic_Icon*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMagic_Icon>(g_iStaticLevel, CMagic_Icon::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Spell_UI*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_UI>(g_iStaticLevel, CSpell_UI::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Magic_Item*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMagic_Item>(g_iStaticLevel, CMagic_Item::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
/* For.Prototype_GameObject_Loading_Panel*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CLoading_Panel>(g_iStaticLevel, CLoading_Panel::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_LoadingWidget_Flame*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CLoadingWidget_Flame>(g_iStaticLevel, CLoadingWidget_Flame::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
/* For.Prototype_GameObject_Mission_Panel*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMission_Panel>(g_iStaticLevel, CMission_Panel::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
/* For.Prototype_GameObject_Minimap_Panel*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMiniMap_Panel>(g_iStaticLevel, CMiniMap_Panel::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_MiniMap_TrimBorder*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMiniMap_TrimBorder>(g_iStaticLevel, CMiniMap_TrimBorder::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_NoMountIcon*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CNoMountIcon>(g_iStaticLevel, CNoMountIcon::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
/* For.Prototype_GameObject_NoMountIcon*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CEnemy_Panel>(g_iStaticLevel, CEnemy_Panel::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_NoMountIcon*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CEnemy_HpBar>(g_iStaticLevel, CEnemy_HpBar::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_NoMountIcon*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CEnemy_Info>(g_iStaticLevel, CEnemy_Info::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_NoMountIcon*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CBoss_HpBar>(g_iStaticLevel, CBoss_HpBar::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Enemy_Detection*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CEnemy_Detection>(g_iStaticLevel, CEnemy_Detection::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
/* For.Prototype_GameObject_Spell_Canvas*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_Canvas>(g_iStaticLevel, CSpell_Canvas::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Spell_Panel*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_Panel>(g_iStaticLevel, CSpell_Panel::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Current_Spell_Slot*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CCurrent_Spell_Slot>(g_iStaticLevel, CCurrent_Spell_Slot::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Spell_List*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_List>(g_iStaticLevel, CSpell_List::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Eessential_Spell_Slot*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CEessential_Spell_Slot>(g_iStaticLevel, CEessential_Spell_Slot::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Eessential_Spell*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CEessential_Spell>(g_iStaticLevel, CEessential_Spell::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Spell_List_Image*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_List_Image>(g_iStaticLevel, CSpell_List_Image::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Spell_State*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_State>(g_iStaticLevel, CSpell_State::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Spell_Hover*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_Hover>(g_iStaticLevel, CSpell_Hover::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Spell_Hover_Effect*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_Hover_Effect>(g_iStaticLevel, CSpell_Hover_Effect::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Spell_Preview*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_Preview>(g_iStaticLevel, CSpell_Preview::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Spell_Header*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_Header>(g_iStaticLevel, CSpell_Header::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Spell_Header_Line*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_Header_Line>(g_iStaticLevel, CSpell_Header_Line::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Spell_Vidio_Border*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_Vidio_Border>(g_iStaticLevel, CSpell_Vidio_Border::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Spell_Anim*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_Anim>(g_iStaticLevel, CSpell_Anim::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Current_Slot_Number*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CCurrent_Slot_Number>(g_iStaticLevel, CCurrent_Slot_Number::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Spell_Drag*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_Drag>(g_iStaticLevel, CSpell_Drag::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
/* For.Prototype_GameObject_Quest_Canvas*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Canvas>(g_iStaticLevel, CQuest_Canvas::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Quest_Panel*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Panel>(g_iStaticLevel, CQuest_Panel::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Quest_Border*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Border>(g_iStaticLevel, CQuest_Border::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Quest_Header*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Header>(g_iStaticLevel, CQuest_Header::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Quest_HeaderLine*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_HeaderLine>(g_iStaticLevel, CQuest_HeaderLine::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Quest_List*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_List>(g_iStaticLevel, CQuest_List::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Quest_Info*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Info>(g_iStaticLevel, CQuest_Info::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Quest_Info_Header*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Info_Header>(g_iStaticLevel, CQuest_Info_Header::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Quest_Info_Line*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Info_Line>(g_iStaticLevel, CQuest_Info_Line::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
/* For.Prototype_GameObject_Quest_Entry_Line*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Entry_Line>(g_iStaticLevel, CQuest_Entry_Line::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
/* For.Prototype_GameObject_Damage_Font*/
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CDamage_Font>(g_iStaticLevel, CDamage_Font::Create(m_pDevice, m_pContext))))
|
|
{
|
|
return E_FAIL;
|
|
}
|
|
|
|
#pragma endregion
|
|
|
|
/* For.Prototype_GameObject_SkyBox */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CSkyBox>(g_iStaticLevel, CSkyBox::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
#pragma region MAP PROTOTYPE
|
|
/* For.Prototype_Component_VIBuffer_Terrain_Hogsmeade */
|
|
{
|
|
CVIBuffer_Terrain* pTerrain = CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "Hogsmeade_HeightMap.bin", 512, 512);
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade"), pTerrain))) {
|
|
return E_FAIL;
|
|
}
|
|
pTerrain->ConvertToHeightField(TEXT("Hogsmeade_HeightMap"));
|
|
|
|
CRigidBody_Static::RIGIDBODY_STATIC_PROTOTYPEDESC Desc{}; // 터레인 리지드 지형 추가
|
|
{
|
|
Desc.eType = ACTOR::HEIGHTFIELD;
|
|
Desc.ePxRigidBodyFlags = {};
|
|
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
|
|
Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT;
|
|
Desc.fContactOffset = 0.001f;
|
|
Desc.vMatInfo = { 1.2f, 1.0f, 0.0f };
|
|
}
|
|
CRigidBody_Static* pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogsmeade"), pRigid))) {
|
|
return E_FAIL;
|
|
}
|
|
}
|
|
/* For.Prototype_Component_VIBuffer_Terrain_Hogwart */
|
|
{
|
|
CVIBuffer_Terrain* pTerrain = CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "Hogwart_HeightMap.bin", 512, 640);
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain_Hogwart"), pTerrain))) {
|
|
return E_FAIL;
|
|
}
|
|
pTerrain->ConvertToHeightField(TEXT("Hogwart_HeightMap"));
|
|
|
|
CRigidBody_Static::RIGIDBODY_STATIC_PROTOTYPEDESC Desc{}; // 터레인 리지드 지형 추가
|
|
{
|
|
Desc.eType = ACTOR::HEIGHTFIELD;
|
|
Desc.ePxRigidBodyFlags = {};
|
|
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
|
|
Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT;
|
|
Desc.fContactOffset = 0.001f;
|
|
Desc.vMatInfo = { 1.2f, 1.0f, 0.0f };
|
|
}
|
|
CRigidBody_Static* pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogwart"), pRigid))) {
|
|
return E_FAIL;
|
|
}
|
|
}
|
|
|
|
#pragma region MAP_INSTANCE
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.bin",
|
|
"../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_BearBerry_A.bin",
|
|
"../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A*/
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_HM_OwlPost_Window_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A*/
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleA_L_Rectangle_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A*/
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_Retangle_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C*/
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleA_L_Square_Double_C.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A*/
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_HM_Quid_Window_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window*/
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_HM_Ollivanders_Box_Window.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A*/
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_L_Double_Single_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A*/
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_Round_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a*/
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_HM_Door1a.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b*/
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_HM_Door2b.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_OakTree_TallA*/
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_OakTree_TallA"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_OakTree_TallA.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_Shrub_B*/
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Shrub_B"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_GenericShrub_B.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_BogMyrtle_A*/
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_BogMyrtle_A"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_BogMyrtle_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_Dogwood_B*/
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Dogwood_B"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_Dogwood_B.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Model_Instancel_ScotsPine_LargeA*/
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_ScotsPine_LargeA"),
|
|
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
|
"../Bin/Resources/Models/InstanceProp/SM_ScotsPine_LargeA_Master.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
|
return E_FAIL;
|
|
#pragma endregion
|
|
|
|
/* For.Prototype_Component_South_Hogwart_Land_LOD1 */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_South_Hogwart_Land_LOD1"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_North_Hogwart_Land_LOD1 */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart_Land_LOD1"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_North_Hogwart2_Land_LOD1 */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart2_Land_LOD1"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_West_Hogwart_Land_LOD1 */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_West_Hogwart_Land_LOD1"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_East_Hogwart_Land_LOD1 */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_East_Hogsmeade_Land_LOD1"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_Hogwart_Lake */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogwart_Lake"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Lake/SM_Lake_A_Collision_Deep.bin", XMMatrixIdentity()))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_Hogwart_LakeSurFace */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogwart_LakeSurFace"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Lake/SM_Lake_A_Collision_Shallow.bin", XMMatrixIdentity()))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_Hogsmead_NorthLake */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLake"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/River/NorthLake/HDA_SM_LakeA_Collision_Deep.bin", XMMatrixIdentity()))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_Hogsmead_NorthLakeShallow */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLakeShallow"),
|
|
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/River/NorthLake/HDA_SM_LakeA_Collision_Shallow.bin", XMMatrixIdentity()))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_VIBuffer_Box */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Box"),
|
|
CVIBuffer_Box::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_Component_OcclusionQuery */
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_OcclusionQuery"),
|
|
COcclusionQuery::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_Terrain */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CTerrain>(g_iStaticLevel, CTerrain::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_CBuildingContainer */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CBuildingContainer>(g_iStaticLevel, CBuildingContainer::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_CStreetContainer */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CStreetContainer>(g_iStaticLevel, CStreetContainer::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_CMapObject_Render */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMapObject_Render>(g_iStaticLevel, CMapObject_Render::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_CMapObject_Collision */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMapObject_Collision>(g_iStaticLevel, CMapObject_Collision::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_CInstancedProp */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CInstancedProp>(g_iStaticLevel, CInstancedProp::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_MapElement_Light */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Light>(g_iStaticLevel, CMapElement_Light::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_MapElement_Interactable */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Interactable>(g_iStaticLevel, CMapElement_Interactable::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_MapElement_Door */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Door>(g_iStaticLevel, CMapElement_Door::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_MapElement_Chest */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Chest>(g_iStaticLevel, CMapElement_Chest::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_MapElement_Chest_Lid */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Chest_Lid>(g_iStaticLevel, CMapElement_Chest_Lid::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_Unified */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Lake>(g_iStaticLevel, CMapElement_Lake::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_Land */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CLand>(g_iStaticLevel, CLand::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
/* For.Prototype_GameObject_Unified */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CUnified>(g_iStaticLevel, CUnified::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
#pragma endregion // MAP PROTOTYPE
|
|
|
|
#pragma region ACTOR PROTOTYPE
|
|
|
|
/* For.Prototype_GameObject_Player */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CPlayer>(g_iStaticLevel, CPlayer::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_BroomRacerAI */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CBroomRacerAI>(g_iStaticLevel, CBroomRacerAI::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_Goblin */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin>(g_iStaticLevel, CGoblin::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_Goblin_Mage */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Mage>(g_iStaticLevel, CGoblin_Mage::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_Goblin_Spector */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Spector>(g_iStaticLevel, CGoblin_Spector::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_Troll */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CTroll>(g_iStaticLevel, CTroll::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_Troll */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CNPC_Ollivander>(g_iStaticLevel, CNPC_Ollivander::Create(m_pDevice, m_pContext)))){
|
|
return E_FAIL;
|
|
}
|
|
|
|
#pragma endregion
|
|
|
|
|
|
/* For.Prototype_Component_FSM */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CFSM>(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_Camera_Gaze */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CCamera_Gaze>(g_iStaticLevel, CCamera_Gaze::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_CamPosition_Player */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CCamPosition_Socket>(g_iStaticLevel, CCamPosition_Socket::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_CamPosition_Shoulder */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CCamPosition_Shoulder>(g_iStaticLevel, CCamPosition_Shoulder::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_CamPosition_Target */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CCamPosition_Target>(g_iStaticLevel, CCamPosition_Target::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_CamPosition_Arm */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CCamPosition_Arm>(g_iStaticLevel, CCamPosition_Arm::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_Wand */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CWand>(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_Potion */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CItem_Potion>(g_iStaticLevel, CItem_Potion::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_RaceRing */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CRaceRing>(g_iStaticLevel, CRaceRing::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_Troll_Weapon */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CTroll_Weapon>(g_iStaticLevel, CTroll_Weapon::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_Troll_Rock */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CTroll_Rock>(g_iStaticLevel, CTroll_Rock::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_Goblin_Dagger */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Dagger>(g_iStaticLevel, CGoblin_Dagger::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_Goblin_BattleAxe */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_BattleAxe>(g_iStaticLevel, CGoblin_BattleAxe::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_Broom */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CBroom>(g_iStaticLevel, CBroom::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
/* For.Prototype_GameObject_BroomRaceManager */
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CBroomRaceManager>(g_iStaticLevel, CBroomRaceManager::Create(m_pDevice, m_pContext))))
|
|
return E_FAIL;
|
|
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CDummy_PhysXWall>(g_iStaticLevel, CDummy_PhysXWall::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CDummy_PhysXPlayable>(g_iStaticLevel, CDummy_PhysXPlayable::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
if (FAILED(m_pGameInstance->Add_Prototype<CPhysXEffectHitBox>(g_iStaticLevel, CPhysXEffectHitBox::Create(m_pDevice, m_pContext)))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
|
|
#pragma region RECEIVE_THREAD
|
|
{ // MapModels
|
|
_uint iIndex = 0;
|
|
for (auto& JobMapModels : jobMapModels)
|
|
{
|
|
vector<FOLDER_LOAD*>* pOut = JobMapModels.get();
|
|
for (_uint i = 0; i < pOut->size(); ++i) {
|
|
FOLDER_LOAD* pContents = (*pOut)[i];
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pModelTag, pContents->pLoadedModel))) {
|
|
return E_FAIL;
|
|
}
|
|
|
|
for (_uint j = 0; j < pContents->pRigidBodyTags.size(); ++j) {
|
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pRigidBodyTags[j], pContents->LoadedRigidBody[j]))) {
|
|
return E_FAIL;
|
|
}
|
|
}
|
|
Safe_Delete(pContents);
|
|
}
|
|
iIndex++;
|
|
Safe_Delete(pOut);
|
|
}
|
|
}
|
|
#pragma endregion
|
|
m_strMessage = TEXT("정보를 불러오는 중입니다.");
|
|
|
|
m_strMessage = TEXT("로딩이 완료되었습니다..");
|
|
|
|
m_isFinished = true;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
HRESULT CLoader::Loading_For_Field()
|
|
{
|
|
m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다.");
|
|
|
|
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
|
|
|
|
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
|
|
|
|
m_strMessage = TEXT("이펙트를(을) 로딩 중 입니다.");
|
|
|
|
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
|
|
|
|
m_strMessage = TEXT("정보를 불러오는 중입니다.");
|
|
|
|
m_strMessage = TEXT("로딩이 완료되었습니다..");
|
|
|
|
m_isFinished = true;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
HRESULT CLoader::Loading_For_Restart()
|
|
{
|
|
m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다.");
|
|
|
|
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
|
|
|
|
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
|
|
|
|
m_strMessage = TEXT("이펙트를(을) 로딩 중 입니다.");
|
|
|
|
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
|
|
|
|
m_strMessage = TEXT("정보를 불러오는 중입니다.");
|
|
|
|
m_strMessage = TEXT("로딩이 완료되었습니다..");
|
|
|
|
m_isFinished = true;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
HRESULT CLoader::Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreName, function<HRESULT(_wstring, const _char*)> AddPrototypeEvent)
|
|
{
|
|
for (const auto& file : filesystem::directory_iterator(pDirectoryPath))
|
|
{
|
|
if (file.is_directory())
|
|
continue;
|
|
|
|
string ext = file.path().extension().string();
|
|
|
|
if (!strcmp(ext.c_str(), ".txt") || !strcmp(ext.c_str(), ".fbx")){
|
|
continue;
|
|
}
|
|
|
|
_char szFilePath[MAX_PATH] = {};
|
|
|
|
strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str());
|
|
|
|
wstring wstrFileName = pPreName + file.path().stem().wstring();
|
|
|
|
AddPrototypeEvent(wstrFileName, szFilePath);
|
|
|
|
}
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
|
|
vector<FOLDER_LOAD*>* APIENTRY Deferred_FolderLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag)
|
|
{
|
|
if (FAILED(CoInitializeEx(nullptr, 0))) {
|
|
return nullptr;
|
|
}
|
|
|
|
if (!filesystem::exists(pDirectoryPath)) {
|
|
MSG_BOX(" 경로 이상해 ");
|
|
return nullptr;
|
|
}
|
|
|
|
vector<FOLDER_LOAD*>* pOut = new vector<FOLDER_LOAD*>;
|
|
for (const auto& file : filesystem::directory_iterator(pDirectoryPath))
|
|
{
|
|
if (file.is_directory()) { continue; }
|
|
if (strcmp(file.path().extension().string().c_str(), pFileExt)) { continue; }
|
|
|
|
FOLDER_LOAD* pContents = new FOLDER_LOAD;
|
|
|
|
{ // FOLDER_LOAD
|
|
_char szFilePath[MAX_PATH] = {};
|
|
strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str());
|
|
|
|
_wstring wstrFileName = L"Prototype_GameObject_" + file.path().stem().wstring();
|
|
|
|
CModel* pModel = CModel::Create(pDevice, pContext, MODEL::ENVIRONMENT, szFilePath);
|
|
|
|
_uint iNumMesh = pModel->Get_NumMeshes();
|
|
|
|
{
|
|
pContents->pModelTag = wstrFileName;
|
|
pContents->pathModel = file.path();
|
|
|
|
pContents->pLoadedModel = pModel;
|
|
|
|
pContents->pRigidBodyTags.reserve(iNumMesh);
|
|
pContents->LoadedRigidBody.reserve(iNumMesh);
|
|
}
|
|
|
|
CRigidBody_Static::RIGIDBODY_STATIC_PROTOTYPEDESC Desc{};
|
|
for (_uint i = 0; i < iNumMesh; ++i) {
|
|
{
|
|
Desc.eType = ACTOR::TRIANGLEMESH;
|
|
Desc.ePxRigidBodyFlags = {};
|
|
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
|
|
Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT;
|
|
Desc.vMatInfo = _float3(0.5f, 0.5f, 0.6f);
|
|
Desc.fContactOffset = 0.001f;
|
|
}
|
|
|
|
pContents->pRigidBodyTags.emplace_back(CMyTools::ToWstring(pModel->Get_MeshName(i) + to_string(i)).c_str());
|
|
pContents->LoadedRigidBody.emplace_back(CRigidBody_Static::Create(pDevice, pContext, Desc));
|
|
}
|
|
}
|
|
(*pOut).emplace_back(pContents);
|
|
}
|
|
(*pOut).shrink_to_fit();
|
|
|
|
CoUninitialize();
|
|
return pOut;
|
|
}
|
|
|
|
future<vector<FOLDER_LOAD*>*> CLoader::Deferred_FolderLoad(const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag)
|
|
{
|
|
return m_pGameInstance->EnqueueJob(&Deferred_FolderLoad_Main, m_pDevice, m_pContext, pDirectoryPath, pFileExt, bUseTag);
|
|
}
|
|
|
|
pair<_wstring, CModel*>* APIENTRY Deferred_ModelLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, const _char* pDirectoryPath, const _tchar* pPrototypeTag, _fmatrix PreTransform)
|
|
{
|
|
if (FAILED(CoInitializeEx(nullptr, 0))) {
|
|
assert(false);
|
|
return nullptr;
|
|
}
|
|
|
|
CModel* pModel = CModel::Create(pDevice, pContext, eType, pDirectoryPath, PreTransform);
|
|
|
|
CoUninitialize();
|
|
pair<_wstring, CModel*>* Out = new pair<_wstring, CModel*>(pPrototypeTag, pModel);
|
|
return Out;
|
|
}
|
|
|
|
future<pair<_wstring, CModel*>*> CLoader::Deferred_ModelLoad(MODEL eType, const _char* pDirectoryPath, _fmatrix PreTransform, const _tchar* pPrototypeTag) {
|
|
return m_pGameInstance->EnqueueJob(&Deferred_ModelLoad_Main, m_pDevice, m_pContext, eType, pDirectoryPath, pPrototypeTag, PreTransform);
|
|
}
|
|
|
|
void CLoader::Ready_MapModels(vector<future<vector<FOLDER_LOAD*>*>>& jobMapModels)
|
|
{
|
|
|
|
|
|
}
|
|
|
|
CLoader* CLoader::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eNextLevelID)
|
|
{
|
|
CLoader* pInstance = new CLoader(pDevice, pContext);
|
|
|
|
if (FAILED(pInstance->Initialize(eNextLevelID)))
|
|
{
|
|
MSG_BOX("Failed to Created : CLoader");
|
|
SAFE_RELEASE(pInstance);
|
|
}
|
|
|
|
return pInstance;
|
|
}
|
|
|
|
|
|
void CLoader::Free()
|
|
{
|
|
__super::Free();
|
|
|
|
|
|
SAFE_RELEASE(m_pGameInstance);
|
|
SAFE_RELEASE(m_pDevice);
|
|
SAFE_RELEASE(m_pContext);
|
|
}
|