/
dieoska
/
ddnet
Обзор
Документация
Войти
/
dieoska
/
ddnet
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/game/editor/map_object.h
37 строк
728 B
Robert Müller
Attach editor map items to map instead of editor
09 ноя 2025, 17:08
09 ноя 2025, 17:08
17d1fe1
Код
Авторство
О чём код?
#ifndef GAME_EDITOR_MAP_OBJECT_H #define GAME_EDITOR_MAP_OBJECT_H class CEditor; class CEditorMap; class IGraphics; class ISound; class IStorage; class ITextRender; class CMapObject { public: explicit CMapObject(CEditorMap *pMap); CMapObject(const CMapObject &Other); virtual ~CMapObject() = default; virtual void OnAttach(CEditorMap *pMap); const CEditor *Editor() const; CEditor *Editor(); const CEditorMap *Map() const; CEditorMap *Map(); const IGraphics *Graphics() const; IGraphics *Graphics(); const ISound *Sound() const; ISound *Sound(); const IStorage *Storage() const; IStorage *Storage(); const ITextRender *TextRender() const; ITextRender *TextRender(); private: CEditorMap *m_pMap; }; #endif