stuck
This commit is contained in:
@@ -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:
|
||||
|
@@ -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;
|
||||
}
|
@@ -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 = "";
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user