TazGraph Project v0.1.0
Loading...
Searching...
No Matches
LinkPythonCodeComponent.h
1#pragma once
2
3#include "../../../Components.h"
4
5// public Component need to be first for scanning
6class LinkPythonCodeComponent : public LinkComponent, public PythonCodeComponent //transform as in graphics, we have rotation and scale
7{
8public:
9 std::string code = "";
10
11
13 {
14 }
15
16
17 void init() override
18 {
19 PythonCodeComponent::init();
20 }
21 void update(float deltaTime) override
22 {
24
25
26 }
27
28 std::string GetComponentName() override {
29 return "LinkPythonCodeComponent";
30 }
31
32 void showGUI(std::vector<BaseComponent*> otherComponents = {}) override {
33 if (ImGui::CollapsingHeader("Script"))
34 {
35 PythonCodeComponent::showGUI();
36
37
38 }
39
40
41 };
42
43 void showGUI(std::vector<BaseComponent*> otherComponents, std::vector<Entity*> otherEntities) override {
44 ImGui::TextDisabled("Modify Script Components Seperately");
45
46 }
47};
Definition GECS.h:141
Definition LinkPythonCodeComponent.h:7
Definition PythonCodeComponent.h:9
void update(float deltaTime)
Definition PythonCodeComponent.h:55