All tools now converted to use new net objects
This commit is contained in:
parent
45ba26446a
commit
7d1671229b
62 changed files with 492 additions and 481 deletions
|
|
@ -7,8 +7,8 @@
|
|||
#include "../SharedTypes.hpp"
|
||||
#include "../DrawCollision.hpp"
|
||||
|
||||
CanvasComponent::CompType RectangleCanvasComponent::get_type() const {
|
||||
return CompType::RECTANGLE;
|
||||
CanvasComponentType RectangleCanvasComponent::get_type() const {
|
||||
return CanvasComponentType::RECTANGLE;
|
||||
}
|
||||
|
||||
void RectangleCanvasComponent::save(cereal::PortableBinaryOutputArchive& a) const {
|
||||
|
|
@ -45,6 +45,11 @@ void RectangleCanvasComponent::draw(SkCanvas* canvas, const DrawData& drawData)
|
|||
}
|
||||
}
|
||||
|
||||
void RectangleCanvasComponent::set_data_from(const CanvasComponent& other) {
|
||||
auto& otherRect = static_cast<const RectangleCanvasComponent&>(other);
|
||||
d = otherRect.d;
|
||||
}
|
||||
|
||||
void RectangleCanvasComponent::initialize_draw_data(DrawingProgram& drawP) {
|
||||
create_draw_data();
|
||||
create_collider();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue