| 1 | #include "layer.h" |
|---|---|
| 2 | |
| 3 | #include <base/str.h> |
| 4 | |
| 5 | #include <game/mapitems.h> |
| 6 | |
| 7 | CLayer::CLayer(CEditorMap *pMap, int Type) : |
| 8 | CMapObject(pMap), |
| 9 | m_Type(Type) |
| 10 | { |
| 11 | } |
| 12 | |
| 13 | CLayer::CLayer(const CLayer &Other) : |
| 14 | CMapObject(Other) |
| 15 | { |
| 16 | m_Type = Other.m_Type; |
| 17 | str_copy(dst&: m_aName, src: Other.m_aName); |
| 18 | m_Flags = Other.m_Flags; |
| 19 | m_Readonly = false; |
| 20 | m_Visible = true; |
| 21 | } |
| 22 |