Rise
The Vieneo Province
Loading...
Searching...
No Matches
Element.h
Go to the documentation of this file.
1#pragma once
2
3#include "Component.h"
4
5class Element
6{
7public:
8 std::string profileName = "Element";
9 int x, y;
10 std::vector<Component> components;
11
12 void Update()
13 {
15 for (UINT h = 0; h < components.size(); h++)
16 {
17 components.at(h).Update();
18 }
19 }
20
21 void Render()
22 {
24 for (UINT h = 0; h < components.size(); h++)
25 {
26 components.at(h).Render();
27 }
28 }
29};
int y
Definition Element.h:9
std::vector< Component > components
Definition Element.h:10
int x
Definition Element.h:9
std::string profileName
Definition Element.h:8
void Update()
Definition Element.h:12
void Render()
Definition Element.h:21