Elevate Engine 1
Loading...
Searching...
No Matches
WwiseFileDataSource.h
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
6
7namespace flxml
8{
9 template<class Ch> class xml_node;
10}
11
12namespace Elevate
13{
15 {
16 public:
17 WwiseFileDataSource(const std::string projectPath)
18 : m_projectPath(projectPath) {
19 }
21
22 virtual void InitializeSource() override;
23 virtual void RefreshSource() override;
24
25 protected:
26 void ProcessRootFolder(const std::filesystem::path& rootFolder);
27 void ProcessWorkUnit(WwiseItemPtr parent, const std::filesystem::path& workUnitPath);
28 void ProcessNode(WwiseItemPtr parent, flxml::xml_node<char>* node);
29
30 // Process each type of node in Wwise
31 //void P
32 WwiseItemPtr ProcessBus(WwiseItemPtr parent, flxml::xml_node<char>* node);
33 WwiseItemPtr ProcessAuxBus(WwiseItemPtr parent, flxml::xml_node<char>* node);
34 WwiseItemPtr ProcessEvent(WwiseItemPtr parent, flxml::xml_node<char>* node);
35 WwiseItemPtr ProcessSoundBank(WwiseItemPtr parent, flxml::xml_node<char>* node);
36 WwiseItemPtr ProcessStateGroup(WwiseItemPtr parent, flxml::xml_node<char>* node);
37 WwiseItemPtr ProcessState(WwiseItemPtr parent, flxml::xml_node<char>* node);
38 WwiseItemPtr ProcessSwitchGroup(WwiseItemPtr parent, flxml::xml_node<char>* node);
39 WwiseItemPtr ProcessSwitch(WwiseItemPtr parent, flxml::xml_node<char>* node);
40
41 bool IsValidDirectory(std::string directoryName);
42 private:
43 WwiseType GetTypeFromName(std::string name);
44
45 private:
46 std::string m_projectPath;
47 };
48}
WwiseType
Definition WwiseItem.h:10
WwiseItemPtr ProcessSwitch(WwiseItemPtr parent, flxml::xml_node< char > *node)
void ProcessWorkUnit(WwiseItemPtr parent, const std::filesystem::path &workUnitPath)
bool IsValidDirectory(std::string directoryName)
WwiseFileDataSource(const std::string projectPath)
virtual void RefreshSource() override
WwiseItemPtr ProcessSwitchGroup(WwiseItemPtr parent, flxml::xml_node< char > *node)
WwiseItemPtr ProcessEvent(WwiseItemPtr parent, flxml::xml_node< char > *node)
void ProcessRootFolder(const std::filesystem::path &rootFolder)
WwiseItemPtr ProcessSoundBank(WwiseItemPtr parent, flxml::xml_node< char > *node)
WwiseItemPtr ProcessStateGroup(WwiseItemPtr parent, flxml::xml_node< char > *node)
virtual void InitializeSource() override
WwiseItemPtr ProcessAuxBus(WwiseItemPtr parent, flxml::xml_node< char > *node)
void ProcessNode(WwiseItemPtr parent, flxml::xml_node< char > *node)
WwiseItemPtr ProcessState(WwiseItemPtr parent, flxml::xml_node< char > *node)
WwiseItemPtr ProcessBus(WwiseItemPtr parent, flxml::xml_node< char > *node)