Working on moving canvas code to net objects (broken build)

This commit is contained in:
Yousef Khadadeh 2025-12-14 18:57:40 +03:00
parent d2a0bfcda9
commit 45ba26446a
42 changed files with 605 additions and 3186 deletions

View file

@ -1,8 +1,7 @@
#pragma once
#include "DrawingProgramToolBase.hpp"
#include "../DrawComponents/DrawRectangle.hpp"
#include <Helpers/SCollision.hpp>
#include <any>
#include "../CanvasComponents/CanvasComponentContainer.hpp"
class DrawingProgram;
@ -19,11 +18,9 @@ class RectDrawTool : public DrawingProgramToolBase {
private:
void commit_rectangle();
struct RectDrawControls {
Vector2f startAt;
float relativeRadiusWidth = 10.0f;
int fillStrokeMode = 1;
int drawStage = 0;
std::shared_ptr<DrawRectangle> intermediateItem;
} controls;
Vector2f startAt;
float relativeRadiusWidth = 10.0f;
int fillStrokeMode = 1;
int drawStage = 0;
NetworkingObjects::NetObjWeakPtr<CanvasComponentContainer> intermediateContainer;
};