This commit is contained in:
2023-06-23 16:33:53 -07:00
parent 160aa43973
commit 2c84dc1d58
8 changed files with 41 additions and 32 deletions

View File

@@ -39,9 +39,7 @@ void VNSceneGen::test(
initType = "VNSetEvent<" + event->set.type + ">";
toInclude = "games/vn/events/VNSetEvent.hpp";
line(&afterLines, eventName + "->modifies = &" + event->set.property + ";", "");
line(&afterLines, eventName + "->to = " + event->set.to + ";", "");
if(event->set.from != "") line(&afterLines, eventName + "->from = " + event->set.from + ";", "");
if(event->set.duration != "") line(&afterLines, eventName + "->duration = " + event->set.duration + ";", "");
line(&afterLines, eventName + "->value = " + event->set.to + ";", "");
break;
case VN_SCENE_EVENT_TYPE_WAIT:

View File

@@ -14,10 +14,7 @@ std::vector<std::string> VNSetEventParser::getRequiredAttributes() {
std::map<std::string, std::string> VNSetEventParser::getOptionalAttributes() {
return {
{ "to", "" },
{ "value", "" },
{ "from", "" },
{ "duration", "" },
{ "curve", "" }
{ "value", "" }
};
}
@@ -38,8 +35,5 @@ int32_t VNSetEventParser::onParse(
out->type = values["type"];
out->property = values["property"];
out->from = values["from"];
out->duration = values["duration"];
out->curve = values["curve"];
return 0;
}

View File

@@ -10,9 +10,6 @@ namespace Dawn {
struct VNSetEvent {
std::string property = "";
std::string to = "";
std::string from = "";
std::string duration = "";
std::string curve = "";
std::string type = "";
};