Fixed XML Parser not parsing empty XML sheets 100% correctly.

This commit is contained in:
2023-05-20 22:53:53 -07:00
parent f8ca5f2e17
commit a64df032e2
7 changed files with 17 additions and 94 deletions

View File

@@ -50,7 +50,7 @@ function(tool_scene in)
STRING(REGEX REPLACE "[\.|\\|\/]" "-" scene_name ${in})
add_custom_target(scene_${scene_name}
COMMAND scenetool --input="${DAWN_ASSETS_SOURCE_DIR}/${in}" --output="${DAWN_GENERATED_DIR}/generatedscenes" --sources="${DAWN_SOURCES_DIR}"
COMMENT "Generating prefab from ${in}"
COMMENT "Generating scene from ${in}"
DEPENDS ${DEPS}
)
target_include_directories(${DAWN_TARGET_NAME}

View File

@@ -53,7 +53,7 @@ function(tool_vnscene in)
STRING(REGEX REPLACE "[\.|\\|\/]" "-" scene_name ${in})
add_custom_target(scene_${scene_name}
COMMAND vnscenetool --input="${DAWN_ASSETS_SOURCE_DIR}/${in}" --output="${DAWN_GENERATED_DIR}/generatedscenes"
COMMENT "Generating prefab from ${in}"
COMMENT "Generating vnscene from ${in}"
DEPENDS ${DEPS}
)
target_include_directories(${DAWN_TARGET_NAME}

View File

@@ -29,6 +29,8 @@ int32_t VNSceneEventsParser::onParse(
Xml *child = *itChildren;
struct VNSceneEvent event;
std::cout << "CHILD: " << child->node << std::endl;
// Parse event(s)
if(child->node == "text") {
event.type = VN_SCENE_EVENT_TYPE_TEXT;