Added code support, not great but hey it works

This commit is contained in:
2023-05-18 23:31:36 -07:00
parent d7a0aa9566
commit d3ac3b688b
13 changed files with 162 additions and 0 deletions

View File

@ -0,0 +1,28 @@
// Copyright (c) 2023 Dominic Masters
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#include "SceneCodeGenerator.hpp"
using namespace Dawn;
void SceneCodeGenerator::generate(
std::vector<std::string> *publicProperties,
std::vector<std::string> *initBody,
struct SceneCode *code,
std::string tabs
) {
switch(code->codeType) {
case SCENE_CODE_TYPE_PROPERTIES:
line(publicProperties, code->code, "");
break;
case SCENE_CODE_TYPE_INIT:
line(initBody, code->code, "");
break;
default:
break;
}
}