Moved C++ tools out
This commit is contained in:
47
archive/dawntools/util/generator/SceneItemGenerator.hpp
Normal file
47
archive/dawntools/util/generator/SceneItemGenerator.hpp
Normal file
@ -0,0 +1,47 @@
|
||||
// Copyright (c) 2023 Dominic Masters
|
||||
//
|
||||
// This software is released under the MIT License.
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
#pragma once
|
||||
#include "SceneItemComponentGenerator.hpp"
|
||||
#include "SceneAssetGenerator.hpp"
|
||||
#include "util/parser/SceneItemParser.hpp"
|
||||
#include "util/generator/SceneCodeGenerator.hpp"
|
||||
|
||||
namespace Dawn {
|
||||
class SceneItemGenerator : public CodeGen {
|
||||
public:
|
||||
static void generateDependency(
|
||||
int32_t &assetNumber,
|
||||
int32_t &componentNumber,
|
||||
int32_t &childNumber,
|
||||
std::map<std::string, std::string> &assetMap,
|
||||
std::vector<std::string> &includes,
|
||||
std::vector<std::string> *publicProperties,
|
||||
std::vector<std::string> *initBody,
|
||||
std::vector<std::string> *assetBody,
|
||||
std::string name,
|
||||
std::string sceneRef,
|
||||
std::vector<struct SceneItemComponent> &components,
|
||||
std::vector<struct SceneItem> &children,
|
||||
std::vector<struct SceneCode> &code,
|
||||
struct SceneItemDependency dep
|
||||
);
|
||||
|
||||
static void generate(
|
||||
int32_t &assetNumber,
|
||||
int32_t &componentNumber,
|
||||
int32_t &childNumber,
|
||||
std::map<std::string, std::string> &assetMap,
|
||||
std::vector<std::string> &includes,
|
||||
std::vector<std::string> *publicProperties,
|
||||
std::vector<std::string> *initBody,
|
||||
std::vector<std::string> *assetBody,
|
||||
std::string parentRef,
|
||||
std::string sceneRef,
|
||||
struct SceneItem *item,
|
||||
std::string tabs
|
||||
);
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user