[add] Load BroomRace Bubble

[add] Sound tool 추가
[add] Sound Event 분리
This commit is contained in:
Chanbin Kim
2026-01-14 17:35:16 +09:00
parent 8ac1e718b0
commit 83dbe5d433
20 changed files with 410 additions and 94 deletions
@@ -970,7 +970,7 @@
</ClInclude> </ClInclude>
<ClInclude Include="..\Public\BroomRace_Bubble.h"> <ClInclude Include="..\Public\BroomRace_Bubble.h">
<Filter>02.GameObjects\Effect\BroomRace\Bubble</Filter> <Filter>02.GameObjects\Effect\BroomRace\Bubble</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\Public\CamPosition_WorldLook.h"> <ClInclude Include="..\Public\CamPosition_WorldLook.h">
<Filter>02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook</Filter> <Filter>02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook</Filter>
</ClInclude> </ClInclude>
@@ -2009,7 +2009,7 @@
</Filter> </Filter>
<Filter Include="02.GameObjects\Effect\BroomRace\Bubble"> <Filter Include="02.GameObjects\Effect\BroomRace\Bubble">
<UniqueIdentifier>{ce57978a-c208-4fe6-bbfd-8f582c20ff07}</UniqueIdentifier> <UniqueIdentifier>{ce57978a-c208-4fe6-bbfd-8f582c20ff07}</UniqueIdentifier>
</Filter> </Filter>
<Filter Include="02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook"> <Filter Include="02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook">
<UniqueIdentifier>{b3924c52-0c0d-4cd1-94f4-1eb61d2c6c99}</UniqueIdentifier> <UniqueIdentifier>{b3924c52-0c0d-4cd1-94f4-1eb61d2c6c99}</UniqueIdentifier>
</Filter> </Filter>
@@ -2892,9 +2892,6 @@
<ClCompile Include="..\Private\CamPosition_WorldLook.cpp"> <ClCompile Include="..\Private\CamPosition_WorldLook.cpp">
<Filter>02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook</Filter> <Filter>02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\Private\TriggerBox.cpp">
<Filter>02.GameObjects\Environment\Prop\SkyBox\TriggerBox</Filter>
</ClCompile>
<ClCompile Include="..\Private\PotionScreen.cpp"> <ClCompile Include="..\Private\PotionScreen.cpp">
<Filter>02.GameObjects\Effect\Effects\Potion\PotionScreen</Filter> <Filter>02.GameObjects\Effect\Effects\Potion\PotionScreen</Filter>
</ClCompile> </ClCompile>
@@ -2907,6 +2904,9 @@
<ClCompile Include="..\Private\BroomRace_Bubble.cpp"> <ClCompile Include="..\Private\BroomRace_Bubble.cpp">
<Filter>02.GameObjects\Effect\BroomRace\Bubble</Filter> <Filter>02.GameObjects\Effect\BroomRace\Bubble</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\Private\TriggerBox.cpp">
<Filter>02.GameObjects\Environment\Prop\SkyBox\TriggerBox</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="..\Private\State_Parry.cpp"> <ClCompile Include="..\Private\State_Parry.cpp">
@@ -10,6 +10,7 @@
#include "Broom.h" #include "Broom.h"
#include "InfoInstance.h" #include "InfoInstance.h"
#include "InstancedProp.h" #include "InstancedProp.h"
#include "EffectPool.h"
CBroomRaceManager::CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) CBroomRaceManager::CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext) : CGameObject(pDevice, pContext)
@@ -39,6 +40,8 @@ HRESULT CBroomRaceManager::Initialize(void* pArg)
m_pInfoInstance->Add_Event(TEXT("BROOMRACENPCINTERACT"), [this](void* p) {this->RaceReady(); }); m_pInfoInstance->Add_Event(TEXT("BROOMRACENPCINTERACT"), [this](void* p) {this->RaceReady(); });
return S_OK; return S_OK;
} }
@@ -357,6 +360,11 @@ void CBroomRaceManager::RaceReady()
MSG_BOX("Failed Load Balloons"); MSG_BOX("Failed Load Balloons");
} }
if (FAILED(Load_Broomrace_Effect()))
{
MSG_BOX("Failed Load Broomrace_Effect");
}
CInstancedProp::INSTANCE_PROP_DESC Instance_Desc = {}; CInstancedProp::INSTANCE_PROP_DESC Instance_Desc = {};
/* InstanceProp RouteMarker*/ /* InstanceProp RouteMarker*/
@@ -577,6 +585,48 @@ HRESULT CBroomRaceManager::Load_Balloons()
return E_FAIL; return E_FAIL;
} }
return S_OK;
}
HRESULT CBroomRaceManager::Load_Broomrace_Effect()
{
CEffectPool* pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
if (nullptr == pEffectPool)
return E_FAIL;
tinyxml2::XMLDocument xmlDoc;
string strPath = "../Bin/Resources/Data/Map/EffectPart/Bubble_Data.xml";
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
return E_FAIL;
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("EffectParts");
if (nullptr == root)
{
MSG_BOX("Failed to Find root");
return S_OK;
}
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
{
_float4 vPosition = {};
/* Transform */
auto* Position = Object->FirstChildElement("Position");
Position->QueryFloatAttribute("x", &vPosition.x);
Position->QueryFloatAttribute("y", &vPosition.y);
Position->QueryFloatAttribute("z", &vPosition.z);
vPosition.w = 1.f;
pEffectPool->Use_Skill(SKILL_TYPE::BROOM_RACE_BUBBLE, this, &vPosition);
}
return S_OK; return S_OK;
} }
@@ -78,7 +78,7 @@ void CBroomRace_Bubble::Late_Update(_float fTimeDelta)
if (false == m_bHit) { if (false == m_bHit) {
_vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vStartPos = XMLoadFloat4(&m_vStartPos);
_vector vEndPos = pBubble->Get_WorldPostion(); _vector vEndPos = pBubble->Get_WorldPostion();
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f); ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.002f);
OnCollision(this, &CollisionInfo); OnCollision(this, &CollisionInfo);
@@ -175,7 +175,7 @@ void CLevel_GamePlay::Update(_float fTimeDelta)
bStartCinematic = true; bStartCinematic = true;
#elif Bin #elif Bin
bStartCinematic = false; bStartCinematic = false;
#elif gimchi #elif gimch
bStartCinematic = false; bStartCinematic = false;
#endif #endif
#endif // _DEBUG #endif // _DEBUG
@@ -126,6 +126,8 @@ HRESULT CPlayer::Initialize(void* pArg)
m_fRayDistance = 5.f; m_fRayDistance = 5.f;
m_pModelCom->Set_DisableRootMotionScale(true); m_pModelCom->Set_DisableRootMotionScale(true);
Ready_Sound_Events("../Bin/Resources/Models/Human/PlayableCharacter/KeyFrame.xml");
return S_OK; return S_OK;
} }
@@ -44,6 +44,7 @@ class CBroomRaceManager final : public CGameObject
HRESULT Load_RaceRing(); HRESULT Load_RaceRing();
HRESULT Load_Balloons(); HRESULT Load_Balloons();
HRESULT Load_Broomrace_Effect();
private: private:
CInfoInstance* m_pInfoInstance = { nullptr }; CInfoInstance* m_pInfoInstance = { nullptr };
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<EffectParts>
<Object>
<Position x="-557.4693" y="1.7081518" z="-404.99838"/>
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-546.97711" y="3.4388852" z="-405.45068"/>
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-533.41187" y="5.8523626" z="-407.15222"/>
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-422.68542" y="12.297935" z="-423.10046"/>
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-438.46686" y="11.288605" z="-419.94629"/>
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-272.8252" y="11.575071" z="-466.4433"/>
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-233.60553" y="4.5245433" z="-438.84055"/>
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-116.56883" y="-5.2835941" z="-457.04156"/>
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-115.49762" y="-4.3404284" z="-462.14432"/>
<Scale x="0.99998319" y="0.99993736" z="0.99999428"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-114.33831" y="-2.8634744" z="-469.75327"/>
<Scale x="0.99998319" y="0.99993736" z="0.99999428"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-114.49501" y="8.9647017" z="-630.75684"/>
<Scale x="0.99999809" y="0.99993736" z="0.99999857"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-122.38454" y="9.379631" z="-632.39172"/>
<Scale x="0.99999809" y="0.99993736" z="0.99999857"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-141.58109" y="9.3517723" z="-635.36981"/>
<Scale x="0.99999809" y="0.99993736" z="0.99999857"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-358.02856" y="21.008039" z="-564.20557"/>
<Scale x="0.99999976" y="0.99993736" z="0.99999857"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-381.73807" y="18.154875" z="-551.83118"/>
<Scale x="0.99999976" y="0.99993736" z="0.99999857"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-420.54446" y="14.254954" z="-531.81177"/>
<Scale x="0.99999976" y="0.99993736" z="0.99999857"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-470.04022" y="7.4956679" z="-506.46667"/>
<Scale x="0.99999976" y="0.99993736" z="0.99999857"/>
<Rotation x="0" y="0" z="0"/>
</Object>
</EffectParts>
@@ -0,0 +1,8 @@
<KeyFrames>
<Animation Index="206">
<KeyFrame Event="Player/Voice/avadakedavra_voice.wav" Ratio="0.265" Volume="0.8"/>
</Animation>
<Animation Index="858">
<KeyFrame Event="Player/Voice/decendo_voice.wav" Ratio="0.022" Volume="1"/>
</Animation>
</KeyFrames>
@@ -806,9 +806,9 @@ HRESULT CLevel_MapViewer::Ready_Layer_MapObjectManager(const _wstring& strLayerT
HRESULT CLevel_MapViewer::Ready_Layer_Player_And_Ranrok() HRESULT CLevel_MapViewer::Ready_Layer_Player_And_Ranrok()
{ {
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER))) { //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER))) {
return E_FAIL; // return E_FAIL;
} //}
/*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRanrok>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) /*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRanrok>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster"))))
@@ -20,6 +20,8 @@
#include "Goblin.h" #include "Goblin.h"
#include "Broom.h" #include "Broom.h"
#include "ReparoObject.h" #include "ReparoObject.h"
#include "Sound_Manager.h"
#include "Unit.h"
CLevel_ObjectViewer::CLevel_ObjectViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) CLevel_ObjectViewer::CLevel_ObjectViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) } : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
{ {
@@ -42,6 +44,7 @@ HRESULT CLevel_ObjectViewer::Initialize()
return E_FAIL; return E_FAIL;
} }
m_fVolume = 0.8f;
return S_OK; return S_OK;
} }
@@ -59,6 +62,9 @@ void CLevel_ObjectViewer::Update(_float fTimeDelta)
Parts_Object_Setting(); Parts_Object_Setting();
Find_Anim(); Find_Anim();
for(auto& pObject : m_Objects)
dynamic_cast<CUnit*>(pObject)->Play_Event();
} }
HRESULT CLevel_ObjectViewer::Render() HRESULT CLevel_ObjectViewer::Render()
@@ -362,6 +368,7 @@ void CLevel_ObjectViewer::Show_AnimList()
GUI::End(); GUI::End();
} }
void CLevel_ObjectViewer::Show_ObjectList() void CLevel_ObjectViewer::Show_ObjectList()
{ {
for (size_t i = 0; i < m_Objects.size(); i++) for (size_t i = 0; i < m_Objects.size(); i++)
@@ -428,6 +435,7 @@ void CLevel_ObjectViewer::Dummy_Object_Setting()
_int iIndex = pModel->Get_AnimIndex(); _int iIndex = pModel->Get_AnimIndex();
if (GUI::InputInt("Anim Index", &iIndex)) if (GUI::InputInt("Anim Index", &iIndex))
{ {
m_iCurAnimIndex = iIndex;
pModel->Set_AnimationIndex(iIndex); pModel->Set_AnimationIndex(iIndex);
} }
@@ -438,8 +446,15 @@ void CLevel_ObjectViewer::Dummy_Object_Setting()
Load_KeyFrame(szName); Load_KeyFrame(szName);
} }
if(GUI::Button("Load KeyFrame_"))
static _char EventName[64] = {}; {
for (auto& pObject : m_Objects)
{
dynamic_cast<CUnit*>(pObject)->Reset_SoundEvent();
dynamic_cast<CUnit*>(m_Objects[m_iObjectIndex])->Ready_Sound_Events("../Bin/Resources/Models/Human/PlayableCharacter/KeyFrame.xml");
}
}
static _char EventName[256] = {};
GUI::InputText("EventName", EventName, sizeof(EventName)); GUI::InputText("EventName", EventName, sizeof(EventName));
GUI::SameLine(); GUI::SameLine();
@@ -456,6 +471,31 @@ void CLevel_ObjectViewer::Dummy_Object_Setting()
EventName[0] = '\0'; EventName[0] = '\0';
} }
} }
GUI::InputFloat("Volume", &m_fVolume);
static _char SoundFilter[256] = {};
if (GUI::Button("Stop Sound"))
m_pGameInstance->Sound_StopAll();
if (GUI::CollapsingHeader("Sound list"))
{
GUI::InputText("Filter", SoundFilter, sizeof(SoundFilter));
_wstring soudnfilter = CMyTools::ToWstring(SoundFilter);
for (_uint i = 0; i < ENUM_CLASS(SOUND::SD_KIND::END); ++i)
{
_wstring Name = SOUND::SD_PATH::SD_KIND_PATHS[i];
if (string::npos != Name.find(soudnfilter))
{
if (GUI::Button(("S_" + CMyTools::ToString(Name)).c_str()))
{
strcpy_s(EventName, CMyTools::ToString(Name).c_str());
m_pGameInstance->Sound_Play(static_cast<SOUND::SD_KIND>(i), SD_CHANNEL_GROUP::EFFECT, false, m_fVolume);
}
}
}
}
for (auto& iter : m_KeyFrames) for (auto& iter : m_KeyFrames)
@@ -702,6 +742,7 @@ void CLevel_ObjectViewer::Find_Anim()
void CLevel_ObjectViewer::Save_KeyFrame() void CLevel_ObjectViewer::Save_KeyFrame()
{ {
_char szDrive[MAX_PATH] = {}; _char szDrive[MAX_PATH] = {};
_char szDir[MAX_PATH] = {}; _char szDir[MAX_PATH] = {};
_splitpath_s(m_DummyPath, szDrive, MAX_PATH, szDir, MAX_PATH, nullptr, 0, nullptr, 0); _splitpath_s(m_DummyPath, szDrive, MAX_PATH, szDir, MAX_PATH, nullptr, 0, nullptr, 0);
@@ -736,17 +777,17 @@ void CLevel_ObjectViewer::Save_KeyFrame()
} }
} }
if (!pAnimNode) if (nullptr == pAnimNode)
{ {
pAnimNode = doc.NewElement("Animation"); pAnimNode = doc.NewElement("Animation");
pAnimNode->SetAttribute("Index", m_iCurAnimIndex); pAnimNode->SetAttribute("Index", m_iCurAnimIndex);
pRoot->InsertEndChild(pAnimNode); pRoot->InsertEndChild(pAnimNode);
} }
while (tinyxml2::XMLElement* pKey = pAnimNode->FirstChildElement("KeyFrame")) //while (tinyxml2::XMLElement* pKey = pAnimNode->FirstChildElement("KeyFrame"))
{ //{
pAnimNode->DeleteChild(pKey); // pAnimNode->DeleteChild(pKey);
} //}
for (auto& iter : m_KeyFrames) for (auto& iter : m_KeyFrames)
{ {
@@ -757,9 +798,20 @@ void CLevel_ObjectViewer::Save_KeyFrame()
pKey->SetAttribute("Ratio", buf); pKey->SetAttribute("Ratio", buf);
pKey->SetAttribute("Volume", m_fVolume); pKey->SetAttribute("Volume", m_fVolume);
pAnimNode->InsertEndChild(pKey); pAnimNode->InsertEndChild(pKey);
SOUND::SD_KIND eSoundKind = m_pGameInstance->Find_Sound(CMyTools::ToWstring(Path));
if(nullptr != m_Objects[m_iObjectIndex])
{
dynamic_cast<CUnit*>(m_Objects[m_iObjectIndex])->Add_Sound_Event(m_iCurAnimIndex,
[this, eSoundKind, iter]() { m_pGameInstance->Sound_Play(eSoundKind, SD_CHANNEL_GROUP::EFFECT, false, m_fVolume); },
iter.second, true);
}
} }
m_KeyFrames.clear();
doc.SaveFile(Path.c_str()); doc.SaveFile(Path.c_str());
} }
HRESULT CLevel_ObjectViewer::Ready_Layer_Camera(const _wstring& strLayerTag) HRESULT CLevel_ObjectViewer::Ready_Layer_Camera(const _wstring& strLayerTag)
+26 -17
View File
@@ -418,6 +418,15 @@ HRESULT CLoader::Loading_For_Logo()
m_strMessage = TEXT("Model Loading.."); m_strMessage = TEXT("Model Loading..");
m_strMessage = TEXT("Sound Loading..");
const _tchar* pSoundFilePath = TEXT("../Bin/Resources/Sounds/");
for (int iIndex = 0; iIndex < ENUM_CLASS(SOUND::SD_KIND::END); ++iIndex) {
if (FAILED(m_pGameInstance->Load_Sound((SOUND::SD_KIND)iIndex, (_wstring(pSoundFilePath) + SOUND::SD_PATH::SD_KIND_PATHS[iIndex]).c_str(), FMOD_DEFAULT))) {
return E_FAIL;
}
}
m_strMessage = TEXT("Shader Loading.."); m_strMessage = TEXT("Shader Loading..");
@@ -2858,25 +2867,25 @@ HRESULT CLoader::Loading_For_MapViewer()
// return E_FAIL; // return E_FAIL;
//} //}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"), //if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { // CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL; // return E_FAIL;
} //}
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok>(g_iStaticLevel, CRanrok::Create(m_pDevice, m_pContext)))) { //if (FAILED(m_pGameInstance->Add_Prototype<CRanrok>(g_iStaticLevel, CRanrok::Create(m_pDevice, m_pContext)))) {
return E_FAIL; // return E_FAIL;
} //}
if (FAILED(m_pGameInstance->Add_Prototype<CFSM>(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext)))) //if (FAILED(m_pGameInstance->Add_Prototype<CFSM>(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext))))
return E_FAIL; // return E_FAIL;
/* For.Prototype_GameObject_Player */ ///* For.Prototype_GameObject_Player */
if (FAILED(m_pGameInstance->Add_Prototype<CPlayer>(g_iStaticLevel, CPlayer::Create(m_pDevice, m_pContext)))) //if (FAILED(m_pGameInstance->Add_Prototype<CPlayer>(g_iStaticLevel, CPlayer::Create(m_pDevice, m_pContext))))
return E_FAIL; // return E_FAIL;
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)))) { //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)))) {
return E_FAIL; // return E_FAIL;
} //}
/* For.Prototype_GameObject_Wand */ /* For.Prototype_GameObject_Wand */
if (FAILED(m_pGameInstance->Add_Prototype<CWand>(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext)))) if (FAILED(m_pGameInstance->Add_Prototype<CWand>(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext))))
@@ -3490,7 +3499,7 @@ _bool bLoadHogsmeade = true;
} }
#pragma region HOGWART #pragma region HOGWART
_bool bHogwartLoad = { false }; _bool bHogwartLoad = { true };
/* Hogwart LOD */ /* Hogwart LOD */
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD", if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD",
@@ -3833,7 +3842,7 @@ vector<future<void>> jobFutures;
_uint iLoadCount = 44; _uint iLoadCount = 44;
vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount); vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount);
_bool isLoad_Map = { true }; _bool isLoad_Map = { false };
if(isLoad_Map) if(isLoad_Map)
{ {
{ /* Terrain */ { /* Terrain */
@@ -75,14 +75,6 @@ HRESULT CLoader::Loading_For_ObjectViewer()
#pragma region MONSTER #pragma region MONSTER
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "C:\\MeshTable\\Game\\RiggedObjects\\Props\\Weapons\\Goblins\\SK_WPN_GOB_BattleAxe01.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
return E_FAIL;
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "C:\\MeshTable\\Game\\RiggedObjects\\Props\\Weapons\\Goblins\\SK_WPN_GOB_SmallSword.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
return E_FAIL;
futures.emplace_back(Deferred_ModelLoad( futures.emplace_back(Deferred_ModelLoad(
MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model") TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model")
@@ -76,7 +76,7 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
/*if (FAILED(Load_LightObject("LightElement"))) /*if (FAILED(Load_LightObject("LightElement")))
return E_FAIL;*/ return E_FAIL;*/
if (FAILED(Load_InteractObject("E_INTER_Barrel"))) /*if (FAILED(Load_InteractObject("E_INTER_Barrel")))
return E_FAIL; return E_FAIL;
if (FAILED(Load_InteractObject("E_INTER_PostPackage_B"))) if (FAILED(Load_InteractObject("E_INTER_PostPackage_B")))
return E_FAIL; return E_FAIL;
@@ -85,11 +85,11 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
if (FAILED(Load_InteractObject("E_INTER_TeaShopTable"))) if (FAILED(Load_InteractObject("E_INTER_TeaShopTable")))
return E_FAIL; return E_FAIL;
if (FAILED(Load_InteractObject("E_INTER_TeaShopChair"))) if (FAILED(Load_InteractObject("E_INTER_TeaShopChair")))
return E_FAIL; return E_FAIL;*/
#pragma region HOGSMEADE #pragma region HOGSMEADE
if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE))) //if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
return E_FAIL; // return E_FAIL;
#pragma endregion #pragma endregion
#pragma region DUNGEON #pragma region DUNGEON
@@ -100,10 +100,10 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
#pragma endregion #pragma endregion
#pragma region HOGWART #pragma region HOGWART
//if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART))) if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
// return E_FAIL; return E_FAIL;
//if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART))) if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART)))
// return E_FAIL; return E_FAIL;
#pragma endregion #pragma endregion
#pragma region Light #pragma region Light
@@ -277,9 +277,9 @@ void CMapObject_Manager::Update(_float fTimeDelta)
//Update_LightSpawer(); //Update_LightSpawer();
//Update_Decal(); //Update_Decal();
//Update_RaceRing(); //Update_RaceRing();
//Update_EditEffect(); Update_EditEffect();
//Update_Balloon(); //Update_Balloon();
Update_DummyNpc(); //Update_DummyNpc();
Update_Unified(); Update_Unified();
@@ -2766,7 +2766,7 @@ void CMapObject_Manager::Update_EditEffect()
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEditEffect>(ENUM_CLASS(LEVEL::MAP), NEXT_LEVEL, TEXT("Layer_Effect_EDIT"), &PartsDesc, nullptr, &pEffect))) if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEditEffect>(ENUM_CLASS(LEVEL::MAP), NEXT_LEVEL, TEXT("Layer_Effect_EDIT"), &PartsDesc, nullptr, &pEffect)))
return; return;
pEffect->Load("../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_35",LEVEL::MAP); pEffect->Load("../Bin/Resources/Data/Effect/BroomRace/Bubble",LEVEL::MAP);
pEffect->Set_Visible(true); pEffect->Set_Visible(true);
} }
@@ -1032,10 +1032,34 @@ HRESULT CGameInstance::Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundF
{ {
return m_pSound_Manager->Load_Sound(eKind, wstrSoundFilePath, eSoundMode); return m_pSound_Manager->Load_Sound(eKind, wstrSoundFilePath, eSoundMode);
} }
SOUND::SD_KIND CGameInstance::Find_Sound(const _wstring wstrFilePath)
{
return m_pSound_Manager->Find_Sound(wstrFilePath);
}
void CGameInstance::Sound_Play(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _bool bRepeat, _float fVolume) void CGameInstance::Sound_Play(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _bool bRepeat, _float fVolume)
{ {
m_pSound_Manager->Sound_Play(eSoundKind, eSoundChannel, bRepeat, fVolume); m_pSound_Manager->Sound_Play(eSoundKind, eSoundChannel, bRepeat, fVolume);
} }
void CGameInstance::Sound_Play_3DPos(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _float3& refSpeaker, _float fMin, _float fMax, _bool bRepeat)
{
m_pSound_Manager->Sound_Play_3DPos(eSoundKind, eSoundChannel, refSpeaker, fMin, fMax, bRepeat);
}
void CGameInstance::Sound_Pause_Channel(SD_CHANNEL_GROUP eSoundChannel, bool bPause)
{
m_pSound_Manager->Sound_Pause_Channel(eSoundChannel, bPause);
}
void CGameInstance::Sound_Set3DListenerPos(CTransform* pTransform)
{
m_pSound_Manager->Sound_Set3DListenerPos(pTransform);
}
void CGameInstance::Sound_StopChannel(SD_CHANNEL_GROUP eSoundChannel)
{
m_pSound_Manager->Sound_StopChannel(eSoundChannel);
}
void CGameInstance::Sound_Stop(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel)
{
m_pSound_Manager->Sound_Stop(eSoundKind, eSoundChannel);
}
void CGameInstance::Sound_StopAll() void CGameInstance::Sound_StopAll()
{ {
m_pSound_Manager->Sound_StopAll(); m_pSound_Manager->Sound_StopAll();
@@ -7,7 +7,7 @@ System* CSound_Manager::s_pSystem = { nullptr };
_string CSound_Manager::s_ArrChannelName[ENUM_CLASS(SD_CHANNEL_GROUP::END)] = { "BGM", "ENVIRONMENT", "EFFECT", "VOICE" }; _string CSound_Manager::s_ArrChannelName[ENUM_CLASS(SD_CHANNEL_GROUP::END)] = { "BGM", "ENVIRONMENT", "EFFECT", "VOICE" };
list<Channel*> CSound_Manager::s_listChannel[ENUM_CLASS(SD_CHANNEL_GROUP::END)] = {}; list<Channel*> CSound_Manager::s_listChannel[ENUM_CLASS(SD_CHANNEL_GROUP::END)] = {};
Sound* CSound_Manager::s_ArrSounds[ENUM_CLASS(SOUND::SD_KIND::END)] = {}; Sound* CSound_Manager::s_ArrSounds[ENUM_CLASS(SOUND::SD_KIND::END)] = {};
map<_wstring, SOUND::SD_KIND > CSound_Manager::s_SoundMap = {};
CSound_Manager::CSound_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) CSound_Manager::CSound_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: m_pDevice(pDevice), : m_pDevice(pDevice),
@@ -38,7 +38,6 @@ HRESULT CSound_Manager::Update()
} }
} }
} }
Sound_Test();
return S_OK; return S_OK;
} }
@@ -204,45 +203,8 @@ void CSound_Manager::Sound_SetVolume(SD_CHANNEL_GROUP eSoundChannel, float fVolu
} }
} }
void CSound_Manager::Sound_Test()
{
//GUI::Begin("Music_Player");
//static int item_selected_CHANNEL = 0;
//static int item_selected_SD_KIND = 0;
//GUI::BeginChild("##ITEMs", ImVec2(350.f, 175.f), true, ImGuiWindowFlags_HorizontalScrollbar);
//for (int iIndex = 0; iIndex < SOUND::SD_KIND::END; ++iIndex) {
// if (GUI::Button(CMyTools::ToString(SOUND::SD_PATH::SD_KIND_STRING[iIndex]).c_str())) {
// item_selected_SD_KIND = iIndex;
// }
//}
//GUI::EndChild();
//GUI::BeginChild("##Channels", ImVec2(350.f, 175.f), true, ImGuiWindowFlags_HorizontalScrollbar);
//for (int iIndex = 0; iIndex < ENUM_CLASS(SD_CHANNEL_GROUP::END); ++iIndex) {
// if (GUI::Button(s_ArrChannelName[iIndex].c_str())) {
// item_selected_CHANNEL = iIndex;
// }
//}
//GUI::EndChild();
//if (GUI::Button("Play_Sound", { 50, 50 })) {
// Sound_Play(static_cast<SOUND::SD_KIND>(item_selected_SD_KIND), static_cast<SD_CHANNEL_GROUP>(item_selected_CHANNEL), false, false, 1.f);
//} GUI::SameLine();
//if (GUI::Button("Sound_STOP", { 50, 50 })) {
// Sound_StopAll();
//}
//GUI::End();
}
HRESULT CSound_Manager::Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundFilePath, FMOD_MODE eSoundMode) HRESULT CSound_Manager::Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundFilePath, FMOD_MODE eSoundMode)
{ {
//const _tchar* pSoundFilePath = TEXT("../Bin/Resources/Sounds/");
//for (int iIndex = 0; iIndex < ENUM_CLASS(SOUND::SD_KIND::END); ++iIndex) {
// if (FAILED(m_pGameInstance->Load_Sound((SOUND::SD_KIND)iIndex, (_wstring(pSoundFilePath) + SOUND::SD_PATH::SD_KIND_STRING[iIndex]).c_str()))) {
// return E_FAIL;
// }
//}
//// 사운드 생성, 파일 불러오기 //// 사운드 생성, 파일 불러오기
FMOD_RESULT fr = CSound_Manager::s_pSystem->createSound( FMOD_RESULT fr = CSound_Manager::s_pSystem->createSound(
CMyTools::ToString(wstrSoundFilePath).c_str(), // 대상 경로 CMyTools::ToString(wstrSoundFilePath).c_str(), // 대상 경로
@@ -255,6 +217,16 @@ HRESULT CSound_Manager::Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSound
return E_FAIL; return E_FAIL;
} }
SOUND::SD_KIND CSound_Manager::Find_Sound(const _wstring wstrFilePath)
{
auto iter = s_SoundMap.find(wstrFilePath);
if (iter == s_SoundMap.end())
return SOUND::SD_KIND::END;
return iter->second;
}
HRESULT CSound_Manager::Initialize() HRESULT CSound_Manager::Initialize()
{ {
FMOD_RESULT r = System_Create(&s_pSystem); FMOD_RESULT r = System_Create(&s_pSystem);
@@ -275,9 +247,22 @@ HRESULT CSound_Manager::Initialize()
s_pSystem->init(512, FMOD_INIT_NORMAL, nullptr); s_pSystem->init(512, FMOD_INIT_NORMAL, nullptr);
} }
Ready_SoundMap();
return S_OK; return S_OK;
} }
void CSound_Manager::Ready_SoundMap()
{
_uint iNumSound = ENUM_CLASS(SOUND::SD_KIND::END);
for (_uint i = 0; i < iNumSound; ++i)
{
s_SoundMap.emplace(SOUND::SD_PATH::SD_KIND_PATHS[i], static_cast<SOUND::SD_KIND>(i));
}
}
CSound_Manager* CSound_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) CSound_Manager* CSound_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{ {
CSound_Manager* pInstance = new CSound_Manager(pDevice, pContext); CSound_Manager* pInstance = new CSound_Manager(pDevice, pContext);
+88
View File
@@ -186,6 +186,37 @@ void CUnit::Play_Event()
++iter; ++iter;
} }
/* Sound */
for (auto iter = m_SoundEvents.begin(); iter != m_SoundEvents.end(); )
{
_float ratio = m_pModelCom->Get_CurrentTrackProgressRatio();
_uint curAnim = m_pModelCom->Get_AnimIndex();
_float prevRatio = iter->PrevRatio;
if (curAnim == iter->AnimIndex)
{
if (prevRatio <= iter->fRatio && ratio >= iter->fRatio)
{
iter->Callback();
if (!iter->bKeep)
{
iter = m_SoundEvents.erase(iter);
continue;
}
}
iter->PrevRatio = ratio;
}
else
{
iter->PrevRatio = 0.f;
}
++iter;
}
} }
void CUnit::Add_Event(_uint AnimIndex, function<void()> Callback, _float fRatio,_bool bKeep) void CUnit::Add_Event(_uint AnimIndex, function<void()> Callback, _float fRatio,_bool bKeep)
@@ -198,6 +229,21 @@ void CUnit::Add_Event(_uint AnimIndex, function<void()> Callback, _float fRatio,
m_PendingEvents.push_back(Desc); m_PendingEvents.push_back(Desc);
} }
void CUnit::Add_Sound_Event(_uint AnimIndex, function<void()> Callback, _float fRatio, _bool bKeep)
{
PendingEvent Desc;
Desc.AnimIndex = AnimIndex;
Desc.fRatio = fRatio;
Desc.Callback = Callback;
Desc.bKeep = bKeep;
m_SoundEvents.push_back(Desc);
}
void CUnit::Reset_SoundEvent()
{
m_SoundEvents.clear();
}
void CUnit::Reset_Event() void CUnit::Reset_Event()
{ {
m_PendingEvents.clear(); m_PendingEvents.clear();
@@ -584,6 +630,48 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s)
return it->second; return it->second;
} }
HRESULT CUnit::Ready_Sound_Events(const _char* pFilePath)
{
tinyxml2::XMLDocument xmlDoc;
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(pFilePath)))
return E_FAIL;
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("KeyFrames");
if (nullptr == root)
{
MSG_BOX("Failed to Find root");
return S_OK;
}
for (auto* Animation = root->FirstChildElement("Animation"); Animation; Animation = Animation->NextSiblingElement("Animation"))
{
_uint iAnimationIndex = {};
Animation->QueryUnsignedAttribute("Index", &iAnimationIndex);
for (auto* KeyFrame = Animation->FirstChildElement("KeyFrame"); KeyFrame; KeyFrame = KeyFrame->NextSiblingElement("KeyFrame"))
{
_float fVolume = {};
_float fRatio = {};
const _char* pPath = {};
KeyFrame->QueryStringAttribute("Event", &pPath);
KeyFrame->QueryFloatAttribute("Ratio", &fRatio);
KeyFrame->QueryFloatAttribute("Volume", &fVolume);
SOUND::SD_KIND eSoundKind = m_pGameInstance->Find_Sound(CMyTools::ToWstring(pPath));
Add_Sound_Event(iAnimationIndex,
[this, eSoundKind, fVolume]() { m_pGameInstance->Sound_Play(eSoundKind, SD_CHANNEL_GROUP::EFFECT, false, fVolume); },
fRatio, true);
}
}
return S_OK;
}
void CUnit::Free() void CUnit::Free()
{ {
+7 -1
View File
@@ -211,8 +211,14 @@ class ENGINE_DLL CGameInstance final : public CBase
#pragma endregion #pragma endregion
#pragma region SOUND_MANAGER #pragma region SOUND_MANAGER
HRESULT Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundFilePath, FMOD_MODE eSoundMode); HRESULT Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundFilePath, FMOD_MODE eSoundMode);
SOUND::SD_KIND Find_Sound(const _wstring wstrFilePath);
void Sound_Play(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _bool bRepeat, _float fVolume); void Sound_Play(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _bool bRepeat, _float fVolume);
void Sound_StopAll(); // 전체 정지 void Sound_Play_3DPos(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _float3& refSpeaker, _float fMin = 3.f, _float fMax = 20.f, _bool bRepeat = false);
void Sound_Pause_Channel(SD_CHANNEL_GROUP eSoundChannel, bool bPause);
void Sound_Set3DListenerPos(class CTransform* pTransform);
void Sound_StopChannel(SD_CHANNEL_GROUP eSoundChannel);
void Sound_Stop(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel);
void Sound_StopAll();
#pragma endregion #pragma endregion
#pragma region PICKING #pragma region PICKING
@@ -11,6 +11,7 @@ class CSound_Manager final :
static _string s_ArrChannelName[ENUM_CLASS(SD_CHANNEL_GROUP::END)]; static _string s_ArrChannelName[ENUM_CLASS(SD_CHANNEL_GROUP::END)];
static list<Channel*> s_listChannel[ENUM_CLASS(SD_CHANNEL_GROUP::END)]; static list<Channel*> s_listChannel[ENUM_CLASS(SD_CHANNEL_GROUP::END)];
static Sound* s_ArrSounds[ENUM_CLASS(SOUND::SD_KIND::END)]; static Sound* s_ArrSounds[ENUM_CLASS(SOUND::SD_KIND::END)];
static map<_wstring, SOUND::SD_KIND> s_SoundMap;
private: private:
CSound_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CSound_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -29,9 +30,9 @@ class CSound_Manager final :
void Sound_Stop(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel); // 특정 사운드 정지 void Sound_Stop(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel); // 특정 사운드 정지
void Sound_StopAll(); // 전체 정지 void Sound_StopAll(); // 전체 정지
void Sound_SetVolume(SD_CHANNEL_GROUP eSoundChannel, float fVolume); void Sound_SetVolume(SD_CHANNEL_GROUP eSoundChannel, float fVolume);
void Sound_Test();
HRESULT Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundFilePath, FMOD_MODE eSoundMode); HRESULT Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundFilePath, FMOD_MODE eSoundMode);
SOUND::SD_KIND Find_Sound(const _wstring wstrFilePath);
private: private:
ID3D11Device* m_pDevice = { nullptr }; ID3D11Device* m_pDevice = { nullptr };
@@ -41,6 +42,7 @@ class CSound_Manager final :
private: private:
HRESULT Initialize(); HRESULT Initialize();
void Ready_SoundMap();
public: public:
static CSound_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); static CSound_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+9
View File
@@ -36,6 +36,9 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
_wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; } _wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; }
_bool IsAI() { return m_bAI; } _bool IsAI() { return m_bAI; }
HRESULT Ready_Sound_Events(const _char* pFilePath);
void Add_Sound_Event(_uint AnimIndex, function<void()> Callback, _float fRatio = 0.f, _bool bKeep = false);
void Reset_SoundEvent();
#ifdef _DEBUG #ifdef _DEBUG
void Load_KeyFrame(); void Load_KeyFrame();
#endif // _DEBUG #endif // _DEBUG
@@ -89,6 +92,7 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
_float m_fHitRadius = {}; _float m_fHitRadius = {};
vector<PendingEvent> m_PendingEvents; vector<PendingEvent> m_PendingEvents;
vector<PendingEvent> m_SoundEvents = {};
_float m_fHitDegree = {}; _float m_fHitDegree = {};
_float m_fHitCross = {}; _float m_fHitCross = {};
@@ -105,12 +109,17 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
protected: protected:
HRESULT Ready_Components(void*pArg); HRESULT Ready_Components(void*pArg);
#ifdef _DEBUG
public:
#endif // _DEBUG
void Play_Event(); void Play_Event();
protected:
void Add_Event(_uint AnimIndex, function<void()> Callback, _float fRatio = 0.f, _bool bKeep = false); void Add_Event(_uint AnimIndex, function<void()> Callback, _float fRatio = 0.f, _bool bKeep = false);
void Reset_Event(); void Reset_Event();
void Check_HitAngle(_vector ProjectileDir); void Check_HitAngle(_vector ProjectileDir);
virtual void Load_AnimXML(const string& path); virtual void Load_AnimXML(const string& path);
STATEANIM::ESTATE StringToStateAnim(const string& s); STATEANIM::ESTATE StringToStateAnim(const string& s);
public: public:
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)PURE; virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)PURE;
virtual void Free() override; virtual void Free() override;