Updating a few more things to state events, will probably stop here for now and revist the trailing things later.
This commit is contained in:
@ -23,32 +23,32 @@ namespace Dawn {
|
||||
|
||||
class LanguageParser : public XmlParser<struct LanguageString> {
|
||||
protected:
|
||||
std::vector<std::string> getRequiredAttributes();
|
||||
std::map<std::string, std::string> getOptionalAttributes();
|
||||
std::vector<std::string> getRequiredAttributes() override;
|
||||
std::map<std::string, std::string> getOptionalAttributes() override;
|
||||
int32_t onParse(
|
||||
Xml *node,
|
||||
std::map<std::string, std::string> values,
|
||||
struct LanguageString *out,
|
||||
std::string *error
|
||||
);
|
||||
) override;
|
||||
};
|
||||
|
||||
class LanguageGroupParser : public XmlParser<struct LanguageGroup> {
|
||||
protected:
|
||||
std::vector<std::string> getRequiredAttributes();
|
||||
std::map<std::string, std::string> getOptionalAttributes();
|
||||
std::vector<std::string> getRequiredAttributes() override;
|
||||
std::map<std::string, std::string> getOptionalAttributes() override;
|
||||
int32_t onParse(
|
||||
Xml *node,
|
||||
std::map<std::string, std::string> values,
|
||||
struct LanguageGroup *out,
|
||||
std::string *error
|
||||
);
|
||||
) override;
|
||||
};
|
||||
|
||||
class LanguageRootParser : public XmlParser<struct LanguageRoot> {
|
||||
protected:
|
||||
std::vector<std::string> getRequiredAttributes();
|
||||
std::map<std::string, std::string> getOptionalAttributes();
|
||||
std::vector<std::string> getRequiredAttributes() override;
|
||||
std::map<std::string, std::string> getOptionalAttributes() override;
|
||||
int32_t onParse(
|
||||
Xml *node,
|
||||
std::map<std::string, std::string> values,
|
||||
@ -60,18 +60,6 @@ namespace Dawn {
|
||||
class LanguageGen : public DawnTool {
|
||||
protected:
|
||||
std::vector<std::string> getRequiredFlags() override;
|
||||
|
||||
int32_t parseGroup(
|
||||
Xml *node,
|
||||
std::string key,
|
||||
std::map<std::string, std::vector<struct LanguageString>> *strings
|
||||
);
|
||||
|
||||
int32_t parseString(
|
||||
Xml *node,
|
||||
std::string key,
|
||||
std::map<std::string, std::vector<struct LanguageString>> *strings
|
||||
);
|
||||
|
||||
public:
|
||||
int32_t start() override;
|
||||
|
Reference in New Issue
Block a user