1#include "map_object.h"
2
3#include <game/editor/editor.h>
4#include <game/editor/mapitems/map.h>
5
6CMapObject::CMapObject(CEditorMap *pMap)
7{
8 OnAttach(pMap);
9}
10
11CMapObject::CMapObject(const CMapObject &Other)
12{
13 m_pMap = Other.m_pMap;
14}
15
16void CMapObject::OnAttach(CEditorMap *pMap)
17{
18 m_pMap = pMap;
19}
20
21const CEditor *CMapObject::Editor() const
22{
23 return m_pMap->Editor();
24}
25
26CEditor *CMapObject::Editor()
27{
28 return m_pMap->Editor();
29}
30
31const CEditorMap *CMapObject::Map() const
32{
33 return m_pMap;
34}
35
36CEditorMap *CMapObject::Map()
37{
38 return m_pMap;
39}
40
41const IGraphics *CMapObject::Graphics() const
42{
43 return m_pMap->Editor()->Graphics();
44}
45
46IGraphics *CMapObject::Graphics()
47{
48 return m_pMap->Editor()->Graphics();
49}
50
51const ISound *CMapObject::Sound() const
52{
53 return m_pMap->Editor()->Sound();
54}
55
56ISound *CMapObject::Sound()
57{
58 return m_pMap->Editor()->Sound();
59}
60
61const IStorage *CMapObject::Storage() const
62{
63 return m_pMap->Editor()->Storage();
64}
65
66IStorage *CMapObject::Storage()
67{
68 return m_pMap->Editor()->Storage();
69}
70
71const ITextRender *CMapObject::TextRender() const
72{
73 return m_pMap->Editor()->TextRender();
74}
75
76ITextRender *CMapObject::TextRender()
77{
78 return m_pMap->Editor()->TextRender();
79}
80