2025-12-13 13:03:27 +03:00
|
|
|
#pragma once
|
|
|
|
|
#include <memory>
|
|
|
|
|
#include "CanvasComponent.hpp"
|
|
|
|
|
#include <Helpers/NetworkingObjects/NetObjTemporaryPtr.hpp>
|
2025-12-14 18:57:40 +03:00
|
|
|
#include <Helpers/NetworkingObjects/DelayUpdateSerializedClassManager.hpp>
|
|
|
|
|
|
|
|
|
|
class DrawingProgram;
|
2025-12-13 13:03:27 +03:00
|
|
|
|
|
|
|
|
class CanvasComponentAllocator {
|
|
|
|
|
public:
|
|
|
|
|
CanvasComponentAllocator();
|
|
|
|
|
CanvasComponentAllocator(CanvasComponent::CompType typeToAllocate);
|
|
|
|
|
std::unique_ptr<CanvasComponent> comp;
|
2025-12-14 18:57:40 +03:00
|
|
|
static void register_class(DrawingProgram& drawP, NetworkingObjects::DelayUpdateSerializedClassManager& delayUpdateMan, NetworkingObjects::NetObjManager& objMan);
|
2025-12-13 13:03:27 +03:00
|
|
|
};
|