Added SceneItemComponent registry (unfinished)

This commit is contained in:
2023-02-23 23:43:13 -08:00
parent 5dcf20a282
commit bc972cbb57
16 changed files with 289 additions and 8 deletions

View File

@@ -14,6 +14,8 @@ namespace Dawn {
std::string constructorArgs = "";
std::string extendArgs = "";
std::vector<std::string> constructorCode;
std::vector<std::string> protectedCode;
std::vector<std::string> protectedProperties;
@@ -73,11 +75,12 @@ namespace Dawn {
lines(out, info.protectedCode, " ");
}
if(info.publicCode.size() > 0 || info.constructorArgs.size() > 0) {
if(info.publicCode.size() > 0 || info.constructorArgs.size() > 0 || info.constructorCode.size() > 0) {
line(out, "public:", " ");
lines(out, info.publicProperties, " ");
line(out, "", " ");
line(out, info.clazz + "(" + info.constructorArgs + ")" + (info.extend.size() > 0 ? " : " + info.extend + "(" + info.extendArgs + ")" : "") + " {", " ");
lines(out, info.constructorCode, " ");
line(out, "}", " ");
if(info.publicCode.size() > 0) {
line(out, "", " ");