2025-12-13 13:03:27 +03:00
|
|
|
#pragma once
|
|
|
|
|
#include <memory>
|
2025-12-15 15:36:42 +03:00
|
|
|
#include "CanvasComponentType.hpp"
|
2025-12-13 13:03:27 +03:00
|
|
|
#include <Helpers/NetworkingObjects/NetObjTemporaryPtr.hpp>
|
2025-12-14 18:57:40 +03:00
|
|
|
#include <Helpers/NetworkingObjects/DelayUpdateSerializedClassManager.hpp>
|
|
|
|
|
|
2025-12-15 15:36:42 +03:00
|
|
|
class World;
|
|
|
|
|
class CanvasComponent;
|
2025-12-13 13:03:27 +03:00
|
|
|
|
|
|
|
|
class CanvasComponentAllocator {
|
|
|
|
|
public:
|
|
|
|
|
CanvasComponentAllocator();
|
2025-12-15 15:36:42 +03:00
|
|
|
CanvasComponentAllocator(CanvasComponentType typeToAllocate);
|
2025-12-13 13:03:27 +03:00
|
|
|
std::unique_ptr<CanvasComponent> comp;
|
2025-12-24 12:42:27 +03:00
|
|
|
static void register_class(World& world);
|
2025-12-13 13:03:27 +03:00
|
|
|
};
|