td.AddField("name", FieldDescription(((char *)&i.name) - ((char *)&i), stringId, true));
td.AddField("cost", FieldDescription(((char *)&i.cost) - ((char *)&i), numberId, false));
td.AddField("targets", FieldDescription(((char *)&i.targetingMode) - ((char *)&i), targetsId, false));
- td.AddField("type", FieldDescription(((char *)&i.isPhysical) - ((char *)&i), boolId, true));
+ td.AddField("type", FieldDescription(((char *)&i.isPhysical) - ((char *)&i), boolId, false));
}
void Ikari::Construct(void *data) {
td.SetConstructor(&Construct);
td.SetSize(sizeof(TargetingMode));
- td.AddField("faction", FieldDescription(((char *)&t.ally) - ((char *)&t), boolId, true));
- td.AddField("mode", FieldDescription(((char *)&t.mode) - ((char *)&t), numberId, true));
+ td.AddField("faction", FieldDescription(((char *)&t.ally) - ((char *)&t), boolId, false));
+ td.AddField("mode", FieldDescription(((char *)&t.mode) - ((char *)&t), numberId, false));
}
void TargetingMode::Construct(void *data) {
std::memcpy(str, path.c_str(), path.size());
str[path.size()] = '\0';
string dn(dirname(str));
- delete str;
+ delete[] str;
return dn;
}
Gauge::CreateTypeDescription();
Hero::CreateTypeDescription();
Ikari::CreateTypeDescription();
+ Interpreter::CreateTypeDescriptions();
Item::CreateTypeDescription();
graphics::MenuProperties::CreateTypeDescription();
PartyLayout::CreateTypeDescription();