- 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("name", FieldDescription(((char *)&i.name) - ((char *)&i), Interpreter::STRING_ID).SetReferenced().SetDescription("the attack's name"));
+ td.AddField("cost", FieldDescription(((char *)&i.cost) - ((char *)&i), Interpreter::NUMBER_ID).SetDescription("amount of ikari points needed and deducted for use"));
+ td.AddField("targets", FieldDescription(((char *)&i.targetingMode) - ((char *)&i), TargetingMode::TYPE_ID).SetDescription("how target selection is to be performed"));
+ td.AddField("type", FieldDescription(((char *)&i.isPhysical) - ((char *)&i), Interpreter::BOOLEAN_ID).SetDescription("if the attack is physical (true) or magical(false)"));
+}
+
+void Ikari::Construct(void *data) {
+ new (data) Ikari;