MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / AddBool

Method AddBool

Source/Game/EntityDescription.cpp:620–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618}
619
620void EntityDescription::AddBool(EntityDescriptionFieldType type, const bool& val) {
621 AddType(type);
622 char in = val ? 1 : 0;
623 memwrite(&in, sizeof(char), 1, fields.back().data);
624}
625
626void GetTSREinfo(const TiXmlElement* pElement, vec3& translation, vec3& scale, quaternion& rotation, vec3& rotation_euler) {
627 GetTSRinfo(pElement, translation, scale, rotation);

Callers 4

GetDescMethod · 0.80
GetDescMethod · 0.80

Calls 2

memwriteFunction · 0.85
backMethod · 0.45

Tested by

no test coverage detected