X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/cafdb587ee6e195e5a917cea7570c2ea7e22a003..fb8d2fb83534b0ca76f81e6d107e38d002642a46:/Model/src/plantitem.cpp diff --git a/Model/src/plantitem.cpp b/Model/src/plantitem.cpp index efca4c1..9405a94 100644 --- a/Model/src/plantitem.cpp +++ b/Model/src/plantitem.cpp @@ -8,6 +8,7 @@ PlantItem::PlantItem(const std::string &_name):IConector(0, 0) { name = _name; updated = false; + fluid_color = RGB(255,255,255); } PlantItem::PlantItem(unsigned ins, unsigned outs):IConector(ins, outs) @@ -36,4 +37,12 @@ void PlantItem::get_state_as_xml(std::stringstream &out) out << "\t" << std::endl; out << "\t\t" << actual_flow << "" << std::endl; out << "\t" << std::endl; + out << "\t" << std::endl; + out << "\t\t" << fluid_color.r() << "" << std::endl; + out << "\t\t" << fluid_color.g() << "" << std::endl; + out << "\t\t" << fluid_color.b() << "" << std::endl; + out << "\t" << std::endl; + + // Para que quede bonito + actual_flow = 99999; }