MCPcopy Create free account
hub / github.com/Raais/ImStudio / Object

Method Object

src/sources/ims_object.cpp:12–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12ImStudio::Object::Object(int idgen_, std::string type_) : BaseObject()
13{
14 if (type_ == "child")
15 {
16 child.objects.reserve(250);
17 child.open = true;
18 child.id = idgen_;
19 }
20 id = idgen_;
21 type = type_;
22 identifier = type_ + std::to_string(idgen_);
23 value_s = type_ + std::to_string(idgen_);
24}
25
26//void ImStudio::BaseObject::draw(int *select, bool staticlayout = false)
27// moved to ims_object_draw.cpp

Callers

nothing calls this directly

Calls 2

to_stringFunction · 0.85
reserveMethod · 0.45

Tested by

no test coverage detected