33 lines
726 B
C++
33 lines
726 B
C++
// 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,
|
|
std::vector<std::string> *includes,
|
|
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;
|
|
|
|
case SCENE_CODE_TYPE_INCLUDE:
|
|
line(includes, code->code, "");
|
|
break;
|
|
|
|
default:
|
|
break;
|
|
}
|
|
} |