2025-12-24 12:42:27 +03:00
|
|
|
#pragma once
|
|
|
|
|
#include <Helpers/NetworkingObjects/NetObjOrderedList.hpp>
|
|
|
|
|
#include "../../CanvasComponents/CanvasComponent.hpp"
|
2025-12-30 19:46:08 +03:00
|
|
|
#include <vector>
|
2025-12-24 12:42:27 +03:00
|
|
|
|
|
|
|
|
class DrawingProgramLayerListItem;
|
2025-12-26 10:10:19 +03:00
|
|
|
class DrawingProgramLayerManager;
|
2025-12-24 12:42:27 +03:00
|
|
|
|
|
|
|
|
class DrawingProgramLayer {
|
|
|
|
|
public:
|
2025-12-26 19:52:36 +03:00
|
|
|
void draw(SkCanvas* canvas, const DrawData& drawData) const;
|
2025-12-30 21:18:59 +03:00
|
|
|
void set_component_list_callbacks(DrawingProgramLayerListItem& layerListItem, DrawingProgramLayerManager& layerMan);
|
2025-12-30 19:46:08 +03:00
|
|
|
void get_flattened_component_list(std::vector<CanvasComponentContainer::ObjInfo*>& objList) const;
|
2025-12-30 21:18:59 +03:00
|
|
|
void set_to_erase();
|
2025-12-31 16:30:56 +03:00
|
|
|
void scale_up(const WorldScalar& scaleUpAmount);
|
2025-12-25 17:18:28 +03:00
|
|
|
|
2025-12-24 12:42:27 +03:00
|
|
|
CanvasComponentContainer::NetListOwnerPtr components;
|
2026-01-01 22:46:02 +03:00
|
|
|
|
|
|
|
|
void load_file(cereal::PortableBinaryInputArchive& a, VersionNumber version, DrawingProgramLayerManager& layerMan);
|
|
|
|
|
void save_file(cereal::PortableBinaryOutputArchive& a) const;
|
2025-12-30 21:18:59 +03:00
|
|
|
private:
|
|
|
|
|
std::function<void(const CanvasComponentContainer::ObjInfoIterator& c)> eraseCallback;
|
2025-12-24 12:42:27 +03:00
|
|
|
};
|