Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
iv_components
Entity2D
Entity2D_SimpleView.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Entity2D.hpp
"
4
#include <
ivorium.hpp
>
5
#include <unordered_map>
6
7
namespace
comp
8
{
9
13
class
Entity2D_SimpleView_Item
:
public
iv::Transform
14
{
15
public
:
16
iv::ClientMarker
cm
;
17
18
Entity2D_SimpleView_Item
(
iv::Instance
* inst );
19
20
private
:
21
iv::Image
img;
22
};
23
27
class
Entity2D_SimpleView
:
public
iv::Slot
,
public
iv::FrameUpdateClient
,
public
Entity2D_Listener
28
{
29
public
:
30
iv::ClientMarker
cm
;
31
using
iv::SlotChild::instance
;
32
33
Entity2D_SimpleView
(
iv::Instance
* inst,
Entity2D_World
* world );
34
35
virtual
void
frame_update
()
override
;
36
37
protected
:
38
virtual
void
Entity2D_Registered
(
Entity2D
* entity )
override
;
39
virtual
void
Entity2D_Unregistered
(
Entity2D
* entity )
override
;
40
41
private
:
42
iv::Heap
heap;
43
std::unordered_map< Entity2D *, Entity2D_SimpleView_Item * > entities;
44
45
};
46
47
}